Class MenuPrototype

    • Constructor Detail

      • MenuPrototype

        public MenuPrototype()
        Default constructor.
      • MenuPrototype

        public MenuPrototype​(java.lang.String label)
        Label constructor.
        Parameters:
        label - The text of the label, or null if there should be no label.
      • MenuPrototype

        public MenuPrototype​(java.lang.String label,
                             java.net.URI icon)
        Label and icon constructor.
        Parameters:
        label - The text of the label, or null if there should be no label.
        icon - The icon URI, which may be a resource URI, or null if there is no icon URI.
    • Method Detail

      • action

        protected void action​(int force,
                              int option)
        Description copied from class: AbstractActionPrototype
        Performs whatever is necessary. This method is guaranteed to be called before any action event is fired to any listeners.
        Specified by:
        action in class AbstractActionPrototype
        Parameters:
        force - The zero-based force, such as 0 for no force or 1 for an action initiated by from a mouse single click.
        option - The zero-based option, such as 0 for an event initiated by a mouse left button click or 1 for an event initiaged by a mouse right button click.