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.
-
ParamDrivenAideStd(ParamDriven)
- Create a new aide with the ParamDriven part.
-
getDK()
- Returns the part's DK.
-
getDKType()
- Returns the DK type.
-
isImmediate()
- Determines whether the DK will be provided immediately or not.
-
isProvided()
- Determines whether the DK has been provided or not.
-
provideDK()
- Causes deferred Dk to be provided by getting it using the
ReadDKService, storing the reference, and calling
setDK(Flexitron dk) on the part.
-
setDK(Object)
- Sets the part's dk.
-
setDKType(String)
- Sets the type for the DK Object.
-
setImmediate(boolean)
- Sets the immediate property.
-
setReadDKService(UF_Object_String_String)
- Sets the service used to read the DK.
-
setURL(String)
- Sets the url for the dk.
ParamDrivenAideStd
public ParamDrivenAideStd(ParamDriven part)
- Create a new aide with the ParamDriven part.
- Parameters:
- part - the part having the aide.
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.
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.
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.
getDKType
public String getDKType()
- Returns the DK type.
- Returns:
- the DK type.
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.
isImmediate
public boolean isImmediate()
- Determines whether the DK will be provided immediately or not.
- Returns:
- true for immediately or false for deferred.
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.
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).
setURL
public void setURL(String url)
- Sets the url for the dk.
- Parameters:
- url - the dk url.
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