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, isEnabled
public UICommandMetadata getMetadata(UIContext context)
getMetadata
in interface UICommand
getMetadata
in class AbstractShellCommand
context
- the UIContext
provided by the UI implementation, never nullpublic void initializeUI(UIBuilder builder) throws Exception
UICommand
InputComponent
objects to be displayed in the provided
UIBuilder
builder
- The builder on which the UI should be built upon. Never nullException
- if anything wrong happenspublic void validate(UIValidationContext validator)
UICommand
UICommand
.validate
in interface UICommand
validate
in class AbstractUICommand
public Result execute(UIExecutionContext context) throws Exception
UICommand
UICommand
should be executed.
This method should NEVER execute if UICommand.isEnabled(UIContext)
returns false and
UICommand.validate(UIValidationContext)
contains validation errorsCopyright © 2017 JBoss by Red Hat. All rights reserved.