Class CommandContainer

    • Constructor Detail

      • CommandContainer

        public CommandContainer​(IFeatureProvider featureProvider)
        Instantiates a new command container.
        Parameters:
        featureProvider - the feature provider
    • Method Detail

      • canExecute

        public boolean canExecute()
        Description copied from interface: ICommand
        Can execute.
        Specified by:
        canExecute in interface ICommand
        Returns:
        true, if successful
      • execute

        public boolean execute()
        Description copied from interface: ICommand
        Execute.
        Specified by:
        execute in interface ICommand
        Returns:
        true, if successful
      • canUndo

        public boolean canUndo()
        Description copied from interface: ICommand
        Can undo.
        Specified by:
        canUndo in interface ICommand
        Returns:
        true, if successful
      • undo

        public boolean undo()
        Description copied from interface: ICommand
        Undo.
        Specified by:
        undo in interface ICommand
        Returns:
        true, if successful
      • add

        public void add​(ICommand command)
        Adds the.
        Parameters:
        command - the command
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: IDescription
        Gets the description.
        Specified by:
        getDescription in interface IDescription
        Returns:
        the description
      • containsCommands

        public boolean containsCommands()
        Contains commands.
        Returns:
        true, if successful
      • getCommands

        public ICommand[] getCommands()
        Gets the commands.
        Returns:
        the commands