public final class ValidateHandler extends Object
This class adapts instances of IAction to IHandler.
| Constructor and Description |
|---|
ValidateHandler()
Creates a new instance of this class given an instance of
IAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandlerListener(IHandlerListener handlerListener) |
void |
dispose()
Removes the property change listener from the action.
|
Object |
execute(ExecutionEvent event) |
IAction |
getAction()
Returns the action associated with this handler
|
boolean |
isEnabled() |
boolean |
isHandled() |
void |
removeHandlerListener(IHandlerListener handlerListener) |
void |
setEnabled(Object evaluationContext)
Called by the framework to allow the handler to update its enabled state
by extracting the same information available at execution time.
|
String |
toString() |
public ValidateHandler()
IAction.public final void addHandlerListener(IHandlerListener handlerListener)
public final void dispose()
IHandlerpublic Object execute(ExecutionEvent event) throws ExecutionException
ExecutionExceptionpublic final IAction getAction()
public final boolean isEnabled()
public final boolean isHandled()
public final void removeHandlerListener(IHandlerListener handlerListener)
public void setEnabled(Object evaluationContext)
evaluationContext - the application context. May be nullsetBaseEnabled(boolean)Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.