|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.acuity.ui.PresentationObject
An abstract class which represents a PresentationObject in an ontology.
This class holds information to uniquely identify a presentation object within a client application, and be able to
find, update, and relate information about this presentation object with that of the presentation object in the ontology.
| Constructor Summary | |
PresentationObject()
Default constructor. |
|
| Method Summary | |
void |
addLookupInfo(java.lang.String parameter,
ParameterLookupInfo info)
Adds parameter lookup information (subject lookup) for the parameter.
|
java.lang.String |
getHasPresentationNature()
Returns the presentation nature of this presentation object. |
java.lang.String |
getIdentifier()
Returns the identification string for the presentation object. |
java.util.Map |
getLookupInfo()
Returns the map of ParameterLookupInfo ids to the ParameterLookupInfo objects;
The ParameterLookupInfo ids are the subjects for the parameters of the presentation object. |
java.lang.String |
getSubject(java.lang.String parameter)
Looks up the subject information for the parameter. |
boolean |
hasSubject(java.lang.String subj)
Checks to see if subj is a subject of a parameter of this presentation object. |
boolean |
isDisplayed()
Returns the state of the isDisplayed flag. |
boolean |
isEditable(java.lang.String parameter)
Returns whether or not the parameter value is able to be edited by a user of the client application.
|
void |
setEditability(java.lang.String parameter,
boolean value)
Sets whether or not the parameter's value is able to be edited by a user of the client application |
void |
setHasPresentationNature(java.lang.String string)
Checks that the new value for presentation nature is a valid presentation nature type. |
void |
setIdentifier(java.lang.String string)
Sets the identification string for the presentation object. |
void |
setIsDisplayed(boolean b)
Sets the state of the isDisplayed flag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PresentationObject()
Object.hashCode(),
setIdentifier(java.lang.String)| Method Detail |
public final void addLookupInfo(java.lang.String parameter,
ParameterLookupInfo info)
parameter.
If the info object already exists in the lookup information for another parameter,
then the info object is not added to the collection of parameter lookup information.
Regardless of whether the info object was found to already exist in the lookup collection,
the subject map is updated with information relating the parameter to the parameter lookup info.
parameter - the presentation object parameter/attribute to add subject lookup information forinfo - the parameter lookup object to be used for subject lookup for the parameterParameterLookupInfo.isSameAs(com.ge.research.acuity.ui.helpers.ParameterLookupInfo)public final java.lang.String getHasPresentationNature()
public final java.lang.String getIdentifier()
public final java.lang.String getSubject(java.lang.String parameter)
parameter. The subject is used in communication with the ontology
in order to extract and update information about this parameter for its presentation object within the ontology.
parameter - the parameter/attribute of this presentation object for which to find its subject
parameterpublic final java.util.Map getLookupInfo()
ParameterLookupInfo ids to the ParameterLookupInfo objects;
The ParameterLookupInfo ids are the subjects for the parameters of the presentation object.
public boolean hasSubject(java.lang.String subj)
subj is a subject of a parameter of this presentation object.
subj - the subject to lookup in the set of subject information kept for all the parameters of the presentation object
true if the subj is a subject identifier for a parameter of this presentation object;
false otherwise.public final boolean isDisplayed()
true if this presentation object should be rendered by a client application;
false if this presentation object should not be made visible in a client application.public final boolean isEditable(java.lang.String parameter)
parameter value is able to be edited by a user of the client application.
If the parameter editability was never explicitly set, then returns the default value of parameter editability
as defined by AcuityConstants.DEFAULT_PARAMETER_EDITABILITY
true if the parameter value is editable by a user of the client application;
false otherwiseAcuityConstants.DEFAULT_PARAMETER_EDITABILITY
public final void setEditability(java.lang.String parameter,
boolean value)
parameter's value is able to be edited by a user of the client application
value - true if the parameter value should be editable by a user of the client application;
false if the parameter value should not be editable by a user of the client application.public void setHasPresentationNature(java.lang.String string)
string - the new value of presentation naturePresentationNatureConstants.isPresentationNature(java.lang.String)public void setIdentifier(java.lang.String string)
string
is null or empty, than the identifier does not get changed.
string - the identifier string to use for this presentation objectpublic void setIsDisplayed(boolean b)
b - true if this presentation object should be rendered by a client application;
false if this presentation object should not be made visible in a client application.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||