org.vizzini.ui
Class ActionFactory

java.lang.Object
  extended by org.vizzini.ui.ActionFactory

public final class ActionFactory
extends Object

Provides a factory for creating standardized Swing actions for menus and tool bars.

Since:
v0.1
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
ActionFactory()
           
 
Method Summary
static JMenu createEditMenu(Object target)
          Create and return an edit menu.
static JMenu createEditMenu(Object target, boolean doFill)
          Create and return an edit menu.
static JMenu createFileMenu(Object target)
          Create and return a file menu.
static JMenu createFileMenu(Object target, boolean doFill)
          Create and return a file menu.
static JMenu createHelpMenu(Object target)
          Create and return a help menu.
static JMenu createHelpMenu(Object target, boolean doFill)
          Create and return a help menu.
static JMenu createOptionsMenu(Object target)
          Create and return an options menu.
static JMenu createViewMenu(Object target)
          Create and return a view menu.
static JMenu createViewMenu(Object target, boolean doFill)
          Create and return a view menu.
static Action getAboutAction(Object target)
          Return the about action.
static Action getAudioAction(Object target)
          Return the audio action.
static Action getCloseAction(Object target)
          Return the close action.
static Action getConcedeAction(Object target)
          Return the concede action.
static Action getCopyAction(Object target)
          Return the copy action.
static Action getCutAction(Object target)
          Return the cut action.
static Action getDeleteAction(Object target)
          Return the delete action.
static Action getEditAction(Object target)
          Return the edit action.
static Action getExportAction(Object target)
          Return the export action.
static Action getFindAction(Object target)
          Return the find action.
static Action getFindAgainAction(Object target)
          Return the find again action.
static Action getHelpAction(Object target)
          Return the help action.
static Action getNewAction(Object target)
          Return the new action.
static Action getOnlineHelpAction(Object target)
          Return the help action.
static Action getOpenAction(Object target)
          Return the open action.
static Action getPageSetupAction(Object target)
          Return the page setup action.
static Action getPasteAction(Object target)
          Return the paste action.
static Action getPreferencesAction(Object target)
          Return the preferences action.
static Action getPrintAction(Object target)
          Return the print action.
static Action getQuitAction(Object target)
          Return the quit action.
static Action getRedoAction(Object target)
          Return the redo action.
static Action getSaveAction(Object target)
          Return the save action.
static Action getSaveAsAction(Object target)
          Return the save as action.
static Action getSelectAllAction(Object target)
          Return the select all action.
static Action getShowStatusBarAction(Object target)
          Return the show status bar action.
static JCheckBoxMenuItem getShowStatusBarUI(Object target)
          Return the show status bar widget.
static Action getShowToolBarAction(Object target)
          Return the show tool bar action.
static JCheckBoxMenuItem getShowToolBarUI(Object target)
          Return the show tool bar widget.
static Action getUndoAction(Object target)
          Return the undo action.
static Action getVisibleColumnsAction(Object target)
          Return the visible columns action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionFactory

public ActionFactory()
Method Detail

createEditMenu

public static JMenu createEditMenu(Object target)
Create and return an edit menu.

Parameters:
target - Menu action target.
Since:
v0.1

createEditMenu

public static JMenu createEditMenu(Object target,
                                   boolean doFill)
Create and return an edit menu.

Parameters:
target - Menu action target.
doFill - Flag indicating whether to fill the menu with standard actions.
Since:
v0.1

createFileMenu

public static JMenu createFileMenu(Object target)
Create and return a file menu.

Parameters:
target - Menu action target.
Since:
v0.1

createFileMenu

public static JMenu createFileMenu(Object target,
                                   boolean doFill)
Create and return a file menu.

Parameters:
target - Menu action target.
doFill - Flag indicating whether to fill the menu with standard actions.
Since:
v0.1

createHelpMenu

public static JMenu createHelpMenu(Object target)
Create and return a help menu.

Parameters:
target - Menu action target.
Since:
v0.1

createHelpMenu

public static JMenu createHelpMenu(Object target,
                                   boolean doFill)
