|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.OptionItem y.option.ObjectOptionItem y.option.StringBasedOptionItem y.option.CommentOptionItem
public class CommentOptionItem
A dummy option item that displays a commentary text.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_FONT_SIZE
Attribute key used to store a font size for the displayed comment within the editor. |
Fields inherited from class y.option.StringBasedOptionItem |
---|
ATTRIBUTE_CONVERTER, PROPERTY_CONVERTER |
Fields inherited from class y.option.OptionItem |
---|
ATTRIBUTE_CONTEXT, ATTRIBUTE_GROUPS, ATTRIBUTE_LONG_DESCRIPTION, COLOR_UNDEFINED, name, PROPERTY_CLASS_TYPE, PROPERTY_ENABLED, PROPERTY_TIP_TEXT, PROPERTY_VALUE, PROPERTY_VALUE_UNDEFINED, UNDEFINED |
Constructor Summary | |
---|---|
CommentOptionItem(java.lang.String text,
int fontSize)
Creates a new instance of CommentOptionItem. |
Method Summary | |
---|---|
java.lang.String |
getType()
Returns "Comment". |
void |
resetValue()
Does nothing. |
void |
setValue(java.lang.Object value)
Does nothing. |
boolean |
wantsVisibleName()
Returns false, since this item has no name. |
Methods inherited from class y.option.StringBasedOptionItem |
---|
getConverter, getStringValue, setConverter, setStringValue |
Methods inherited from class y.option.ObjectOptionItem |
---|
getBackupValue, getValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTRIBUTE_FONT_SIZE
Integer
and positive.
Constructor Detail |
---|
public CommentOptionItem(java.lang.String text, int fontSize)
text
- the commentary text to be displayed.fontSize
- the fontSize of the displayed comment within
the editor.Method Detail |
---|
public java.lang.String getType()
getType
in class StringBasedOptionItem
public void resetValue()
resetValue
in class ObjectOptionItem
OptionItem.publishValue(Object)
public void setValue(java.lang.Object value)
setValue
in class StringBasedOptionItem
OptionItem.publishValue(Object)
public boolean wantsVisibleName()
wantsVisibleName
in class OptionItem
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |