Class SetOriginAction

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

    public class SetOriginAction
    extends MenuAction
    Changes the origin.
    Version:
    1.0
    Author:
    Andreas
    See Also:
    Serialized Form
    • 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
      SetOriginAction​(Client client)
      Creates a new SetOriginAction object.
    • 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)
      Opens the SetOriginDialog, waits for user input if approved, then setOrigin of class Client is called sets the new Origin
      • 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

      • SetOriginAction

        public SetOriginAction​(Client client)
        Creates a new SetOriginAction object.
        Parameters:
        client -
    • Method Detail

      • menuActionPerformed

        public void menuActionPerformed​(java.awt.event.ActionEvent e)
        Opens the SetOriginDialog, waits for user input if approved, then setOrigin of class Client is called sets the new Origin
        Specified by:
        menuActionPerformed in class MenuAction
        Parameters:
        e -
      • getTooltipTranslated

        protected java.lang.String getTooltipTranslated()
        Description copied from class: MenuAction
        Returns a tool tip text which should depend on the current GUI locale for a menu action. May return null!
        Specified by:
        getTooltipTranslated in class MenuAction