public class RunCommand extends AbstractShellCommand
| Constructor and Description |
|---|
RunCommand() |
| Modifier and Type | Method and Description |
|---|---|
Result |
execute(UIExecutionContext context)
Called when the
UICommand should be executed. |
UICommandMetadata |
getMetadata(UIContext context) |
void |
initializeUI(UIBuilder builder)
Called before rendering the UI.
|
void |
validate(UIValidationContext validator)
Validate the current
UICommand. |
isEnabled, isEnabledpublic UICommandMetadata getMetadata(UIContext context)
getMetadata in interface UICommandgetMetadata in class AbstractShellCommandcontext - the UIContext provided by the UI implementation, never nullpublic void initializeUI(UIBuilder builder) throws Exception
UICommandInputComponent objects to be displayed in the provided
UIBuilderbuilder - The builder on which the UI should be built upon. Never nullException - if anything wrong happenspublic void validate(UIValidationContext validator)
UICommandUICommand.validate in interface UICommandvalidate in class AbstractUICommandpublic Result execute(UIExecutionContext context) throws Exception
UICommandUICommand should be executed.
This method should NEVER execute if UICommand.isEnabled(UIContext) returns false and
UICommand.validate(UIValidationContext) contains validation errorsCopyright © 2016 JBoss by Red Hat. All rights reserved.