| java.lang.Object javax.swing.AbstractAction org.netbeans.modules.visualweb.designer.jsf.action.AbstractJsfFormAction
All known Subclasses: org.netbeans.modules.visualweb.designer.jsf.action.AjaxTransactionsSupportAction, org.netbeans.modules.visualweb.designer.jsf.action.RefreshAction, org.netbeans.modules.visualweb.designer.jsf.action.VirtualFormsSupportAction,
AbstractJsfFormAction | abstract class AbstractJsfFormAction extends AbstractAction implements ContextAwareAction(Code) | | An action which operates on JsfForm context. The subclasses
need to implement the isEnabled , perfomAction
and also getDisplayName and getIconBase methods
taking the JsfForm as an argument.
If they wish to implement different than standard menu, toolbar or popup
presenter, they can just override the corresponding method
getMenuPresenter , getPopupPresenter
or getToolbarPresenter .
author: Peter Zavadsky |
Method Summary | |
final public void | actionPerformed(ActionEvent evt) This method is not used, only the context aware instance are in the game,
this instance is only a placeholder in layer (or nodes). | final public Action | createContextAwareInstance(Lookup context) Creates the context aware instance working in the specific context. | abstract protected String | getDisplayName(JsfForm jsfForm) Gets action display name based on provided beans. | abstract protected String | getIconBase(JsfForm jsfForm) Gets icon base based on provided beans, in the form "com/mycompany/myIcon.gif". | final protected static JsfForm | getJsfForm(Lookup.Result<Node> result) | protected JMenuItem | getMenuPresenter(Action contextAwareAction, Lookup.Result<Node> result) Override if you wish to change the default presenter of the context aware action. | protected JMenuItem | getPopupPresenter(Action contextAwareAction, Lookup.Result<Node> result) Override if you wish to change the default presenter of the context aware action. | protected Component | getToolbarPresenter(Action contextAwareAction, Lookup.Result<Node> result) Override if you wish to change the default presenter of the context aware action. | abstract protected boolean | isEnabled(JsfForm jsfForm) Implement in order to enable/disable the action based on provided beans. | abstract protected void | performAction(JsfForm jsfForm) Implement to perform the action based on provided beans. |
PROP_JSF_FORM | final protected static String PROP_JSF_FORM(Code) | | Name of property designBeans.
|
AbstractJsfFormAction | public AbstractJsfFormAction()(Code) | | Creates a new instance of AbstractDesignBeanAction
|
actionPerformed | final public void actionPerformed(ActionEvent evt)(Code) | | This method is not used, only the context aware instance are in the game,
this instance is only a placeholder in layer (or nodes).
|
createContextAwareInstance | final public Action createContextAwareInstance(Lookup context)(Code) | | Creates the context aware instance working in the specific context.
|
getDisplayName | abstract protected String getDisplayName(JsfForm jsfForm)(Code) | | Gets action display name based on provided beans.
|
getIconBase | abstract protected String getIconBase(JsfForm jsfForm)(Code) | | Gets icon base based on provided beans, in the form "com/mycompany/myIcon.gif".
See Also: org.openide.awt.Actions.connect(AbstractButtonAction) See Also: |
getJsfForm | final protected static JsfForm getJsfForm(Lookup.Result<Node> result)(Code) | | |
getMenuPresenter | protected JMenuItem getMenuPresenter(Action contextAwareAction, Lookup.Result<Node> result)(Code) | | Override if you wish to change the default presenter of the context aware action.
|
getPopupPresenter | protected JMenuItem getPopupPresenter(Action contextAwareAction, Lookup.Result<Node> result)(Code) | | Override if you wish to change the default presenter of the context aware action.
|
getToolbarPresenter | protected Component getToolbarPresenter(Action contextAwareAction, Lookup.Result<Node> result)(Code) | | Override if you wish to change the default presenter of the context aware action.
|
isEnabled | abstract protected boolean isEnabled(JsfForm jsfForm)(Code) | | Implement in order to enable/disable the action based on provided beans.
|
performAction | abstract protected void performAction(JsfForm jsfForm)(Code) | | Implement to perform the action based on provided beans.
|
|
|