|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.DefaultCompoundEditor
public abstract class DefaultCompoundEditor
Default base class for compound editors.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface y.option.Editor |
---|
Editor.Event, Editor.Listener |
Constructor Summary | |
---|---|
protected |
DefaultCompoundEditor()
Creates a new instance of DefaultCompoundEditor. |
protected |
DefaultCompoundEditor(int capacity)
Creates a new instance of DefaultCompoundEditor with the specified capacity. |
Method Summary | |
---|---|
void |
addChildPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener to receive
all PropertyChange events from all
PropertyChangeReporter children of this
reporter. |
void |
addChildPropertyChangeListener(java.lang.String pn,
java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener to receive
specific PropertyChange events from all
PropertyChangeReporter children of this
reporter. |
void |
addChildVetoableChangeListener(java.lang.String pn,
java.beans.VetoableChangeListener vcl)
Registers a VetoableChangeListener to receive
specific VetoableChange events from all
VetoableChangeReporter children of this
reporter. |
void |
addChildVetoableChangeListener(java.beans.VetoableChangeListener vcl)
Registers a VetoableChangeListener to receive
all VetoableChange events from all
VetoableChangeReporter children of this
reporter. |
protected void |
addEditor(Editor editor)
Adds the specified editor to this CompoundEditor . |
void |
adoptItemValue()
Resets the values of the contained editors to the values currently stored in the corresponding option items by invoking adoptItemValue() of all contained editors. |
protected void |
clearEditors()
Removes all contained editors from this CompoundEditor . |
void |
commitValue()
Commits the values of the contained editors that were modified to the corresponding option items by invoking commitValue() of all contained editors. |
int |
editorCount()
Returns the number of editors in this compound. |
java.util.Iterator |
editors()
Returns an iterator over the editors in this compound. |
Editor |
getEditor(int index)
Returns the editor at the specified position. |
void |
removeChildPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Unregisters a PropertyChangeListener , that received
all PropertyChange events from
PropertyChangeReporter children of this
reporter. |
void |
removeChildPropertyChangeListener(java.lang.String pn,
java.beans.PropertyChangeListener pcl)
Unregisters a PropertyChangeListener , that received
specific PropertyChange events from
PropertyChangeReporter children of this
reporter. |
void |
removeChildVetoableChangeListener(java.lang.String pn,
java.beans.VetoableChangeListener vcl)
Unregisters a VetoableChangeListener , that received
specific VetoableChange events from
VetoableChangeReporter children of this
reporter. |
void |
removeChildVetoableChangeListener(java.beans.VetoableChangeListener vcl)
Unregisters a VetoableChangeListener , that received
all VetoableChange events from
VetoableChangeReporter children of this
reporter. |
void |
resetValue()
Resets the values of the contained editors by invoking resetValue() of all contained editors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface y.option.Editor |
---|
getComponent |
Constructor Detail |
---|
protected DefaultCompoundEditor()
protected DefaultCompoundEditor(int capacity)
capacity
- the initial capacity of the compound editorMethod Detail |
---|
public int editorCount()
editorCount
in interface CompoundEditor
protected void addEditor(Editor editor)
CompoundEditor
.
editor
- the Editor
to addprotected void clearEditors()
CompoundEditor
.
public Editor getEditor(int index)
getEditor
in interface CompoundEditor
index
- zero-based index of the editor to return
public java.util.Iterator editors()
editors
in interface CompoundEditor
Iterator
over the editors in this compound.public void commitValue()
commitValue()
of all contained editors.
commitValue
in interface Editor
public void adoptItemValue()
adoptItemValue()
of all contained editors.
adoptItemValue
in interface Editor
public void resetValue()
resetValue()
of all contained editors.
resetValue
in interface Editor
public void addChildPropertyChangeListener(java.beans.PropertyChangeListener pcl)
ChildChangeReporter
PropertyChangeListener
to receive
all PropertyChange
events from all
PropertyChangeReporter
children of this
reporter.
addChildPropertyChangeListener
in interface ChildChangeReporter
pcl
- the PropertyChangeListener
to be registeredpublic void removeChildPropertyChangeListener(java.beans.PropertyChangeListener pcl)
ChildChangeReporter
PropertyChangeListener
, that received
all PropertyChange
events from
PropertyChangeReporter
children of this
reporter.
removeChildPropertyChangeListener
in interface ChildChangeReporter
pcl
- the PropertyChangeListener
to be unregisteredpublic void addChildPropertyChangeListener(java.lang.String pn, java.beans.PropertyChangeListener pcl)
ChildChangeReporter
PropertyChangeListener
to receive
specific PropertyChange
events from all
PropertyChangeReporter
children of this
reporter.
addChildPropertyChangeListener
in interface ChildChangeReporter
pn
- the name of the property to listen onpcl
- the PropertyChangeListener
to be registeredpublic void removeChildPropertyChangeListener(java.lang.String pn, java.beans.PropertyChangeListener pcl)
ChildChangeReporter
PropertyChangeListener
, that received
specific PropertyChange
events from
PropertyChangeReporter
children of this
reporter.
removeChildPropertyChangeListener
in interface ChildChangeReporter
pn
- the name of the property that was listened onpcl
- the PropertyChangeListener
to be unregisteredpublic void addChildVetoableChangeListener(java.beans.VetoableChangeListener vcl)
ChildChangeReporter
VetoableChangeListener
to receive
all VetoableChange
events from all
VetoableChangeReporter
children of this
reporter.
addChildVetoableChangeListener
in interface ChildChangeReporter
vcl
- the VetoableChangeListener
to be registeredpublic void removeChildVetoableChangeListener(java.beans.VetoableChangeListener vcl)
ChildChangeReporter
VetoableChangeListener
, that received
all VetoableChange
events from
VetoableChangeReporter
children of this
reporter.
removeChildVetoableChangeListener
in interface ChildChangeReporter
vcl
- the VetoableChangeListener
to be unregisteredpublic void addChildVetoableChangeListener(java.lang.String pn, java.beans.VetoableChangeListener vcl)
ChildChangeReporter
VetoableChangeListener
to receive
specific VetoableChange
events from all
VetoableChangeReporter
children of this
reporter.
addChildVetoableChangeListener
in interface ChildChangeReporter
pn
- the name of the property to listen onvcl
- the VetoableChangeListener
to be registeredpublic void removeChildVetoableChangeListener(java.lang.String pn, java.beans.VetoableChangeListener vcl)
ChildChangeReporter
VetoableChangeListener
, that received
specific VetoableChange
events from
VetoableChangeReporter
children of this
reporter.
removeChildVetoableChangeListener
in interface ChildChangeReporter
pn
- the name of the property that was listened onvcl
- the VetoableChangeListener
to be unregistered
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |