Class AbstractItem.IdeLabeller

  • Enclosing class:
    AbstractItem<R extends Model,​O,​P extends Model,​PE extends java.lang.Enum<PE>,​M extends Model,​E extends java.lang.Enum<E>>

    public class AbstractItem.IdeLabeller
    extends java.lang.Object
    Labels the configuration item.
    • Constructor Summary

      Constructors 
      Constructor Description
      IdeLabeller​(java.util.function.Function<M,​java.lang.String> labeller, E... labelChangeEvents)
      Instantiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLabel​(M model)
      Obtains the label from the Model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdeLabeller

        @SafeVarargs
        public IdeLabeller​(java.util.function.Function<M,​java.lang.String> labeller,
                           E... labelChangeEvents)
        Instantiate.
        Parameters:
        labeller - Function to extract the label from the Model.
        labelChangeEvents - Label change events.
    • Method Detail

      • getLabel

        public java.lang.String getLabel​(M model)
        Obtains the label from the Model.
        Parameters:
        model - Model.
        Returns:
        Label for the Model.