Class CommandActionModel

    • Constructor Detail

      • CommandActionModel

        public CommandActionModel​(Form form,
                                  FormCommand command)
        Constructor.
        Parameters:
        form - the parent form, cannot be null
        command - the form command, cannot be null
      • CommandActionModel

        public CommandActionModel​(Form form,
                                  FormCommand command,
                                  String handler)
        Constructor.
        Parameters:
        form - the parent form, cannot be null
        command - the form command, cannot be null
        handler - the command actual action handler or null of none
    • Method Detail

      • getForm

        public Form getForm()
        Description copied from interface: com._1c.g5.v8.dt.form.internal.ui.properties.models.IFormValue
        Gets form model.
        Specified by:
        getForm in interface com._1c.g5.v8.dt.form.internal.ui.properties.models.IFormValue<String,​FormCommand>
        Returns:
        the form model.
      • getSelection

        public FormCommand getSelection()
        Description copied from interface: com._1c.g5.v8.dt.form.internal.ui.properties.models.IFormValue
        Return the selected object of form model.
        Specified by:
        getSelection in interface com._1c.g5.v8.dt.form.internal.ui.properties.models.IFormValue<String,​FormCommand>
        Returns:
        the selected object.
      • setCommandHandler

        protected void setCommandHandler​(String handlerName,
                                         FormCommand command)
        Sets a form command handler with the provided handler name.
        Parameters:
        handlerName - a handler name, cannot be null
        command - a form command to set handler, cannot be null
      • clearCommandHandler

        protected void clearCommandHandler​(FormCommand command)
        Clears a form command handler.
        Parameters:
        command - a form command to clear handler, cannot be null
      • executeCommand

        protected void executeCommand​(String commandId,
                                      Map<String,​String> commandParameters)
        Executes the provided command in the Eclipse command service with the provided command parameters.
        Parameters:
        commandId - the command identifier, cannot be null
        commandParameters - a map of command parameters, cannot be null