org.openstreetmap.josm.gui.dialogs.relation
Class GenericRelationEditor.SetRoleAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor.SetRoleAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, javax.swing.event.DocumentListener, javax.swing.event.ListSelectionListener
Enclosing class:
GenericRelationEditor

 class GenericRelationEditor.SetRoleAction
extends javax.swing.AbstractAction
implements javax.swing.event.ListSelectionListener, javax.swing.event.DocumentListener


Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
GenericRelationEditor.SetRoleAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
protected  boolean confirmSettingEmptyRole(int onNumMembers)
           
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
protected  boolean isEmptyRole()
           
protected  void refreshEnabled()
           
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericRelationEditor.SetRoleAction

public GenericRelationEditor.SetRoleAction()
Method Detail

refreshEnabled

protected void refreshEnabled()

isEmptyRole

protected boolean isEmptyRole()

confirmSettingEmptyRole

protected boolean confirmSettingEmptyRole(int onNumMembers)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener


JOSM