Package net.sf.jaxodraw.gui.panel.edit
Class JaxoOptionsPanelListener
java.lang.Object
net.sf.jaxodraw.gui.panel.edit.JaxoOptionsPanelListener
- All Implemented Interfaces:
ActionListener
,ItemListener
,EventListener
,ChangeListener
,DocumentListener
,JaxoEditPanelListener
A listener for edit panels.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor: sets the object that gets changed by actions on the edit panel.Constructor: sets the object that gets changed by actions on the edit panel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Transmits the changes from an edit panel to the object.void
Checks for DocumentEvents that have ocurred on the panel, (used for text fields).void
Checks for DocumentEvents that have ocurred on the panel, (used for text fields).final void
Checks for ItemEvents that have ocurred on the panel, (check boxes, comboboxes and radiobuttons).void
Checks for DocumentEvents that have ocurred on the panel, (used for text fields).void
stateChanged
(ChangeEvent evt) Transmits the changes from an edit panel to the object.
-
Constructor Details
-
JaxoOptionsPanelListener
Constructor: sets the object that gets changed by actions on the edit panel.- Parameters:
object
- The object to receive ChangeEvents from the edit panel.
-
JaxoOptionsPanelListener
Constructor: sets the object that gets changed by actions on the edit panel.- Parameters:
object
- The object to receive ChangeEvents from the edit panel.l
- ChangeListener to notify after each change to 'object'. May be null.
-
-
Method Details
-
stateChanged
Transmits the changes from an edit panel to the object.- Specified by:
stateChanged
in interfaceChangeListener
- Parameters:
evt
- The ChangeEvent to transmit.
-
actionPerformed
Transmits the changes from an edit panel to the object. Currently only used for the color buttons to bring up the color chooser panel.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
evt
- The ActionEvent to transmit.
-
itemStateChanged
Checks for ItemEvents that have ocurred on the panel, (check boxes, comboboxes and radiobuttons).- Specified by:
itemStateChanged
in interfaceItemListener
- Parameters:
evt
- The ItemEvent that has ocurred.
-
insertUpdate
Checks for DocumentEvents that have ocurred on the panel, (used for text fields). This method is called after an insert into the document.- Specified by:
insertUpdate
in interfaceDocumentListener
- Parameters:
evt
- The DocumentEvent that has ocurred.
-
removeUpdate
Checks for DocumentEvents that have ocurred on the panel, (used for text fields). This method is called after a removal from the document.- Specified by:
removeUpdate
in interfaceDocumentListener
- Parameters:
evt
- The DocumentEvent that has ocurred.
-
changedUpdate
Checks for DocumentEvents that have ocurred on the panel, (used for text fields). This method is called after one or more attributes have changed. This method is not called when characters are inserted with attributes.- Specified by:
changedUpdate
in interfaceDocumentListener
- Parameters:
evt
- The DocumentEvent that has ocurred.
-