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()
IHandler
public Object execute(ExecutionEvent event) throws ExecutionException
ExecutionException
public 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 null
setBaseEnabled(boolean)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.