|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.richtext.textpanel.TextPanelSettings
This class contains settings used when constructing an MTextPanel. The settings controled by this class include:
MTextPanel
, Serialized FormConstructor Summary | |
TextPanelSettings()
Create a TextPanelSettings instance with all settings set to true. |
Method Summary | |
void |
addDefaultValues(AttributeMap map)
Add the key-value pairs in the given AttributeMap to the default values. |
java.lang.Object |
clone()
Return a new TextPanelSettings instance with the same settings as this. |
boolean |
equals(java.lang.Object rhs)
Compare this to another Object. |
AttributeMap |
getDefaultValues()
Return the AttributeMap of default values for certain keys. |
boolean |
getEditable()
Return the editable setting, which determines whether text in an MTextPanel can be edited. |
boolean |
getScrollable()
Return the scrollable setting, which determines whether text in an MTextPanel can be scrolled. |
boolean |
getScrollBarsVisible()
Return the scrollBarsVisible setting, which determines whether scroll bars in an MTextPanel are visible. |
boolean |
getSelectable()
Return the selectable setting, which determines whether text in an MTextPanel can be selected. |
boolean |
getWraps()
Return the wraps setting, which determines whether lines of text wrap to the length of the MTextPanel, or only at paragraph separators. |
int |
hashCode()
Return the hash code for this Object. |
void |
setEditable(boolean editable)
Set the editable setting. |
void |
setScrollable(boolean scrollable)
Set the scrollable setting. |
void |
setScrollBarsVisible(boolean vis)
Set the scrollBarsVisible setting. |
void |
setSelectable(boolean selectable)
Set the selectable setting. |
void |
setWraps(boolean wraps)
Set the wraps setting. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextPanelSettings()
Method Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean getScrollable()
public void setScrollable(boolean scrollable)
scrollable
- the scrollable setting. If false,
the scrollBarsVisible setting is also set to false.public boolean getScrollBarsVisible()
public void setScrollBarsVisible(boolean vis)
vis
- the scrollBarsVisible setting. If true,
the scrollable setting is also set to true.public boolean getSelectable()
public void setSelectable(boolean selectable)
selectable
- the selectable setting. If false,
the editable setting is also set to false.public boolean getEditable()
public void setEditable(boolean editable)
selectable
- the selectable setting. If true,
the selectable setting is also set to true.public boolean getWraps()
public void setWraps(boolean wraps)
wraps
- the wraps settingpublic AttributeMap getDefaultValues()
MTextPanel.getDefaultValues()
public void addDefaultValues(AttributeMap map)
map
- an AttributeMap containing new default valuespublic boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
rhs
- the Object to compare topublic int hashCode()
hashCode
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |