|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
org.wings.SLabel
org.wings.tree.SDefaultTreeCellRenderer
public class SDefaultTreeCellRenderer
| Field Summary | |
|---|---|
protected SIcon |
closedIcon
Icon used to show non-leaf nodes that aren't expanded. |
protected SIcon |
leafIcon
Icon used to show leaf nodes. |
protected String |
nonSelectionStyle
Style to use for the foreground for non-selected nodes. |
protected SIcon |
openIcon
Icon used to show non-leaf nodes that are expanded. |
protected String |
selectionStyle
Style to use for the foreground for selected nodes. |
| Fields inherited from class org.wings.SLabel |
|---|
disabledIcon, horizontalTextPosition, icon, iconTextGap, text, verticalTextPosition, wordWrap |
| Fields inherited from class org.wings.SComponent |
|---|
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME |
| Constructor Summary | |
|---|---|
SDefaultTreeCellRenderer()
Create a SDefaultTreeCellRenderer with default properties. |
|
| Method Summary | |
|---|---|
SIcon |
getClosedIcon()
Returns the icon used to represent non-leaf nodes that are not expanded. |
SIcon |
getDefaultClosedIcon()
Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are not expanded. |
SIcon |
getDefaultLeafIcon()
Returns the default icon, for the current laf, that is used to represent leaf nodes. |
SIcon |
getDefaultOpenIcon()
Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are expanded. |
SIcon |
getLeafIcon()
Returns the icon used to represent leaf nodes. |
String |
getNonSelectionStyle()
Returns the style the cell is drawn with when the cell isn't selected. |
SIcon |
getOpenIcon()
Returns the icon used to represent non-leaf nodes that are expanded. |
String |
getSelectionStyle()
Returns the style the cell is drawn with when the cell is selected. |
SComponent |
getTreeCellRendererComponent(STree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
|
protected String |
name(SComponent component,
int row)
|
void |
setClosedIcon(SIcon newIcon)
Sets the icon used to represent non-leaf nodes that are not expanded. |
void |
setLeafIcon(SIcon newIcon)
Sets the icon used to represent leaf nodes. |
void |
setNonSelectionStyle(String newStyle)
Sets the style the cell is drawn with when the cell isn't selected. |
void |
setOpenIcon(SIcon newIcon)
Sets the icon used to represent non-leaf nodes that are expanded. |
void |
setSelectionStyle(String newStyle)
Sets the style the cell is drawn with when the cell is selected. |
| Methods inherited from class org.wings.SLabel |
|---|
getDisabledIcon, getHorizontalTextPosition, getIcon, getIconTextGap, getText, getVerticalTextPosition, isWordWrap, setCG, setDisabledIcon, setHorizontalTextPosition, setIcon, setIconTextGap, setText, setVerticalTextPosition, setWordWrap |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient SIcon closedIcon
protected transient SIcon leafIcon
protected transient SIcon openIcon
protected String selectionStyle
protected String nonSelectionStyle
| Constructor Detail |
|---|
public SDefaultTreeCellRenderer()
| Method Detail |
|---|
public SIcon getDefaultOpenIcon()
public SIcon getDefaultClosedIcon()
public SIcon getDefaultLeafIcon()
public void setOpenIcon(SIcon newIcon)
public SIcon getOpenIcon()
public void setClosedIcon(SIcon newIcon)
public SIcon getClosedIcon()
public void setLeafIcon(SIcon newIcon)
public SIcon getLeafIcon()
public SComponent getTreeCellRendererComponent(STree tree,
Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
getTreeCellRendererComponent in interface STreeCellRenderer
protected String name(SComponent component,
int row)
public void setSelectionStyle(String newStyle)
public String getSelectionStyle()
public void setNonSelectionStyle(String newStyle)
public String getNonSelectionStyle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||