Class LocalizedListItem

java.lang.Object
org.jppf.ui.monitoring.LocalizedListItem
All Implemented Interfaces:
Tooltipped

public class LocalizedListItem extends Object implements Tooltipped
Instances of this class are the items displayed in the pick list.
Author:
Laurent Cohen
  • Constructor Details

    • LocalizedListItem

      public LocalizedListItem(String name, int index, String base, Locale locale)
      Initialize this item.
      Parameters:
      name - the non-localized name of this item.
      index - unique index for this item.
      base - base name for localization bundle lookups.
      locale - the locale to localize in.
    • LocalizedListItem

      public LocalizedListItem(String name, int index, String label, String tooltip)
      Initialize this item.
      Parameters:
      name - the non-localized name of this item.
      index - unique index for this item.
      label - a displayable short label describing the field.
      tooltip - a tooltip associated with the field.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getIndex

      public int getIndex()
      Returns:
      the unique index for this item.
    • getName

      public String getName()
      Returns:
      the non-localized name of this item.
    • getLabel

      public String getLabel()
      Returns:
      the localized name of this item.
    • getTooltip

      public String getTooltip()
      Specified by:
      getTooltip in interface Tooltipped
      Returns:
      the localized tooltip of this item.