Class 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 java.util.regex.Pattern HREF_PATTERN  
      static com.intellij.ui.SimpleTextAttributes LINK_ATTRIBUTES  
      • Fields inherited from class com.intellij.ide.util.treeView.NodeDescriptor

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getElement()  
      protected void update​(@NotNull com.intellij.ide.projectView.PresentationData presentation)  
      • Methods inherited from class com.intellij.ide.util.treeView.PresentableNodeDescriptor

        apply, apply, applyFrom, createPresentation, getChildToHighlightAt, 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, getClosedIcon, getColor, getIcon, getIndex, getOpenIcon, 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 Detail

      • HREF_PATTERN

        public static final java.util.regex.Pattern HREF_PATTERN
      • LINK_ATTRIBUTES

        public static final com.intellij.ui.SimpleTextAttributes LINK_ATTRIBUTES
    • Constructor Detail

      • LabelAndIconDescriptor

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

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

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

        public LabelAndIconDescriptor​(com.intellij.openapi.project.Project project,
                                      T element,
                                      java.util.function.Supplier<java.lang.String> label,
                                      java.util.function.Supplier<javax.swing.Icon> nodeIcon,
                                      @Nullable
                                      @Nullable com.intellij.ide.util.treeView.NodeDescriptor parentDescriptor)
    • Method Detail

      • 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>