|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.tableview.SortHeaderRenderer
public class SortHeaderRenderer
Field Summary |
---|
Fields inherited from class com.sas.swing.visuals.tableview.DefaultTableHeaderRenderer |
---|
focusBorder, headerOutsideBorder, nonFocusBorder |
Fields inherited from class com.sas.swing.visuals.tableview.DefaultTableCellRenderer |
---|
border, font, gettingRenderer, isSelected, locale, noFocusBorder, splitCharacter, transform, unselectedBackground, unselectedForeground |
Fields inherited from class com.sas.swing.visuals.LabelView |
---|
alignmentMode, BLOCK, clipped, INDIVIDUAL, leadingContentOffset, lineGap, lineWrap, orientation, preferredSpanSize, replaceNewline, replaceTab, SPAN_FILL, tabSize, topContentOffset, wordWrap |
Fields inherited from interface com.sas.util.SortDirectionInterface |
---|
ASCENDING, DESCENDING, NOT_SORTED |
Fields inherited from interface com.sas.swing.Constants |
---|
CENTER_BOTTOM, CENTER_LEADING, CENTER_LEFT, CENTER_RIGHT, CENTER_TOP, CENTER_TRAILING |
Constructor Summary | |
---|---|
SortHeaderRenderer()
Creates a default table header renderer that has default icons used for sorting. |
|
SortHeaderRenderer(java.lang.Character splitCharacter)
Creates a default table header renderer that has default icons used for sorting. |
Method Summary | |
---|---|
javax.swing.Icon |
getAscendingIcon()
Returns the icon used for a column that has an ascending sort applied |
javax.swing.Icon |
getDescendingIcon()
Returns the icon used for a column that has an descending sort applied |
java.awt.Dimension |
getPreferredSize()
Overrode so that when a sort gets applied the preferred size will be the same since now a sort icon will be present. |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns the default table cell renderer. |
void |
setAscendingIcon(javax.swing.Icon newIcon)
Sets the icon used when a column has an ascending sort applied. |
void |
setDescendingIcon(javax.swing.Icon newIcon)
Sets the icon used when a column has an descending sort applied. |
Methods inherited from class com.sas.swing.visuals.tableview.DefaultTableHeaderRenderer |
---|
createOutsideBorder, getInsets, getInsets, updateUI |
Methods inherited from class com.sas.swing.visuals.tableview.DefaultTableCellRenderer |
---|
equals, firePropertyChange, getLocale, getSplitCharacter, getTransform, isOpaque, repaint, repaint, revalidate, setBackground, setBorder, setFont, setForeground, setLocale, setSelected, setSplitCharacter, setTransform, setValue, validate |
Constructor Detail |
---|
public SortHeaderRenderer()
public SortHeaderRenderer(java.lang.Character splitCharacter)
splitCharacter
- the split character to slit the lines in the renderer on, null
by defaultMethod Detail |
---|
public void setAscendingIcon(javax.swing.Icon newIcon)
newIcon
- the new icon to use for an ascending sortgetAscendingIcon()
public javax.swing.Icon getAscendingIcon()
setAscendingIcon(Icon)
public void setDescendingIcon(javax.swing.Icon newIcon)
newIcon
- the new icon to use for an descending sortgetDescendingIcon()
public javax.swing.Icon getDescendingIcon()
setDescendingIcon(Icon)
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface javax.swing.table.TableCellRenderer
getTableCellRendererComponent
in class DefaultTableHeaderRenderer
table
- the JTable
value
- the value to assign to the cell at
[row, column]
isSelected
- true if cell is selectedisFocus
- true if cell has focusrow
- the row of the cell to rendercolumn
- the column of the cell to render
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |