public abstract class NodeDescriptor<E>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NodeDescriptor.NodeComparator<T extends NodeDescriptor<?>> |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_WEIGHT |
static NodeDescriptor<?>[] |
EMPTY_ARRAY |
protected javax.swing.Icon |
myClosedIcon |
protected java.awt.Color |
myColor |
protected java.lang.String |
myName |
protected javax.swing.Icon |
myOpenIcon
Deprecated.
Unused. Left for API compatibility.
|
protected Project |
myProject |
Constructor and Description |
---|
NodeDescriptor(Project project,
NodeDescriptor<?> parentDescriptor) |
Modifier and Type | Method and Description |
---|---|
void |
applyFrom(NodeDescriptor<?> desc) |
boolean |
expandOnDoubleClick() |
long |
getChildrenSortingStamp() |
javax.swing.Icon |
getClosedIcon()
Deprecated.
Use
getIcon() instead |
java.awt.Color |
getColor() |
abstract E |
getElement() |
javax.swing.Icon |
getIcon() |
int |
getIndex() |
javax.swing.Icon |
getOpenIcon()
Deprecated.
Use
getIcon() instead |
NodeDescriptor<?> |
getParentDescriptor() |
Project |
getProject() |
long |
getUpdateCount() |
int |
getWeight() |
boolean |
isWasDeclaredAlwaysLeaf() |
void |
setChildrenSortingStamp(long stamp) |
void |
setIcon(javax.swing.Icon closedIcon) |
void |
setIndex(int index) |
void |
setUpdateCount(long updateCount) |
void |
setWasDeclaredAlwaysLeaf(boolean leaf) |
java.lang.String |
toString() |
abstract boolean |
update()
Make sure the descriptor is up to date with its content
|
public static final NodeDescriptor<?>[] EMPTY_ARRAY
public static final int DEFAULT_WEIGHT
protected final Project myProject
protected java.lang.String myName
protected javax.swing.Icon myClosedIcon
@Deprecated protected javax.swing.Icon myOpenIcon
protected java.awt.Color myColor
public NodeDescriptor(Project project, NodeDescriptor<?> parentDescriptor)
public NodeDescriptor<?> getParentDescriptor()
public int getIndex()
public void setIndex(int index)
public abstract boolean update()
public abstract E getElement()
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public final javax.swing.Icon getOpenIcon()
getIcon()
instead@Deprecated public final javax.swing.Icon getClosedIcon()
getIcon()
insteadpublic final javax.swing.Icon getIcon()
public final java.awt.Color getColor()
public final Project getProject()
public boolean expandOnDoubleClick()
public int getWeight()
public final long getChildrenSortingStamp()
public final void setChildrenSortingStamp(long stamp)
public final long getUpdateCount()
public final void setUpdateCount(long updateCount)
public boolean isWasDeclaredAlwaysLeaf()
public void setWasDeclaredAlwaysLeaf(boolean leaf)
public void applyFrom(NodeDescriptor<?> desc)
public void setIcon(javax.swing.Icon closedIcon)