| 
 | org.netbeans.api.debugger/1 1.7.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.spi.debugger.ActionsProvider
org.netbeans.spi.debugger.ActionsProviderSupport
public abstract class ActionsProviderSupport
Support for ActionsProvider implementation. You should implement
 doAction(java.lang.Object) and ActionsProvider.getActions() only, and call setEnabled(java.lang.Object, boolean)
 when the action state is changed.
| Constructor Summary | |
|---|---|
| ActionsProviderSupport() | |
| Method Summary | |
|---|---|
|  void | addActionsProviderListener(ActionsProviderListener l)Adds property change listener. | 
| abstract  void | doAction(Object action)Called when the action is called (action button is pressed). | 
| protected  void | fireActionStateChanged(Object action,
                       boolean enabled)Fires a change of action state. | 
|  boolean | isEnabled(Object action)Returns a state of given action defined by setEnabled(java.lang.Object, boolean)method call. | 
|  void | removeActionsProviderListener(ActionsProviderListener l)Removes property change listener. | 
| protected  void | setEnabled(Object action,
           boolean enabled)Sets state of enabled property. | 
| Methods inherited from class org.netbeans.spi.debugger.ActionsProvider | 
|---|
| getActions, postAction | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ActionsProviderSupport()
| Method Detail | 
|---|
public abstract void doAction(Object action)
doAction in class ActionsProvideraction - an action which has been calledpublic boolean isEnabled(Object action)
setEnabled(java.lang.Object, boolean) 
 method call.
 Do not override. Should be final - the enabled state is cached,
 therefore this method is not consulted unless the state change
 is fired.
isEnabled in class ActionsProvideraction - actionprotected final void setEnabled(Object action, boolean enabled)
action - action whose state should be changedenabled - the new stateprotected void fireActionStateChanged(Object action, boolean enabled)
action - action whose state has been changedenabled - the new statepublic final void addActionsProviderListener(ActionsProviderListener l)
addActionsProviderListener in class ActionsProviderl - new listener.public final void removeActionsProviderListener(ActionsProviderListener l)
removeActionsProviderListener in class ActionsProviderl - removed listener.| 
 | org.netbeans.api.debugger/1 1.7.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||