Class LabelAndIconDescriptor<T>

java.lang.Object
com.intellij.ide.util.treeView.NodeDescriptor<E>
com.intellij.ide.util.treeView.PresentableNodeDescriptor<T>
com.redhat.devtools.intellij.common.tree.LabelAndIconDescriptor<T>

public class LabelAndIconDescriptor<T> extends com.intellij.ide.util.treeView.PresentableNodeDescriptor<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.intellij.ide.util.treeView.PresentableNodeDescriptor

    com.intellij.ide.util.treeView.PresentableNodeDescriptor.ColoredFragment

    Nested classes/interfaces inherited from class com.intellij.ide.util.treeView.NodeDescriptor

    com.intellij.ide.util.treeView.NodeDescriptor.NodeComparator<T extends com.intellij.ide.util.treeView.NodeDescriptor<?>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Pattern
     
    static final com.intellij.ui.SimpleTextAttributes
     

    Fields inherited from class com.intellij.ide.util.treeView.NodeDescriptor

    DEFAULT_WEIGHT, EMPTY_ARRAY, myClosedIcon, myColor, myName, myProject
  • Constructor Summary

    Constructors
    Constructor
    Description
    LabelAndIconDescriptor(com.intellij.openapi.project.Project project, T element, String label, String location, Icon nodeIcon, @Nullable com.intellij.ide.util.treeView.NodeDescriptor parentDescriptor)
     
    LabelAndIconDescriptor(com.intellij.openapi.project.Project project, T element, String label, Icon nodeIcon, @Nullable com.intellij.ide.util.treeView.NodeDescriptor parentDescriptor)
     
    LabelAndIconDescriptor(com.intellij.openapi.project.Project project, T element, Supplier<String> label, Supplier<String> location, Supplier<Icon> nodeIcon, @Nullable com.intellij.ide.util.treeView.NodeDescriptor parentDescriptor)
     
    LabelAndIconDescriptor(com.intellij.openapi.project.Project project, T element, Supplier<String> label, Supplier<Icon> nodeIcon, @Nullable com.intellij.ide.util.treeView.NodeDescriptor parentDescriptor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected void
    update(@NotNull com.intellij.ide.projectView.PresentationData presentation)
     

    Methods inherited from class com.intellij.ide.util.treeView.PresentableNodeDescriptor

    apply, apply, applyFrom, computeBackgroundColor, createPresentation, getChildToHighlightAt, getColoredTextAsPlainText, getHighlightColor, getName, getPresentation, getTemplatePresentation, isAncestorOrSelf, isContentHighlighted, isHighlightableContentNode, isParentOf, postprocess, shouldApply, shouldPostprocess, shouldUpdateData, update

    Methods inherited from class com.intellij.ide.util.treeView.NodeDescriptor

    expandOnDoubleClick, getChildrenSortingStamp, getColor, getIcon, getIndex, getParentDescriptor, getProject, getUpdateCount, getWeight, isWasDeclaredAlwaysLeaf, setChildrenSortingStamp, setIcon, setIndex, setUpdateCount, setWasDeclaredAlwaysLeaf, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • HREF_PATTERN

      public static final Pattern HREF_PATTERN
  • Constructor Details

    • LabelAndIconDescriptor

      public LabelAndIconDescriptor(com.intellij.openapi.project.Project project, T element, String label, String location, Icon nodeIcon, @Nullable @Nullable com.intellij.ide.util.treeView.NodeDescriptor parentDescriptor)
    • LabelAndIconDescriptor

      public LabelAndIconDescriptor(com.intellij.openapi.project.Project project, T element, String label, Icon nodeIcon, @Nullable @Nullable com.intellij.ide.util.treeView.NodeDescriptor parentDescriptor)
    • LabelAndIconDescriptor

      public LabelAndIconDescriptor(com.intellij.openapi.project.Project project, T element, Supplier<String> label, Supplier<String> location, Supplier<Icon> nodeIcon, @Nullable @Nullable com.intellij.ide.util.treeView.NodeDescriptor parentDescriptor)
    • LabelAndIconDescriptor

      public LabelAndIconDescriptor(com.intellij.openapi.project.Project project, T element, Supplier<String> label, Supplier<Icon> nodeIcon, @Nullable @Nullable com.intellij.ide.util.treeView.NodeDescriptor parentDescriptor)
  • Method Details

    • update

      protected void update(@NotNull @NotNull com.intellij.ide.projectView.PresentationData presentation)
      Specified by:
      update in class com.intellij.ide.util.treeView.PresentableNodeDescriptor<T>
    • getElement

      public T getElement()
      Specified by:
      getElement in class com.intellij.ide.util.treeView.NodeDescriptor<T>