Create and return a help menu.

Parameters:
target - Menu action target.
doFill - Flag indicating whether to fill the menu with standard actions.
Since:
v0.1

createOptionsMenu

public static JMenu createOptionsMenu(Object target)
Create and return an options menu.

Parameters:
target - Menu action target.
Since:
v0.1

createViewMenu

public static JMenu createViewMenu(Object target)
Create and return a view menu.

Parameters:
target - Menu action target.
Since:
v0.1

createViewMenu

public static JMenu createViewMenu(Object target,
                                   boolean doFill)
Create and return a view menu.

Parameters:
target - Menu action target.
doFill - Flag indicating whether to fill the menu with standard actions.
Since:
v0.1

getAboutAction

public static Action getAboutAction(Object target)
Return the about action.

Since:
v0.1

getAudioAction

public static Action getAudioAction(Object target)
Return the audio action.

Since:
v0.1

getCloseAction

public static Action getCloseAction(Object target)
Return the close action.

Since:
v0.1

getConcedeAction

public static Action getConcedeAction(Object target)
Return the concede action.

Since:
v0.3

getCopyAction

public static Action getCopyAction(Object target)
Return the copy action.

Since:
v0.1

getCutAction

public static Action getCutAction(Object target)
Return the cut action.

Since:
v0.1

getDeleteAction

public static Action getDeleteAction(Object target)
Return the delete action.

Since:
v0.1

getEditAction

public static Action getEditAction(Object target)
Return the edit action.

Since:
v0.2

getExportAction

public static Action getExportAction(Object target)
Return the export action.

Since:
v0.2

getFindAction

public static Action getFindAction(Object target)
Return the find action.

Since:
v0.1

getFindAgainAction

public static Action getFindAgainAction(Object target)
Return the find again action.

Since:
v0.1

getHelpAction

public static Action getHelpAction(Object target)
Return the help action.

Since:
v0.1

getNewAction

public static Action getNewAction(Object target)
Return the new action.

Since:
v0.1

getOnlineHelpAction

public static Action getOnlineHelpAction(Object target)
Return the help action.

Since:
v0.1

getOpenAction

public static Action getOpenAction(Object target)
Return the open action.

Since:
v0.1

getPageSetupAction

public static Action getPageSetupAction(Object target)
Return the page setup action.

Since:
v0.1

getPasteAction

public static Action getPasteAction(Object target)
Return the paste action.

Since:
v0.1

getPreferencesAction

public static Action getPreferencesAction(Object target)
Return the preferences action.

Since:
v0.1

getPrintAction

public static Action getPrintAction(Object target)
Return the print action.

Since:
v0.1

getQuitAction

public static Action getQuitAction(Object target)
Return the quit action. If this is a Windows application, the actual action is named exit. In any case, the action method is quitActionPerformed( ActionEvent ).

Since:
v0.1

getRedoAction

public static Action getRedoAction(Object target)
Return the redo action.

Since:
v0.1

getSaveAction

public static Action getSaveAction(Object target)
Return the save action.

Since:
v0.1

getSaveAsAction

public static Action getSaveAsAction(Object target)
Return the save as action.

Since:
v0.1

getSelectAllAction

public static Action getSelectAllAction(Object target)
Return the select all action.

Since:
v0.1

getShowStatusBarAction

public static Action getShowStatusBarAction(Object target)
Return the show status bar action.

Since:
v0.1

getShowStatusBarUI

public static JCheckBoxMenuItem getShowStatusBarUI(Object target)
Return the show status bar widget.

Since:
v0.1

getShowToolBarAction

public static Action getShowToolBarAction(Object target)
Return the show tool bar action.

Since:
v0.1

getShowToolBarUI

public static JCheckBoxMenuItem getShowToolBarUI(Object target)
Return the show tool bar widget.

Since:
v0.1

getUndoAction

public static Action getUndoAction(Object target)
Return the undo action.

Since:
v0.1

getVisibleColumnsAction

public static Action getVisibleColumnsAction(Object target)
Return the visible columns action.

Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02