| java.lang.Object javax.swing.AbstractAction org.netbeans.modules.visualweb.spi.designtime.idebridge.action.AbstractDesignBeanAction
All known Subclasses: org.netbeans.modules.visualweb.insync.action.AbstractDisplayActionAction, org.netbeans.modules.visualweb.designer.jsf.action.SelectParentAction, org.netbeans.modules.visualweb.insync.action.EditEventHandlerAction, org.netbeans.modules.visualweb.insync.action.ViewPageNavigationAction, org.netbeans.modules.visualweb.insync.action.ViewJspSourceAction, org.netbeans.modules.visualweb.insync.action.InitialFocusAction, org.netbeans.modules.visualweb.designer.jsf.action.InlineEditAction, org.netbeans.modules.visualweb.insync.action.BrowserPreviewAction, org.netbeans.modules.visualweb.insync.action.ViewJavaSourceAction, org.netbeans.modules.visualweb.designer.jsf.action.AlignAction,
AbstractDesignBeanAction | abstract public class AbstractDesignBeanAction extends AbstractAction implements ContextAwareAction(Code) | | An action which operates on DesignBean context. The subclasses
need to implement the isEnabled , perfomAction
and also getDisplayName and getIconBase methods
taking the DesignBean array 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. | final protected static DesignBean[] | getDesignBeans(Lookup.Result result) | abstract protected String | getDisplayName(DesignBean[] designBeans) Gets action display name based on provided beans. | abstract protected String | getIconBase(DesignBean[] designBeans) Gets icon base based on provided beans, in the form "com/mycompany/myIcon.gif". | protected JMenuItem | getMenuPresenter(Action contextAwareAction, Lookup.Result result) Override if you wish to change the default presenter of the context aware action. | protected JMenuItem | getPopupPresenter(Action contextAwareAction, Lookup.Result result) Override if you wish to change the default presenter of the context aware action. | protected Component | getToolbarPresenter(Action contextAwareAction, Lookup.Result result) Override if you wish to change the default presenter of the context aware action. | abstract protected boolean | isEnabled(DesignBean[] designBeans) Implement in order to enable/disable the action based on provided beans. | abstract protected void | performAction(DesignBean[] designBeans) Implement to perform the action based on provided beans. |
PROP_DESIGN_BEANS | final protected static String PROP_DESIGN_BEANS(Code) | | Name of property designBeans.
|
AbstractDesignBeanAction | public AbstractDesignBeanAction()(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.
|
getDesignBeans | final protected static DesignBean[] getDesignBeans(Lookup.Result result)(Code) | | |
getDisplayName | abstract protected String getDisplayName(DesignBean[] designBeans)(Code) | | Gets action display name based on provided beans.
|
getIconBase | abstract protected String getIconBase(DesignBean[] designBeans)(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: |
getMenuPresenter | protected JMenuItem getMenuPresenter(Action contextAwareAction, Lookup.Result result)(Code) | | Override if you wish to change the default presenter of the context aware action.
|
getPopupPresenter | protected JMenuItem getPopupPresenter(Action contextAwareAction, Lookup.Result result)(Code) | | Override if you wish to change the default presenter of the context aware action.
|
getToolbarPresenter | protected Component getToolbarPresenter(Action contextAwareAction, Lookup.Result result)(Code) | | Override if you wish to change the default presenter of the context aware action.
|
isEnabled | abstract protected boolean isEnabled(DesignBean[] designBeans)(Code) | | Implement in order to enable/disable the action based on provided beans.
|
performAction | abstract protected void performAction(DesignBean[] designBeans)(Code) | | Implement to perform the action based on provided beans.
|
|
|