|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component nextapp.echo.AbstractButton nextapp.echo.Button echopoint.table.SortableTableHeaderRenderer
Renders the table header cells for a table with a SortableTableModel. The header cells are buttons that can be pressed to sort a particular table column.
Nested Class Summary | |
static class |
SortableTableHeaderRenderer.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static nextapp.echo.Color |
DEFAULT_HEADER_BACKGROUND
Default Header Background Color |
static nextapp.echo.ImageReference |
defaultDownIcon
|
static nextapp.echo.ImageReference |
defaultUpIcon
|
static java.lang.String |
DOWN_ICON_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_DOWN_ICON
Down Icon Property |
static java.lang.String |
STYLE_UP_ICON
Up Icon Property |
static nextapp.echo.ImageReference |
transparentIcon
|
static java.lang.String |
UP_ICON_CHANGED_PROPERTY
|
Fields inherited from class nextapp.echo.AbstractButton |
ACTION_COMMAND_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, ICON_TEXT_MARGIN_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, ROLLOVER_BACKGROUND_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_FONT_CHANGED_PROPERTY, ROLLOVER_FOREGROUND_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_HORIZONTAL_TEXT_POSITION, STYLE_ICON_TEXT_MARGIN, STYLE_ROLLOVER_BACKGROUND, STYLE_ROLLOVER_ENABLED, STYLE_ROLLOVER_FONT, STYLE_ROLLOVER_FOREGROUND, STYLE_VERTICAL_ALIGNMENT, STYLE_VERTICAL_TEXT_POSITION, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY |
Fields inherited from class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Fields inherited from interface nextapp.echo.ToolTipSupport |
TOOL_TIP_TEXT_CHANGED_PROPERTY |
Constructor Summary | |
SortableTableHeaderRenderer(SortableTableModel sortableTableModel)
Constructs a SortableTableHeaderRenderer |
Method Summary | |
void |
actionPerformed(nextapp.echo.event.ActionEvent e)
Invoked when an action occurs. |
void |
applyStyle(nextapp.echo.Style style)
Applies the provided style to the component. |
nextapp.echo.ImageReference |
getDownIcon()
Returns the Icon used for the decending sort order |
SortableTableModel |
getSortableTableModel()
Returns the SortableTableModel in use. |
nextapp.echo.Component |
getTableCellRendererComponent(nextapp.echo.Table table,
java.lang.Object value,
int column,
int row)
Returns a component that will be rendered at the given coordinate. |
nextapp.echo.ImageReference |
getUpIcon()
Returns the Icon used for the ascending sort order |
boolean |
isColumnSorted(int columnIndex)
Returns true if the specified column is sortable. |
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
Called to save the old value of a field, set in a new value and return the old value of a field. |
void |
setColumnSorted(int columnIndex,
boolean isSorted)
Controls whether a Column in the TableModel is sortable. |
void |
setDownIcon(nextapp.echo.ImageReference newDownIcon)
Sets the Icon used for the decending sort order |
void |
setSortableTableModel(SortableTableModel newModel)
Sets the SortableTableModel to use. |
void |
setUpIcon(nextapp.echo.ImageReference newUpIcon)
Sets the Icon used for the ascending sort order |
Methods inherited from class nextapp.echo.AbstractButton |
addActionListener, addChangeListener, addItemListener, doAction, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextMargin, getModel, getRolloverBackground, getRolloverFont, getRolloverForeground, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getText, getToolTipText, getVerticalAlignment, getVerticalTextPosition, hasActionListeners, isRolloverEnabled, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextMargin, setModel, setRolloverBackground, setRolloverEnabled, setRolloverFont, setRolloverForeground, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setToolTipText, setVerticalAlignment, setVerticalTextPosition |
Methods inherited from class nextapp.echo.Component |
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final nextapp.echo.ImageReference defaultUpIcon
public static final nextapp.echo.ImageReference defaultDownIcon
public static final nextapp.echo.ImageReference transparentIcon
public static final java.lang.String STYLE_UP_ICON
public static final java.lang.String UP_ICON_CHANGED_PROPERTY
public static final java.lang.String STYLE_DOWN_ICON
public static final java.lang.String DOWN_ICON_CHANGED_PROPERTY
public static final nextapp.echo.Color DEFAULT_HEADER_BACKGROUND
Constructor Detail |
public SortableTableHeaderRenderer(SortableTableModel sortableTableModel)
SortableTableHeaderRenderer
Method Detail |
public void actionPerformed(nextapp.echo.event.ActionEvent e)
actionPerformed
in interface nextapp.echo.event.ActionListener
e
- The event describing the action.public void applyStyle(nextapp.echo.Style style)
nextapp.echo.Component
style names can be used as well.
public nextapp.echo.ImageReference getDownIcon()
public nextapp.echo.Component getTableCellRendererComponent(nextapp.echo.Table table, java.lang.Object value, int column, int row)
getTableCellRendererComponent
in interface nextapp.echo.table.TableCellRenderer
table
- The table for which the component is to be generated.value
- The value for which to generate a component.column
- The column coordinate of the value in the table.row
- The row coordinate of the value in the table.
public nextapp.echo.ImageReference getUpIcon()
public void setDownIcon(nextapp.echo.ImageReference newDownIcon)
newDownIcon
- nextapp.echo.ImageReferencepublic void setUpIcon(nextapp.echo.ImageReference newUpIcon)
newUpIcon
- nextapp.echo.ImageReferencepublic boolean isColumnSorted(int columnIndex)
columnIndex
-
public void setColumnSorted(int columnIndex, boolean isSorted)
columnIndex
- - the column in questionisSorted
- - true if the column is sortable.public SortableTableModel getSortableTableModel()
public void setSortableTableModel(SortableTableModel newModel)
newModel
- - a new sortable table modelpublic java.lang.Object set(java.lang.reflect.Field field, java.lang.Object newValue) throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception { Object oldValue = f.get(this); f.set(this,newValue); return oldValue; }
set
in interface ReflectionSetter
field
- - the field to be setnewValue
- - the new value to be set
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |