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 TypeMethodDescriptionvoidTransmits the changes from an edit panel to the object.voidChecks for DocumentEvents that have ocurred on the panel, (used for text fields).voidChecks for DocumentEvents that have ocurred on the panel, (used for text fields).final voidChecks for ItemEvents that have ocurred on the panel, (check boxes, comboboxes and radiobuttons).voidChecks for DocumentEvents that have ocurred on the panel, (used for text fields).voidstateChanged(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:
stateChangedin 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:
actionPerformedin interfaceActionListener- Parameters:
evt- The ActionEvent to transmit.
-
itemStateChanged
Checks for ItemEvents that have ocurred on the panel, (check boxes, comboboxes and radiobuttons).- Specified by:
itemStateChangedin 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:
insertUpdatein 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:
removeUpdatein 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:
changedUpdatein interfaceDocumentListener- Parameters:
evt- The DocumentEvent that has ocurred.
-