|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--y.option.OptionItem
|
+--y.option.CommentOptionItem
A dummy option item that displays a commentary text.
Currently provides a JTextArea as non-editable component
| Field Summary |
| Fields inherited from class y.option.OptionItem |
COLOR_UNDEFINED, name, UNDEFINED |
| Constructor Summary | |
CommentOptionItem(String text,
int fontSize)
Creates a new instance of CommentOptionItem. |
|
| Method Summary | |
boolean |
adoptEditorValue()
Adopts the value from the editor component to the item. |
JComponent |
getEditor()
Returns the editor component for the this option item. |
String |
getType()
Returns "Comment" |
Object |
getValue()
Returns the commentary text. |
void |
resetValue()
Does nothing. |
void |
setValue(Object v)
Does nothing. |
boolean |
wantsVisibleName()
Returns false, since this item has no name. |
| Methods inherited from class y.option.OptionItem |
checkEditorValue, getClassType, getEditor, getName, getStringValue, getTipText, isValueUndefined, setClassType, setStringValue, setTipText, setValueUndefined |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommentOptionItem(String text,
int fontSize)
text - the commentary text to be displayed.fontSize - the fontSize of the displayed comment within
the editor.| Method Detail |
public Object getValue()
getValue in class OptionItempublic String getType()
getType in class OptionItempublic boolean adoptEditorValue()
OptionItem
adoptEditorValue in class OptionItempublic void resetValue()
resetValue in class OptionItempublic void setValue(Object v)
setValue in class OptionItempublic boolean wantsVisibleName()
wantsVisibleName in class OptionItempublic JComponent getEditor()
OptionItem
getEditor in class OptionItem
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||