com.extjs.gxt.charts.client.model
Class Text

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.BaseModelData
      extended by com.extjs.gxt.ui.client.data.BaseModel
          extended by com.extjs.gxt.charts.client.model.Text
All Implemented Interfaces:
ChangeEventSource, Model, ModelData, java.io.Serializable

public class Text
extends BaseModel

Base class for an OFC text element

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModel
changeEventSupport
 
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModelData
allowNestedValues, map
 
Fields inherited from interface com.extjs.gxt.ui.client.data.ChangeEventSource
Add, Remove, Update
 
Constructor Summary
Text(java.lang.String text)
          Create a new Text instance with the given text and no style.
Text(java.lang.String text, java.lang.String style)
          Create a new Text instance with the given text and style.
 
Method Summary
 java.lang.String getStyle()
          Returns the style
 java.lang.String getText()
          Returns the text
 void setStyle(java.lang.String style)
          Sets the style.
 void setText(java.lang.String text)
          Sets the text string.
 
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModel
addChangeListener, addChangeListener, fireEvent, fireEvent, isSilent, notify, notifyPropertyChanged, remove, removeChangeListener, removeChangeListeners, set, setSilent
 
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModelData
get, get, getProperties, getPropertyNames, isAllowNestedValues, setAllowNestedValues, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.extjs.gxt.ui.client.data.ModelData
get, getProperties, getPropertyNames
 

Constructor Detail

Text

public Text(java.lang.String text)
Create a new Text instance with the given text and no style.

Parameters:
text - the text

Text

public Text(java.lang.String text,
            java.lang.String style)
Create a new Text instance with the given text and style. Style is a CSS string for formatting text.

Parameters:
text - the text
style - the style string
Method Detail

getStyle

public java.lang.String getStyle()
Returns the style

Returns:
String style

getText

public java.lang.String getText()
Returns the text

Returns:
String text

setStyle

public void setStyle(java.lang.String style)
Sets the style.

Parameters:
style - the style

setText

public void setText(java.lang.String text)
Sets the text string.

Parameters:
text - the text