|
||||||||||
| 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.table.SDefaultTableRowSelectionRenderer
public class SDefaultTableRowSelectionRenderer
Renderer responsible for the row selection column in cases where the table cannot distinguish clicks on cells as selection clicks or editing clicks.
| Field Summary | |
|---|---|
static SResourceIcon |
DEFAULT_MULTI_NOT_SELECTION_ICON
|
static SResourceIcon |
DEFAULT_MULTI_SELECTION_ICON
|
static SResourceIcon |
DEFAULT_SINGLE_NOT_SELECTION_ICON
|
static SResourceIcon |
DEFAULT_SINGLE_SELECTION_ICON
|
protected SResourceIcon |
multiNonSelectionIcon
|
protected SResourceIcon |
multiSelectionIcon
|
protected String |
nonSelectionStyle
Style to use for the foreground for non-selected nodes. |
protected String |
selectionStyle
Style to use for the foreground for non-selected nodes. |
protected SResourceIcon |
singleNonSelectionIcon
|
protected SResourceIcon |
singleSelectionIcon
|
protected boolean |
useIcons
If set to true render the row selection colum with icons, otherwise simple text. |
| 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 | |
|---|---|
SDefaultTableRowSelectionRenderer()
|
|
| Method Summary | |
|---|---|
SResourceIcon |
getMultiNonSelectionIcon()
|
SResourceIcon |
getMultiSelectionIcon()
|
String |
getNonSelectionStyle()
Returns the style the cell is drawn with when the cell isn't selected. |
String |
getSelectionStyle()
Returns the style the cell is drawn with when the cell isn't selected. |
SResourceIcon |
getSingleNonSelectionIcon()
|
SResourceIcon |
getSingleSelectionIcon()
|
SComponent |
getTableCellRendererComponent(STable table,
Object value,
boolean selected,
int row,
int col)
|
boolean |
isUseIcons()
Returns if set to true render the row selection colum with icons, otherwise simple text. |
void |
setMultiNonSelectionIcon(SResourceIcon multiNonSelectionIcon)
|
void |
setMultiSelectionIcon(SResourceIcon multiSelectionIcon)
|
void |
setNonSelectionStyle(String newStyle)
Sets the style the cell is drawn with when the cell isn't selected. |
void |
setSelectionStyle(String newStyle)
Sets the style the cell is drawn with when the cell isn't selected. |
void |
setSingleNonSelectionIcon(SResourceIcon singleNonSelectionIcon)
|
void |
setSingleSelectionIcon(SResourceIcon singleSelectionIcon)
|
void |
setUseIcons(boolean useIcons)
Sets if set to true render the row selection colum with icons, otherwise simple text. |
| 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 |
|---|
public static final SResourceIcon DEFAULT_MULTI_SELECTION_ICON
public static final SResourceIcon DEFAULT_MULTI_NOT_SELECTION_ICON
public static final SResourceIcon DEFAULT_SINGLE_SELECTION_ICON
public static final SResourceIcon DEFAULT_SINGLE_NOT_SELECTION_ICON
protected String nonSelectionStyle
protected String selectionStyle
protected SResourceIcon multiSelectionIcon
protected SResourceIcon multiNonSelectionIcon
protected SResourceIcon singleSelectionIcon
protected SResourceIcon singleNonSelectionIcon
protected boolean useIcons
| Constructor Detail |
|---|
public SDefaultTableRowSelectionRenderer()
| Method Detail |
|---|
public SComponent getTableCellRendererComponent(STable table,
Object value,
boolean selected,
int row,
int col)
getTableCellRendererComponent in interface STableCellRendererpublic void setNonSelectionStyle(String newStyle)
public String getNonSelectionStyle()
public void setSelectionStyle(String newStyle)
public String getSelectionStyle()
public SResourceIcon getMultiSelectionIcon()
public void setMultiSelectionIcon(SResourceIcon multiSelectionIcon)
multiSelectionIcon - Icon used for selected rows in multi-selection mode for selected linespublic SResourceIcon getMultiNonSelectionIcon()
public void setMultiNonSelectionIcon(SResourceIcon multiNonSelectionIcon)
multiNonSelectionIcon - Icon used for selected rows in multi-selection mode for unselected linespublic SResourceIcon getSingleSelectionIcon()
public void setSingleSelectionIcon(SResourceIcon singleSelectionIcon)
singleSelectionIcon - Icon used for selected rows in single-selection mode tables for selected linespublic SResourceIcon getSingleNonSelectionIcon()
public void setSingleNonSelectionIcon(SResourceIcon singleNonSelectionIcon)
singleNonSelectionIcon - Icon used for selected rows in single-selection mode tables for unselected linespublic boolean isUseIcons()
public void setUseIcons(boolean useIcons)
useIcons - if set to true render the row selection colum with icons, otherwise simple text.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||