| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ItemEditor
Specifies the general contract of an option item editor.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from interface y.option.Editor | 
|---|
| Editor.Event, Editor.Listener | 
| Field Summary | |
|---|---|
| static java.lang.String | ATTRIBUTE_AUTO_ADOPTIf the value of this attribute equals Boolean.TRUE,
 the editor is initialized to be inautoAdoptmode. | 
| static java.lang.String | ATTRIBUTE_AUTO_COMMITIf the value of this attribute equals Boolean.TRUE,
 the editor is initialized to be inautoCommitstate. | 
| static java.lang.String | ATTRIBUTE_FONT_NAMESpecifies the font family name for editors of text/string based option items. | 
| static java.lang.String | ATTRIBUTE_SELECT_TEXT_ON_FOCUSIf the value of this attribute equals Boolean.TRUE,
 text-based editors should select their text content when they receive
 focus due to a focus traversal event (i.e. receiving the focus due to
 mouse clicks should not trigger the content selection). | 
| Method Summary | |
|---|---|
|  OptionItem | getItem()Returns the option item whose value can be edited with this editor. | 
|  java.lang.Object | getValue()Returns the value of this editor. | 
|  boolean | isAutoAdopt()Returns whether this editor is in autoAdoptstate,
 i.e. if changes in the underlying option item be automatically adopted by
 the editor. | 
|  boolean | isAutoCommit()Returns whether this editor is in autoCommitstate,
 i.e. if editor changes will be automatically propagated to the underlying
 option item. | 
|  boolean | isEnabled()Returns the enabled state of this editor. | 
|  boolean | isValueUndefined()Returns whether or not the editor should start up displaying an undefined value. | 
|  void | setAutoAdopt(boolean autoAdopt)Specifies the autoAdoptstate of this editor. | 
|  void | setAutoCommit(boolean autoCommit)Specifies the autoCommitstate of this editor. | 
|  void | setEnabled(boolean b)Sets the enabled state of this editor. | 
|  void | setValue(java.lang.Object value)Sets the value of this editor. | 
|  void | setValueUndefined(boolean b)Specifies whether or not the editor should display an undefined value. | 
| Methods inherited from interface y.option.Editor | 
|---|
| adoptItemValue, commitValue, getComponent, resetValue | 
| Field Detail | 
|---|
static final java.lang.String ATTRIBUTE_AUTO_COMMIT
Boolean.TRUE,
 the editor is initialized to be in autoCommit state.
isAutoCommit(), 
setAutoCommit(boolean), 
Constant Field Valuesstatic final java.lang.String ATTRIBUTE_AUTO_ADOPT
Boolean.TRUE,
 the editor is initialized to be in autoAdopt mode.
isAutoAdopt(), 
setAutoAdopt(boolean), 
Constant Field Valuesstatic final java.lang.String ATTRIBUTE_SELECT_TEXT_ON_FOCUS
Boolean.TRUE,
 text-based editors should select their text content when they receive
 focus due to a focus traversal event (i.e. receiving the focus due to
 mouse clicks should not trigger the content selection).
static final java.lang.String ATTRIBUTE_FONT_NAME
AttributeOwner) instead of option items.
| Method Detail | 
|---|
OptionItem getItem()
boolean isAutoCommit()
autoCommit state,
 i.e. if editor changes will be automatically propagated to the underlying
 option item.
 value
 property of its associated option item.
void setAutoCommit(boolean autoCommit)
autoCommit state of this editor.
autoCommit - if true changes in this editor will
                     be automatically propagated to the underlying option
                     itemboolean isAutoAdopt()
autoAdopt state,
 i.e. if changes in the underlying option item be automatically adopted by
 the editor.
 OptionItem to update
 the properties value, valueUndefined, and
 enabled of editors that are in autoAdopt state.
OptionItem.publishValue(Object), 
OptionItem.publishValueUndefined(boolean), 
OptionItem.publishEnabled(boolean)void setAutoAdopt(boolean autoAdopt)
autoAdopt state of this editor.
autoAdopt - if true changes in the underlying option
                    item will be automatically adopted by the editorjava.lang.Object getValue()
void setValue(java.lang.Object value)
boolean isEnabled()
void setEnabled(boolean b)
boolean isValueUndefined()
void setValueUndefined(boolean b)
b - if true the editor should display an undefined
            value| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||