Class TLcyActionBarItemComparator

java.lang.Object
com.luciad.lucy.gui.TLcyActionBarItemComparator
All Implemented Interfaces:
Comparator<TLcyActionBarItem>

public class TLcyActionBarItemComparator extends Object implements Comparator<TLcyActionBarItem>
Comparator that allows to sort items within a single TLcyGroupDescriptor. Those items can be ILcdActions or ILcyActiveSettables, but also Components or sub-menus. Some predefined sort methods are to sort alphabetically, or to add the most recently inserted item at the top (useful for say a recent items list). All available predefined sort strategies are defined as constants in this class (e.g. ABC), the syntax is defined in lucy.cfg (above TLcyMain.menuBar.groupPriorities).
  • Field Details

    • ABC

      public static final String ABC
      Name of the order that order items alphabetically.
      See Also:
    • ZYX

      public static final String ZYX
      Name of the order that order items inverse alphabetically.
      See Also:
    • FIXED

      public static final String FIXED
      Name of the order that puts items as configured in the configuration file.
      See Also:
    • END

      public static final String END
      Name of the order that puts new items always at the end. This is the default order.
      See Also:
    • START

      public static final String START
      Name of the order that puts new items always at the start.
      See Also:
  • Constructor Details

    • TLcyActionBarItemComparator

      public TLcyActionBarItemComparator(String[] aGroupDescriptors)
      Creates a new TLcyActionBarItemComparator that parses the group descriptor names for sort orders. The syntax is defined in lucy.cfg (above TLcyMain.menuBar.groupPriorities).
      Parameters:
      aGroupDescriptors - The names for the group descriptors, including the sort orders.
  • Method Details