All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class uhr.core.dk.ParamDrivenAideStd

java.lang.Object
   |
   +----uhr.core.dk.ParamDrivenAideStd

public class ParamDrivenAideStd
extends Object
implements ParamDrivenAide
This serves as an "aide-de-camp" to a ParamDriven. The main useful feature is deferred dk lookup. The implementation constructor should set the ParamDriven for use in calling ParamDriven.setDK(Flexitron dk) when the dk in the aide is set.


Constructor Index

 o ParamDrivenAideStd(ParamDriven)
Create a new aide with the ParamDriven part.

Method Index

 o getDK()
Returns the part's DK.
 o getDKType()
Returns the DK type.
 o isImmediate()
Determines whether the DK will be provided immediately or not.
 o isProvided()
Determines whether the DK has been provided or not.
 o provideDK()
Causes deferred Dk to be provided by getting it using the ReadDKService, storing the reference, and calling setDK(Flexitron dk) on the part.
 o setDK(Object)
Sets the part's dk.
 o setDKType(String)
Sets the type for the DK Object.
 o setImmediate(boolean)
Sets the immediate property.
 o setReadDKService(UF_Object_String_String)
Sets the service used to read the DK.
 o setURL(String)
Sets the url for the dk.

Constructors

 o ParamDrivenAideStd
 public ParamDrivenAideStd(ParamDriven part)
Create a new aide with the ParamDriven part.

Parameters:
part - the part having the aide.

Methods

 o setDK
 public void setDK(Object dk)
Sets the part's dk. First the dk is stored in the aide for later use. Then, using the ParamDriven reference in the aide, ParamDriven.setDK(Flexitron dk) is called.

Parameters:
dk - the data structure containing the DK.
 o getDK
 public Object getDK()
Returns the part's DK. This method is used for editing and then reapplying to the part using ParamDrivenAide.setDK(Flexitron dk).

If the DK is null but available then this becomes a way of providing DK on a deffered, just-in-time basis. Using other state in the aide, the DK will be looked up, stored here, setDK() called on the ParamDriven, and then the DK is returned.

Returns:
the current DK.
Throws: IllegalStateException
if DK is unavailable, since DK should always be available for a ParamDriven part.
 o setDKType
 public void setDKType(String type)
Sets the type for the DK Object. The default is uhr.core.tron.Flexitron.

Parameters:
type - the Java class name for the type.
 o getDKType
 public String getDKType()
Returns the DK type.

Returns:
the DK type.
 o setImmediate
 public void setImmediate(boolean isImmediate)
Sets the immediate property. The default is false. If true the part's setDK(Flexitron dk) will be called immediately just after the part is created.

 o isImmediate
 public boolean isImmediate()
Determines whether the DK will be provided immediately or not.

Returns:
true for immediately or false for deferred.
 o provideDK
 public void provideDK()
Causes deferred Dk to be provided by getting it using the ReadDKService, storing the reference, and calling setDK(Flexitron dk) on the part. Has no effect if already provided.

 o isProvided
 public boolean isProvided()
Determines whether the DK has been provided or not. This is the same as testing whether the DK is null.

Returns:
true for provided (dk is not null) or false for not provided (dk is null).
 o setURL
 public void setURL(String url)
Sets the url for the dk.

Parameters:
url - the dk url.
 o setReadDKService
 public void setReadDKService(UF_Object_String_String readService)
Sets the service used to read the DK.

Parameters:
readService - the service used to read the DK.

All Packages  Class Hierarchy  This Package  Previous  Next  Index