com.japisoft.framework.dockable.action
Class CommonActionManager

java.lang.Object
  |
  +--com.japisoft.framework.dockable.action.CommonActionManager

public final class CommonActionManager
extends java.lang.Object

Here the action model for the common dockable panel actions. This model contains a set of java.swing.Action compatible classes implementing too the DockableAction interface.

Author:
(c) 2003 JAPISOFT

Constructor Summary
CommonActionManager()
           
 
Method Summary
static void addCommonAction(java.lang.Class a)
          Add a common action by its class
static javax.swing.Action buildCommonActionAt(int index, BasicInnerWindow panel)
           
static void fillModelWithCommonActions(BasicInnerWindow panel, ActionModel am)
          Update the model with the following common actions
static void fillWindowTitleBar(DockableFrameTitleBar titleBar, ActionModel am)
          Fill the inner window header with buttons from the following action model
static java.lang.Class getCommonActionAt(int index)
           
static int getCommonActionCount()
           
static void removeCommonAction(java.lang.Class a)
          Remove an action by its class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonActionManager

public CommonActionManager()
Method Detail

addCommonAction

public static void addCommonAction(java.lang.Class a)
Add a common action by its class


removeCommonAction

public static void removeCommonAction(java.lang.Class a)
Remove an action by its class


getCommonActionCount

public static int getCommonActionCount()
Returns:
the available action count

getCommonActionAt

public static java.lang.Class getCommonActionAt(int index)
Returns:
a common action class for this index starting from 0

buildCommonActionAt

public static javax.swing.Action buildCommonActionAt(int index,
                                                     BasicInnerWindow panel)
Returns:
a new instance of the Action for this index starting from 0 working for this panel

fillModelWithCommonActions

public static void fillModelWithCommonActions(BasicInnerWindow panel,
                                              ActionModel am)
Update the model with the following common actions


fillWindowTitleBar

public static void fillWindowTitleBar(DockableFrameTitleBar titleBar,
                                      ActionModel am)
Fill the inner window header with buttons from the following action model