Class SimpleAction

    • Field Detail

      • name

        protected String name
        The name of this action.
      • description

        protected String description
        The short description of this action.
      • icon

        protected Icon icon
        The icon for this action.
    • Constructor Detail

      • SimpleAction

        public SimpleAction()
        Create a default SimpleAction that provides only null values
      • SimpleAction

        public SimpleAction(String name,
                            String description)
        Create a SimpleAction that provides name and description
        Parameters:
        name - the name of the action.
        description - the short description of the action.
    • Method Detail

      • setName

        protected void setName(String name)
        Set the name of this action.
        Parameters:
        name - the new name.
      • setDescription

        protected void setDescription(String description)
        Set the description of this action.
        Parameters:
        description - the new description.
      • setIcon

        protected void setIcon(Icon icon)
        Set this action's icon.
        Parameters:
        filename - the icon to use.