Package esmska.gui

Class Actions


  • public class Actions
    extends java.lang.Object
    Class containing common actions used in GUIs
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Actions.SuggestGatewayAction
      Select suggested gateway in the combobox
    • Constructor Summary

      Constructors 
      Constructor Description
      Actions()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.Action getAboutAction()
      Show about frame
      static javax.swing.Action getBrowseAction​(java.lang.String url)
      Browse specific URL with a web browser
      static javax.swing.Action getConfigAction()
      Show config frame
      static javax.swing.Action getExportAction()
      Export contacts for other programs
      static javax.swing.Action getHistoryAction()
      Show the history frame
      static javax.swing.Action getImportAction()
      Import contacts from other programs/formats
      static javax.swing.Action getLogAction()
      Show the log frame
      static javax.swing.Action getQueuePauseAction​(boolean showName)
      Pause/unpause the sms queue
      static javax.swing.Action getQuitAction()
      Quit the program
      static javax.swing.Action getSuggestGatewayAction​(GatewayComboBox gatewayComboBox, javax.swing.text.JTextComponent numberComponent)
      Get action to automatically select best suitable gateway in this list according to number filled in specified text component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Actions

        public Actions()
    • Method Detail

      • getAboutAction

        public static javax.swing.Action getAboutAction()
        Show about frame
      • getConfigAction

        public static javax.swing.Action getConfigAction()
        Show config frame
      • getQuitAction

        public static javax.swing.Action getQuitAction()
        Quit the program
      • getHistoryAction

        public static javax.swing.Action getHistoryAction()
        Show the history frame
      • getImportAction

        public static javax.swing.Action getImportAction()
        Import contacts from other programs/formats
      • getExportAction

        public static javax.swing.Action getExportAction()
        Export contacts for other programs
      • getLogAction

        public static javax.swing.Action getLogAction()
        Show the log frame
      • getQueuePauseAction

        public static javax.swing.Action getQueuePauseAction​(boolean showName)
        Pause/unpause the sms queue
        Parameters:
        showName - show name of the action (in button text etc)
      • getSuggestGatewayAction

        public static javax.swing.Action getSuggestGatewayAction​(GatewayComboBox gatewayComboBox,
                                                                 javax.swing.text.JTextComponent numberComponent)
        Get action to automatically select best suitable gateway in this list according to number filled in specified text component.
        Parameters:
        gatewayComboBox - Gateway combobox which to adjust to suggested gateway
        numberComponent - Text component containing phone number
        Returns:
        action to automatically select best suitable gateway in this list according to number filled in specified text component
      • getBrowseAction

        public static javax.swing.Action getBrowseAction​(java.lang.String url)
        Browse specific URL with a web browser