|
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.ComponentOptionItem
public class ComponentOptionItem
An option item that displays a given JComponent as its editor.
Field Summary |
---|
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 | |
---|---|
ComponentOptionItem(java.lang.String name,
javax.swing.JComponent c)
Creates a new instance of ComponentOptionItem. |
Method Summary | |
---|---|
boolean |
adoptEditorValue()
This implementation is a no-op for backwards compatibility. |
javax.swing.JComponent |
getEditor()
Returns the editor component for the this option item. |
java.lang.String |
getType()
Returns "Component". |
java.lang.Object |
getValue()
Returns the editor component itself. |
void |
resetValue()
Does nothing. |
void |
setValue(java.lang.Object v)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentOptionItem(java.lang.String name, javax.swing.JComponent c)
name
- the name of this itemc
- the component being displayed as editor.Method Detail |
---|
public java.lang.String getType()
getType
in class OptionItem
public java.lang.Object getValue()
getValue
in class OptionItem
public void setValue(java.lang.Object v)
setValue
in class OptionItem
OptionItem.publishValue(Object)
public boolean adoptEditorValue()
OptionItem
adoptEditorValue
in class OptionItem
true
public void resetValue()
resetValue
in class OptionItem
OptionItem.publishValue(Object)
public javax.swing.JComponent getEditor()
OptionItem
Note:
Use the getEditor(GuiFactory,String)
variant instead.
getEditor
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 |