|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.OptionHandler
public class OptionHandler
A class that manages a set of parameters.
To get a view component that allows to modify the values interactively,
an Editor
has to be created. This can be done implicitly
by the various showEditor
methods or explicitly by instantiating
an EditorFactory
and using the factory's
createEditor
method.
Parties interested in PropertyChange
or
VetoableChange
events on option item level can registered
appropriate listeners for all option items in the handler via the
addChildPropertyChangeListener
and
addChildVetoableChangeListener
methods.
EditorFactory
,
DefaultEditorFactory
,
TableEditorFactory
,
Editor
,
ItemEditor
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_TITLE
Attribute key used to store a String to be displayed in the
title bar of dialogs created by the showEditor methods. |
static java.lang.String |
ATTRIBUTE_TITLE_KEY
Attribute key used to store an i18n key to retrieve a localized String to be displayed in the title bar of dialogs created
by the showEditor methods. |
protected EditorFactory |
editorFactory
The editor factory used constructing the panel. |
protected GuiFactory |
guiFactory
The gui factory used for constructing the panel. |
static byte |
OK_APPLY_CANCEL_BUTTONS
Button mask for the editor dialog. |
static byte |
OK_CANCEL_BUTTONS
Button mask for the editor dialog. |
static byte |
OK_RESET_APPLY_CANCEL_BUTTONS
Button mask for the editor dialog. |
static byte |
OK_RESET_CANCEL_BUTTONS
Button mask for the editor dialog. |
protected OptionsIOHandler |
optionsIOHandler
The io handler used for serializing the values. |
Constructor Summary | |
---|---|
OptionHandler(GuiFactory factory,
java.io.InputStream is)
Deprecated. Use the OptionsIOhandler way. |
|
OptionHandler(GuiFactory factory,
OptionsIOHandler optionsIOHandler,
java.lang.String name)
Create a new OptionHandler instance with a given name using the given IOHandler and GUIFactory. |
|
OptionHandler(java.io.InputStream is)
Deprecated. use the OptionsIOhandler way |
|
OptionHandler(java.lang.String name)
Create a new OptionHandler instance with a given name, no (default) GuiFactory and no (default) OptionsIOHandler. |
Method Summary | |
---|---|
OptionItem |
addBool(java.lang.String name,
boolean value)
Adds a boolean option item. |
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. |
OptionItem |
addColor(java.lang.String name,
java.lang.Object value)
Adds a color option item. |
OptionItem |
addColor(java.lang.String name,
java.lang.Object value,
boolean showPopup)
Adds a color option item. |
OptionItem |
addColor(java.lang.String name,
java.lang.Object value,
boolean showNoColor,
boolean showSomeColors,
boolean showMostRecentlyUsedColors,
boolean showMoreColors)
Adds a color option item. |
void |
addComment(java.lang.String text)
Adds a commentary text to the option editor. |
void |
addComment(java.lang.String text,
int fontSize)
Adds a commentary text to the option editor. |
CommentOptionItem |
addCommentItem(java.lang.String text)
Adds a commentary text to the option editor. |
CommentOptionItem |
addCommentItem(java.lang.String text,
int fontSize)
Adds a commentary text to the option editor. |
OptionItem |
addDouble(java.lang.String name,
double value)
Adds a double option item. |
OptionItem |
addDouble(java.lang.String name,
double value,
double minValue,
double maxValue)
Adds a double option item that has a lower and upper value bound. |
OptionItem |
addDouble(java.lang.String name,
double value,
double minValue,
double maxValue,
int precision)
Like addDouble(String,double,double,double) . |
Editor |
addEditor(Editor editor)
Adds the specified editor to this handler. |
void |
addEditorListener(Editor.Listener el)
Register el so that it will receive notifications
when an editor is added or removed. |
EnumOptionItem |
addEnum(java.lang.String name)
Adds an empty enumeration option item. |
EnumOptionItem |
addEnum(java.lang.String name,
java.lang.Object[] values,
int valueIndex)
Adds an enumeration option item. |
EnumOptionItem |
addEnum(java.lang.String name,
java.lang.Object[] values,
java.lang.Object defaultValue,
javax.swing.ListCellRenderer renderer)
Adds an enumeration option item. |
FileOptionItem |
addFile(java.lang.String name,
java.lang.String value)
Adds a file name option item. |
OptionItem |
addInt(java.lang.String name,
int value)
Adds an integer option item. |
OptionItem |
addInt(java.lang.String name,
int value,
int minValue,
int maxValue)
Adds an integer option item that has a lower and upper value bound. |
OptionItem |
addItem(OptionItem it)
Adds a generic option item. |
void |
addOptionHandler(OptionHandler childHandler,
java.lang.String defaultName)
Adds all the sections of another option handler to this one. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(java.lang.String propertyname,
java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener to the listener list for a specific property. |
OptionItem |
addString(java.lang.String name,
java.lang.String value)
Adds a string option item. |
OptionItem |
addString(java.lang.String name,
java.lang.String value,
int rowCount)
Adds a string option item whose text editor has a specific number of rows. |
OptionItem |
addString(java.lang.String name,
java.lang.String value,
int rowCount,
int columnCount)
Adds a string option item whose text editor has a specific number of rows and columns. |
boolean |
checkValues()
Checks if the values in the option editor are valid. |
void |
clear()
Removes all sections and option items from this option handler. |
void |
commitValues()
Commits all values that were modified with the option editor to the corresponding option items. |
java.lang.Object |
get(java.lang.String name)
Returns the value of the option item that has the given identifying name. |
java.lang.Object |
get(java.lang.String section,
java.lang.String name)
Returns the value of an option item. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the attribute with the specified name. |
boolean |
getBool(java.lang.String name)
Returns the boolean value of an option item. |
boolean |
getBool(java.lang.String section,
java.lang.String name)
Returns the boolean value of an option item. |
static GuiFactory |
getDefaultGuiFactory()
Getter for the default GUIFactory. |
static OptionsIOHandler |
getDefaultOptionsIOHandler()
Getter for the default OptionsIOhandler. |
double |
getDouble(java.lang.String name)
Returns the double value of an option item. |
double |
getDouble(java.lang.String section,
java.lang.String name)
Returns the double value of an option item. |
javax.swing.JComponent |
getEditor()
Deprecated. Use EditorFactory.createEditor(y.option.OptionHandler) instead. |
EditorFactory |
getEditorFactory()
Returns the editor factory. |
java.util.List |
getEditors()
Returns a list of all the editors that were added to the OptionHandler with addEditor(y.option.Editor) . |
int |
getEnum(java.lang.String name)
Returns the index value of an enumeration item. |
int |
getEnum(java.lang.String section,
java.lang.String name)
Returns the index value of an enumeration item. |
GuiFactory |
getGuiFactory()
Getter for property guiFactory. |
static byte |
getIndex(java.lang.Object[] values,
java.lang.Object value)
Returns the index for the given array at which the given value is found. |
int |
getInt(java.lang.String name)
Returns the integer value of an option item. |
int |
getInt(java.lang.String section,
java.lang.String name)
Returns the integer value of an option item. |
OptionItem |
getItem(java.lang.String name)
Returns the option item that has the given identifying name. |
OptionItem |
getItem(java.lang.String section,
java.lang.String name)
Returns the option item found in the given section under the given name. |
java.lang.String |
getName()
Returns the name of the option handler. |
OptionsIOHandler |
getOptionsIOHandler()
Getter for property OptionsIOHandler. |
static java.util.List |
getRegisteredOptionHandlers()
This method returns a list of all non-garbage collected instances of OptionHandlers, which have been instantiated during this session. |
java.lang.String |
getString(java.lang.String name)
Returns the String value of an option item. |
java.lang.String |
getString(java.lang.String section,
java.lang.String name)
Returns the String value of an option item. |
java.lang.String |
getStringValue(java.lang.String section,
java.lang.String name)
Returns the stringified value of an option item. |
static void |
installDefaultGuiFactory(GuiFactory guiFactory)
Static method to install a default GUIFactory for all option handlers, which will be used if no specific GUIFactory is provided for each instance. |
static void |
installDefaultOptionsIOHandler(OptionsIOHandler optionsIOHandler)
Static method to install a default IOHandler for all option handlers, which will be used if no specific instance is provided for each instance. |
boolean |
read()
Reads in the values for the items from the installed IOHandler. |
boolean |
read(OptionsIOHandler ioh)
Reads in the values for the items from the given IOHandler. |
void |
removeAttribute(java.lang.String name)
Removes the attribute with the specified name. |
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 |
removeEditor(Editor editor)
Removes the specified editor from this handler. |
void |
removeEditorListener(Editor.Listener el)
Unregister el so that it will no longer receive notifications
when an editor is added or removed. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(java.lang.String propertyname,
java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener from the listener list for a specific property. |
void |
resetValues()
Resets all option values to their original settings. |
OptionSection |
section(int index)
Returns the option section at position index . |
OptionSection |
section(java.lang.String name)
Returns the option section that has the given name. |
int |
sectionCount()
Returns the number of sections of this option handler. |
void |
set(java.lang.String name,
java.lang.Object value)
Sets the value for the option that has the given name. |
void |
set(java.lang.String section,
java.lang.String name,
java.lang.Object value)
Sets the value for the option that has the given name in the given section. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an arbitrary attribute with the specified name and value. |
void |
setEditorFactory(EditorFactory editorFactory)
Sets the editor factory. |
void |
setGuiFactory(GuiFactory guiFactory)
Setter for property guiFactory. |
void |
setName(java.lang.String name)
Sets the name of the option handler. |
void |
setOptionsIOHandler(OptionsIOHandler optionsIOHandler)
Setter for property OptionsIOHandler. |
void |
setPreferredEditorWidth(int width)
Sets the preferred width of the option editor. |
void |
setStringValue(java.lang.String section,
java.lang.String name,
java.lang.String value)
Sets the value for the option that has the given name in the given section. |
boolean |
showEditor()
Displays the editor for this option handler as a modal dialog window. |
boolean |
showEditor(java.awt.Frame frame)
Displays the editor for this option handler as a modal dialog window. |
boolean |
showEditor(java.awt.Frame frame,
byte buttonMask)
Displays the editor for this option handler as a modal dialog window. |
java.lang.String |
toString()
Returns a String that contains what would be written out by write(OutputStream) . |
OptionSection |
useSection(java.lang.String name)
Switch to specific section. |
void |
write(OptionsIOHandler ioh)
Writes out the values from the items to the given IOHandler. |
void |
write(java.io.OutputStream os)
Deprecated. use the OptionsIOhandler way |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte OK_RESET_CANCEL_BUTTONS
public static final byte OK_APPLY_CANCEL_BUTTONS
public static final byte OK_CANCEL_BUTTONS
public static final byte OK_RESET_APPLY_CANCEL_BUTTONS
public static final java.lang.String ATTRIBUTE_TITLE
String
to be displayed in the
title bar of dialogs created by the showEditor
methods.
showEditor()
,
showEditor(java.awt.Frame)
,
showEditor(java.awt.Frame,byte)
,
Constant Field Valuespublic static final java.lang.String ATTRIBUTE_TITLE_KEY
String
to be displayed in the title bar of dialogs created
by the showEditor
methods.
showEditor()
,
showEditor(java.awt.Frame)
,
showEditor(java.awt.Frame,byte)
,
Constant Field Valuesprotected GuiFactory guiFactory
protected OptionsIOHandler optionsIOHandler
protected EditorFactory editorFactory
Constructor Detail |
---|
public OptionHandler(java.lang.String name)
public OptionHandler(GuiFactory factory, OptionsIOHandler optionsIOHandler, java.lang.String name)
factory
- the default factoryoptionsIOHandler
- name
- the name of the OptionHandlerpublic OptionHandler(java.io.InputStream is)
write(OutputStream)
.
public OptionHandler(GuiFactory factory, java.io.InputStream is)
write(OutputStream)
.
factory
- the default factoryis
- Method Detail |
---|
public static void installDefaultGuiFactory(GuiFactory guiFactory)
guiFactory
- the default factorypublic static void installDefaultOptionsIOHandler(OptionsIOHandler optionsIOHandler)
optionsIOHandler
- the default handlerpublic static OptionsIOHandler getDefaultOptionsIOHandler()
public static GuiFactory getDefaultGuiFactory()
public static java.util.List getRegisteredOptionHandlers()
public static byte getIndex(java.lang.Object[] values, java.lang.Object value)
-1
is returned.
Convenience method for enumeration option items.
public void setName(java.lang.String name)
public java.lang.String getName()
public EditorFactory getEditorFactory()
public void setEditorFactory(EditorFactory editorFactory)
editorFactory
- the EditorFactory instance.public FileOptionItem addFile(java.lang.String name, java.lang.String value)
name
- the identifier of this optionvalue
- the initial path to the filepublic OptionItem addInt(java.lang.String name, int value)
name
- the identifier of this optionvalue
- the initial value of the optionpublic OptionItem addInt(java.lang.String name, int value, int minValue, int maxValue)
name
- the identifier of this optionvalue
- the initial value of the optionminValue
- the minimal value of the optionmaxValue
- the maximal value of the optionpublic OptionItem addDouble(java.lang.String name, double value)
name
- the identifier of this optionvalue
- the initial value of the optionpublic OptionItem addDouble(java.lang.String name, double value, double minValue, double maxValue)
name
- the identifier of this optionvalue
- the initial value of the optionminValue
- the minimal value of the optionmaxValue
- the maximal value of the optionpublic OptionItem addDouble(java.lang.String name, double value, double minValue, double maxValue, int precision)
addDouble(String,double,double,double)
. Additionally
the precision of the double can be specified as the number of decimal
places.
public EnumOptionItem addEnum(java.lang.String name, java.lang.Object[] values, int valueIndex)
name
- the identifier of this optionvalues
- an array that holds all possible values for this item.valueIndex
- the array index of the initial value.public EnumOptionItem addEnum(java.lang.String name)
name
- the identifier of this optionpublic EnumOptionItem addEnum(java.lang.String name, java.lang.Object[] values, java.lang.Object defaultValue, javax.swing.ListCellRenderer renderer)
name
- the identifier of this optionvalues
- an array that holds all possible values for this itemdefaultValue
- the initial value chosen (must be found in enum!)renderer
- The renderer being used in the editor component to
display the values of the enumeration.public OptionItem addBool(java.lang.String name, boolean value)
name
- the identifier of this optionvalue
- the initial value of the optionpublic OptionItem addItem(OptionItem it)
it
- an option item.public OptionItem addString(java.lang.String name, java.lang.String value)
name
- the identifier of this optionvalue
- the initial value of the optionpublic OptionItem addString(java.lang.String name, java.lang.String value, int rowCount)
name
- the identifier of this optionvalue
- the initial value of the optionrowCount
- the number of rows of the text editorpublic OptionItem addString(java.lang.String name, java.lang.String value, int rowCount, int columnCount)
name
- the identifier of this optionvalue
- the initial value of the optionrowCount
- the number of rows of the text editorcolumnCount
- the number of columns of the text editorpublic OptionItem addColor(java.lang.String name, java.lang.Object value)
name
- the identifier of this optionvalue
- the initial value of the optionpublic OptionItem addColor(java.lang.String name, java.lang.Object value, boolean showPopup)
name
- the identifier of this optionvalue
- the initial value of the optionpublic OptionItem addColor(java.lang.String name, java.lang.Object value, boolean showNoColor, boolean showSomeColors, boolean showMostRecentlyUsedColors, boolean showMoreColors)
name
- the identifier of this optionvalue
- the initial value of the optionpublic void addComment(java.lang.String text, int fontSize)
text
- the text of the commentfontSize
- the size of the text font usedaddCommentItem(String,int)
public void addComment(java.lang.String text)
text
- the text of the commentaddCommentItem(String)
public CommentOptionItem addCommentItem(java.lang.String text, int fontSize)
text
- the text of the commentfontSize
- the size of the text font used
public CommentOptionItem addCommentItem(java.lang.String text)
text
- the text of the comment
public void addOptionHandler(OptionHandler childHandler, java.lang.String defaultName)
public void set(java.lang.String name, java.lang.Object value)
public void set(java.lang.String section, java.lang.String name, java.lang.Object value)
public void setStringValue(java.lang.String section, java.lang.String name, java.lang.String value)
public int getInt(java.lang.String section, java.lang.String name)
section
- the name of the section where the item residesname
- the identifying name of the itempublic int getInt(java.lang.String name)
name
- the identifying name of the itempublic double getDouble(java.lang.String section, java.lang.String name)
section
- the name of the section where the item residesname
- the identifying name of the itempublic double getDouble(java.lang.String name)
name
- the identifying name of the itempublic boolean getBool(java.lang.String name)
name
- the identifying name of the itempublic boolean getBool(java.lang.String section, java.lang.String name)
section
- the name of the section where the item residesname
- the identifying name of the itempublic java.lang.String getString(java.lang.String name)
name
- the identifying name of the itempublic java.lang.String getString(java.lang.String section, java.lang.String name)
section
- the name of the section where the item residesname
- the identifying name of the itempublic int getEnum(java.lang.String name)
name
- the identifying name of the itempublic int getEnum(java.lang.String section, java.lang.String name)
section
- the name of the section where the item residesname
- the identifying name of the itempublic java.lang.Object get(java.lang.String section, java.lang.String name)
section
- the name of the section where the item residesname
- the identifying name of the itempublic java.lang.String getStringValue(java.lang.String section, java.lang.String name)
section
- the name of the section where the item residesname
- the identifying name of the itempublic OptionItem getItem(java.lang.String section, java.lang.String name)
public java.lang.Object get(java.lang.String name)
public OptionItem getItem(java.lang.String name)
public void setPreferredEditorWidth(int width)
public void clear()
public OptionSection useSection(java.lang.String name)
public OptionSection section(int index)
index
.
The first section has the index 0
.
public int sectionCount()
public OptionSection section(java.lang.String name)
public boolean showEditor()
OK_RESET_CANCEL_BUTTONS
as button mask.
public boolean showEditor(java.awt.Frame frame)
OK_RESET_CANCEL_BUTTONS
as button mask.
frame
- centers the dialog relative to this framepublic boolean showEditor(java.awt.Frame frame, byte buttonMask)
frame
- centers the dialog relative to this framebuttonMask
- the button layout and functionality for the dialog.public javax.swing.JComponent getEditor()
EditorFactory.createEditor(y.option.OptionHandler)
instead.
public void commitValues()
public boolean checkValues()
public void resetValues()
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 unregisteredpublic void write(java.io.OutputStream os)
public java.lang.String toString()
write(OutputStream)
.
toString
in class java.lang.Object
public boolean read(OptionsIOHandler ioh)
ioh
- the ioHandler to write to
public boolean read()
public void write(OptionsIOHandler ioh)
ioh
- the io handler to usepublic GuiFactory getGuiFactory()
public void setGuiFactory(GuiFactory guiFactory)
guiFactory
- new value of property guiFactory.public OptionsIOHandler getOptionsIOHandler()
public void setOptionsIOHandler(OptionsIOHandler optionsIOHandler)
optionsIOHandler
- new value of property OptionsIOHandler.public Editor addEditor(Editor editor)
editor
- the editor to be added
WeakReference
public void removeEditor(Editor editor)
editor
- the editor to be removedpublic java.util.List getEditors()
addEditor(y.option.Editor)
.
addEditor(y.option.Editor)
.public void addEditorListener(Editor.Listener el)
el
so that it will receive notifications
when an editor is added or removed.
public void removeEditorListener(Editor.Listener el)
el
so that it will no longer receive notifications
when an editor is added or removed.
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface AttributeOwner
name
- the name of the attribute being queried
public void removeAttribute(java.lang.String name)
PropertyChange
events.
removeAttribute
in interface AttributeOwner
name
- the name of the attribute being removedpublic void setAttribute(java.lang.String name, java.lang.Object value)
null
, this method will remove the attribute.
PropertyChange
events.
setAttribute
in interface AttributeOwner
name
- the name of the attribute being addedvalue
- the value of the attribute being addedpublic void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
addPropertyChangeListener
in interface PropertyChangeReporter
pcl
- the PropertyChangeListener to be addedremovePropertyChangeListener(java.beans.PropertyChangeListener)
,
addPropertyChangeListener(String,java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
removePropertyChangeListener
in interface PropertyChangeReporter
pcl
- the PropertyChangeListener to be removedaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
removePropertyChangeListener(String,java.beans.PropertyChangeListener)
public void addPropertyChangeListener(java.lang.String propertyname, java.beans.PropertyChangeListener pcl)
addPropertyChangeListener
in interface PropertyChangeReporter
propertyname
- the name of the property to receive change
notifications forpcl
- the PropertyChangeListener to be addedaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
removePropertyChangeListener(String,java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.lang.String propertyname, java.beans.PropertyChangeListener pcl)
removePropertyChangeListener
in interface PropertyChangeReporter
propertyname
- a valid property namepcl
- the PropertyChangeListener to be removedaddPropertyChangeListener(String,java.beans.PropertyChangeListener)
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |