esmska.gui
Class Actions

java.lang.Object
  extended by esmska.gui.Actions

public class Actions
extends java.lang.Object

Class containing common actions used in GUIs


Nested Class Summary
static class Actions.SuggestGatewayAction
          Select suggested gateway in the combobox
 
Constructor Summary
Actions()
           
 
Method Summary
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