Class ChangeFactionConfirmationAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    public class ChangeFactionConfirmationAction
    extends MenuAction
    DOCUMENT ME!
    Author:
    Ilja Pavkovic
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int INVERTCONFIRMATION
      DOCUMENT-ME
      static int REMOVECONFIRMATION
      DOCUMENT-ME
      static int SETCONFIRMATION
      DOCUMENT-ME
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getAcceleratorTranslated()
      Returns an accelerator key combination which should depend on the current GUI locale for a menu action.
      protected java.lang.String getMnemonicTranslated()  
      protected java.lang.String getNameTranslated()
      Returns an name which should depend on the current GUI locale for a menu action.
      protected java.lang.String getTooltipTranslated()
      Returns a tool tip text which should depend on the current GUI locale for a menu action.
      void menuActionPerformed​(java.awt.event.ActionEvent e)
      DOCUMENT-ME
      • 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, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Constructor Detail

      • ChangeFactionConfirmationAction

        public ChangeFactionConfirmationAction​(Client client,
                                               Faction f,
                                               int conf,
                                               boolean r,
                                               boolean spy)
        Creates a new ChangeFactionConfirmationAction object. conf is currently one of SETCONFIRMATION, REMOVECONFIRMATION, INVERTCONFIRMATION.
        Parameters:
        client -
        f - The faction for this action. null means all factions.
        conf - The type of action
        r - If true, only selected regions shall be affected.
        spy - If true, only spies will be affected.
        Throws:
        java.lang.IllegalArgumentException - DOCUMENT-ME