Class TLcyActionBarItem

java.lang.Object
com.luciad.lucy.gui.TLcyActionBarItem

public class TLcyActionBarItem extends Object

Represents an action, active settable, component or sub-menu in an ILcyActionBar (e.g. a menu bar), depending on which of the four constructors is used. Every property that isn't specified for a specific constructor returns null.

See Also:
  • Constructor Details

  • Method Details

    • getText

      public String getText()
      Utility method that returns the NAME property from the action (if not null), or from the active settable (if not null) or the last menu name (if not null). If these are all unavailable, null is returned.
      Returns:
      The textual representation of this TLcyActionBarItem, if any. Null otherwise.
    • isMenu

      public boolean isMenu()
      Utility method to find out if this descriptor represents a (sub)menu (so not an action, not an active settable and not a component).
      Returns:
      true if this descriptor represents a (sub)menu, false otherwise.
    • getAction

      public ILcdAction getAction()
      Returns the ILcdAction. See constructors and class comment for more information.
      Returns:
      the ILcdAction.
    • getActiveSettable

      public ILcyActiveSettable getActiveSettable()
      Returns the ILcyActiveSettable. See constructors and class comment for more information.
      Returns:
      the ILcyActiveSettable.
    • isDeactivatePossible

      public boolean isDeactivatePossible()
      Returns the deactivatePossible property. See constructors and class comment for more information.
      Returns:
      the deactivatePossible property.
    • getGroupDescriptor

      public TLcyGroupDescriptor getGroupDescriptor()
      Returns the TLcyGroupDescriptor. See constructors and class comment for more information.
      Returns:
      the TLcyGroupDescriptor.
    • getComponent

      public Component getComponent()
      Returns the Component. See constructors and class comment for more information.
      Returns:
      the Component.
    • getMenus

      public String[] getMenus()
      Returns the menus. See constructors and class comment for more information.
      Returns:
      the menus.
    • getMenuGroupDescriptors

      public TLcyGroupDescriptor[] getMenuGroupDescriptors()
      Returns the menu group descriptors. See constructors and class comment for more information.
      Returns:
      the menu group descriptors.
    • getInsertTime

      public long getInsertTime()
      Returns the insertion time. The insertion time is not related to wall-clock time, but represents the order in which actions, active settables, components or sub-menus were added. The later they were added, the bigger this value. It can be used to automatically order items based on their insertion time, to for example keep the most recently added item in a recent items list at the top.
      Returns:
      the insertion time.