Class WAppsAction

java.lang.Object
org.adempiere.webui.component.WAppsAction

public class WAppsAction extends Object
  Application Action.
      Creates Action with Button
      The ActionCommand is translated for display
      If translated text contains &, the next character is the Mnemonic
  
Author:
Andrew Kimball
  • Constructor Details

    • WAppsAction

      public WAppsAction(String action, String accelerator) throws IOException
      Application Action
      Parameters:
      action - base action command - used as AD_Message for Text and Icon name
      accelerator - optional keystroke for accelerator
      Throws:
      IOException
    • WAppsAction

      public WAppsAction(String action, String accelerator, String toolTipText) throws IOException
      Application Action.
      Parameters:
      action - base action command - used as AD_Message for Text and Icon name
      accelerator - optional keystroke for accelerator
      toolTipText - text, if null deferred from action
      Throws:
      IOException
  • Method Details

    • getName

      public String getName()
      Get Name/ActionCommand
      Returns:
      ActionName
    • getButton

      public Button getButton()
      Returns:
      Button
    • getCtrlKeys

      public String getCtrlKeys()
      Support for this is not implemented yet.
      Returns:
      shortcut key