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
      • SimpleAction

        public SimpleAction(String name,
                            String description,
                            Icon icon)
        Create a SimpleAction that provides name, description and an icon
        Parameters:
        name - the name of the action
        description - the short description of the action
        icon - the icon used in menus
      • SimpleAction

        public SimpleAction(String name,
                            String description,
                            String resourceIcon)
        Create a SimpleAction that provides name, description and an icon
        Parameters:
        name - the name of the action
        description - the short description of the action
        resourceIcon - a resource to decode the icon used in menus from
    • 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:
        icon - the icon to use
      • setIcon

        protected void setIcon(String resourceIcon)
        Set this action's icon by resource.
        Parameters:
        resourceIcon - a resource to decode the icon used in menus from