Package com.axelor.ui

Class QuickMenuItem


  • public class QuickMenuItem
    extends Object
    An item in the quick menu dropdown
    • Constructor Detail

      • QuickMenuItem

        public QuickMenuItem()
        Create a new instance of the QuickMenuItem
      • QuickMenuItem

        public QuickMenuItem​(String title,
                             String action,
                             Context context,
                             boolean selected)
        Create a new instance of the QuickMenuItem
        Parameters:
        title - title
        action - action
        context - context
        selected - selected state
      • QuickMenuItem

        public QuickMenuItem​(String title,
                             String action,
                             Context context)
        Create a new instance of the QuickMenuItem
        Parameters:
        title - title
        action - action
        context - context
      • QuickMenuItem

        public QuickMenuItem​(String title,
                             String action)
        Create a new instance of the QuickMenuItem
        Parameters:
        title - title
        action - action
    • Method Detail

      • getTitle

        public String getTitle()
        Title of the item
        Returns:
        item title
      • setTitle

        public void setTitle​(String title)
        Set the title of the item
        Parameters:
        title - title
      • getAction

        public String getAction()
        Name of action triggered when item is selected
        Returns:
        action
      • setAction

        public void setAction​(String action)
        Set the action triggered when item is selected
        Parameters:
        action - action
      • getContext

        public Context getContext()
        Context to pass to the action
        Returns:
        action context
      • setContext

        public void setContext​(Context context)
        Set the context to pass to the action
        Parameters:
        context - context
      • getModel

        public Class<?> getModel()
        Model of the context
        Returns:
        context model
      • isSelected

        public boolean isSelected()
        Selected state of the item
        Returns:
        selected state
      • setSelected

        public void setSelected​(boolean selected)
        Set the selected state of the item
        Parameters:
        selected - true or false