Class QuickFindAction

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

    public class QuickFindAction
    extends MenuAction
    An action for quickly finding and selecting a game object by ID.
    Version:
    1.0
    Author:
    stm
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  QuickFindAction.QuickFindDialog
      A dialog with a text input field to input an ID.
    • 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

      Constructors 
      Constructor Description
      QuickFindAction​(Client client)
      Creates a new FindAction object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Named findEntity​(java.lang.String input)
      Tries to find a unit, a ship, or a building (in this order) with the id given as string.
      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)
      Displays the dialog and selects the entity (if found).
      • 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

      • QuickFindAction

        public QuickFindAction​(Client client)
        Creates a new FindAction object.
        Parameters:
        client -