com.ge.research.acuity.ui
Class TextPO

java.lang.Object
  extended bycom.ge.research.acuity.ui.PresentationObject
      extended bycom.ge.research.acuity.ui.IndependentDisplayPO
          extended bycom.ge.research.acuity.ui.TextPO

public class TextPO
extends IndependentDisplayPO

A presentation object that represents a simple textual display element.

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:24 $
Author:
garbiras
Created on:
Aug 5, 2005

Constructor Summary
TextPO()
          The default constructor.
 
Method Summary
 boolean getHasBooleanValue()
          Returns the hasBooleanValue value.
 java.util.Date getHasDateTimeValue()
          Returns the hasDateTimeValue value.
 float getHasFloatValue()
          Returns the hasFloatValue value.
 int getHasIntegerValue()
          Returns the hasIntegerValue value.
 java.lang.Object getHasStringValue()
          Returns the hasStringValue value.
 java.lang.Object getValue()
           
 java.lang.String getValueName()
          Returns the value name for this simple display object
 void setHasBooleanValue(boolean value)
          Sets the hasBooleanValue attribute
 void setHasDateTimeValue(java.util.Date value)
          Sets the hasDateTimeValue attribute
 void setHasFloatValue(float value)
          Sets the hasFloatValue attribute
 void setHasIntegerValue(int value)
          Sets the hasIntegerValue attribute
 void setHasPresentationNature(java.lang.String string)
          Overrides setHasPresentationNature in PresentationObject.
 void setHasStringValue(java.lang.Object value)
          Sets the hasStringValue attribute
 void setValueName(java.lang.String string)
          Sets the value name for this simple display object
 
Methods inherited from class com.ge.research.acuity.ui.IndependentDisplayPO
canBeRemoved, displayBanner, getHeight, getIdentifierTitle, getWidth, getXPos, getYPos, getZOrder, setCanBeRemoved, setDisplayBanner, setHeight, setIdentifier, setIdentifierTitle, setPos, setPos, setPos, setPos, setWidth, setXPos, setYPos, setZOrder
 
Methods inherited from class com.ge.research.acuity.ui.PresentationObject
addLookupInfo, getHasPresentationNature, getIdentifier, getLookupInfo, getSubject, hasSubject, isDisplayed, isEditable, setEditability, setIsDisplayed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPO

public TextPO()
The default constructor. Calls super(). Sets the presentation nature to PresentationNatureConstants.TEXT Sets the editability for presentation nature to false

See Also:
PresentationObject.PresentationObject(), setHasPresentationNature(java.lang.String), PresentationObject.setEditability(java.lang.String, boolean), PresentationNatureConstants.TEXT, PresentationParameterConstants.NATURE
Method Detail

getHasBooleanValue

public boolean getHasBooleanValue()
Returns the hasBooleanValue value.

Returns:
The hasBooleanValue value.

getHasDateTimeValue

public java.util.Date getHasDateTimeValue()
Returns the hasDateTimeValue value.

Returns:
The hasDateTimeValue value.

getHasFloatValue

public float getHasFloatValue()
Returns the hasFloatValue value.

Returns:
The hasFloatValue value.

getHasIntegerValue

public int getHasIntegerValue()
Returns the hasIntegerValue value.

Returns:
The hasIntegerValue value.

getHasStringValue

public java.lang.Object getHasStringValue()
Returns the hasStringValue value.

Returns:
The hasStringValue value.

getValue

public java.lang.Object getValue()

getValueName

public java.lang.String getValueName()
Returns the value name for this simple display object

Returns:
The value name for this simple display object

setHasBooleanValue

public void setHasBooleanValue(boolean value)
Sets the hasBooleanValue attribute

Parameters:
value - the hasBooleanValue to set.

setHasDateTimeValue

public void setHasDateTimeValue(java.util.Date value)
Sets the hasDateTimeValue attribute


setHasFloatValue

public void setHasFloatValue(float value)
Sets the hasFloatValue attribute

Parameters:
value - the hasFloatValue to set.

setHasIntegerValue

public void setHasIntegerValue(int value)
Sets the hasIntegerValue attribute

Parameters:
value - the hasIntegerValue to set.

setHasPresentationNature

public void setHasPresentationNature(java.lang.String string)
Overrides setHasPresentationNature in PresentationObject. Checks that the new value for presentation nature is a valid type for a TextPO. If not, the value of presentation nature does not change.

Overrides:
setHasPresentationNature in class PresentationObject
Parameters:
string - the new value of presentation nature
See Also:
PresentationNatureConstants.isSimpleTextType(java.lang.String)

setHasStringValue

public void setHasStringValue(java.lang.Object value)
Sets the hasStringValue attribute

Parameters:
value - the hasStringValue to set.

setValueName

public void setValueName(java.lang.String string)
Sets the value name for this simple display object

Parameters:
string - the value name for this simple display object