com.extjs.gxt.charts.client.model
Class Text
java.lang.Object
com.extjs.gxt.ui.client.data.BaseModelData
com.extjs.gxt.ui.client.data.BaseModel
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 textstyle
- the style string
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