Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
MatrixMenus Class Reference
Inheritance diagram for MatrixMenus:

Data Structures

class  ImageLoader
 

Static Public Member Functions

static JPopupMenu getPopupScreenMenu (MatrixTreeNode node)
 
static JPopupMenu getPopupScreenMenu (MatrixTreeNode node, ActionListener listener)
 
static JMenu getScreenMenu (MatrixTreeNode node)
 
static JMenu getScreenMenu (MatrixTreeNode node, ActionListener listener)
 
static ActionListener getDefaultScreenMenuListener (final MatrixTreeNode node)
 
static JPopupMenu getUseMeMenu (final MatrixTreeNode node)
 
static ActionListener getMatrixTreeAddMenuListener (final MatrixTree tree)
 
static JPopupMenu getPopupAddMenu (ActionListener listener)
 
static JMenu getAddMenu (ActionListener listener)
 
static String getTypeCodeFromEvent (ActionEvent evt)
 

Static Public Attributes

static final String DEFAULT_ASSET_ICON = "default_asset.png"
 

Detailed Description

Author
Marc McIntyre mmcin.nosp@m.tyre.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Definition at line 35 of file MatrixMenus.java.

Member Function Documentation

static JMenu getAddMenu ( ActionListener  listener)
inlinestatic

Returns the add menu to add assets to the matrix system.

Parameters
listenerthe action listener used to trigger events to
Returns
the addmenu
See Also
getPopupAddMenu(ActionListener)

Definition at line 273 of file MatrixMenus.java.

static ActionListener getDefaultScreenMenuListener ( final MatrixTreeNode  node)
inlinestatic

Returns a default action listener to be used on screen menus. When a screen is pressed in the menu, The right main frame of the matrix system is targeted to display that screen.

Parameters
nodethe node to target in the matrix system
Returns
the actionlistener to target matrix screens

Definition at line 137 of file MatrixMenus.java.

static ActionListener getMatrixTreeAddMenuListener ( final MatrixTree  tree)
inlinestatic

Returns an actionListener that will start cue mode in the specified tree when the add menu this action listener is coupled with is triggered.

Parameters
treethe to initiate add mode in
Returns
the action listener

Definition at line 236 of file MatrixMenus.java.

static JPopupMenu getPopupAddMenu ( ActionListener  listener)
inlinestatic

Returns the popup add menu use to add assets to the matrix system. Use this method in favour of explicitly obtaining the popup menu by using addMenu.getPopupMenu() as this method handles loading of images for the add menu.

Parameters
listenerthe action listener used to trigger events to
Returns
the popup add menu
See Also
getAddMenu(ActionListener)

Definition at line 261 of file MatrixMenus.java.

static JPopupMenu getPopupScreenMenu ( MatrixTreeNode  node)
inlinestatic

Creates a JPopupMenu with the screens of the specfied asset as menu items. the action commands of each of the screen items will be obtained by calling screen.getCodeName() on that particular screen

Parameters
nodethe node of the wanted screen
Returns
the screen menu for the specified node
See Also
AssetTypeScreen
AssetTypeScreen::getCodeName()
getScreenMenu(MatrixTreeNode)
getScreenMenu(MatrixTreeNode, ActionListener)
getPopupScreenMenu(MatrixTreeNode, ActionListener)

Definition at line 57 of file MatrixMenus.java.

static JPopupMenu getPopupScreenMenu ( MatrixTreeNode  node,
ActionListener  listener 
)
inlinestatic

Creates a JPopupMenu with the screens of the specfied asset as menu items. the action commands of each of the screen items will be obtained by calling screen.getCodeName() on that particular screen

Parameters
nodethe node of the wanted screen
listenerthe action listener to apply to the menu
Returns
the screen menu for the specified node
See Also
AssetTypeScreen
AssetTypeScreen::getCodeName()
getScreenMenu(MatrixTreeNode)
getScreenMenu(MatrixTreeNode, ActionListener)
getPopupScreenMenu(MatrixTreeNode)
#getDefaultScreenMenuListener(MatrixTreeNode)

Definition at line 76 of file MatrixMenus.java.

static JMenu getScreenMenu ( MatrixTreeNode  node)
inlinestatic

Creates a JMenu with the screens of the specfied asset as menu items. the action commands of each of the screen items will be obtained by calling screen.getCodeName() on that particular screen.

Parameters
nodethe node of the wanted screen
Returns
the screen menu for the specified node
See Also
AssetTypeScreen
AssetTypeScreen::getCodeName()
getScreenMenu(MatrixTreeNode, ActionListener)
getPopupScreenMenu(MatrixTreeNode)
getPopupScreenMenu(MatrixTreeNode, ActionListener)

Definition at line 94 of file MatrixMenus.java.

static JMenu getScreenMenu ( MatrixTreeNode  node,
ActionListener  listener 
)
inlinestatic

Creates a JMenu with the screens of the specfied asset as menu items. the action commands of each of the screen items will be obtained by calling screen.getCodeName() on that particular screen

Parameters
nodethe node of the wanted screen
listenerthe action listener to apply to the menu
Returns
the screen menu for the specified node
See Also
AssetTypeScreen
AssetTypeScreen::getCodeName()
getScreenMenu(MatrixTreeNode)
getPopupScreenMenu(MatrixTreeNode)
getPopupScreenMenu(MatrixTreeNode, ActionListener)
#getDefaultScreenMenuListener(MatrixTreeNode)

Definition at line 113 of file MatrixMenus.java.

static String getTypeCodeFromEvent ( ActionEvent  evt)
inlinestatic

Returns the type code from that was fired from the add menu for the specified Event evt.

Returns
the type code fired from the add menu

Definition at line 441 of file MatrixMenus.java.

static JPopupMenu getUseMeMenu ( final MatrixTreeNode  node)
inlinestatic

Returns the use me menu for and adds an action listener to fire for specified node if the menu is selected.

Parameters
nodethe node to fire the event for if the menu is selected.
Returns
the use me menu

Definition at line 199 of file MatrixMenus.java.


The documentation for this class was generated from the following file: