All Implemented Interfaces:
ChangeAware, ContentModel, PropertyChangeAware

public class Command extends BaseCommand<CommandMenuContentModel>
Encapsulates metadata for a single command. Use a new instance of Command.Builder to configure a new command, and Command.Builder.build() to build a command.

A command can be projected to screen (creating a visual representation of that command) using CommandButtonPresentationModel and CommandButtonProjection. Use project() for default presentation settings or project(CommandButtonPresentationModel) to customize presentation settings. Then use BaseProjection.buildComponent() to get an instance of JCommandButton that can be added to the component hierarchy. Note that you can - and should - use the same Command instance and one or more CommandButtonPresentationModels if you need to have multiple instances (or projections) of the same command in your app UI. That way, changes in the command are propagated and synced across all those projections.

See Also: