Class JaxoOptionsPanelListener

java.lang.Object
net.sf.jaxodraw.gui.panel.edit.JaxoOptionsPanelListener
All Implemented Interfaces:
ActionListener, ItemListener, EventListener, ChangeListener, DocumentListener, JaxoEditPanelListener

public class JaxoOptionsPanelListener extends Object implements JaxoEditPanelListener
A listener for edit panels.
Since:
2.0
  • Constructor Details

    • JaxoOptionsPanelListener

      public JaxoOptionsPanelListener(PropertyChangeListener object)
      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

      public JaxoOptionsPanelListener(PropertyChangeListener object, ChangeListener l)
      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

      public void stateChanged(ChangeEvent evt)
      Transmits the changes from an edit panel to the object.
      Specified by:
      stateChanged in interface ChangeListener
      Parameters:
      evt - The ChangeEvent to transmit.
    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      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 interface ActionListener
      Parameters:
      evt - The ActionEvent to transmit.
    • itemStateChanged

      public final void itemStateChanged(ItemEvent evt)
      Checks for ItemEvents that have ocurred on the panel, (check boxes, comboboxes and radiobuttons).
      Specified by:
      itemStateChanged in interface ItemListener
      Parameters:
      evt - The ItemEvent that has ocurred.
    • insertUpdate

      public void insertUpdate(DocumentEvent evt)
      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 interface DocumentListener
      Parameters:
      evt - The DocumentEvent that has ocurred.
    • removeUpdate

      public void removeUpdate(DocumentEvent evt)
      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 interface DocumentListener
      Parameters:
      evt - The DocumentEvent that has ocurred.
    • changedUpdate

      public void changedUpdate(DocumentEvent evt)
      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 interface DocumentListener
      Parameters:
      evt - The DocumentEvent that has ocurred.