org.apache.pivot.wtk.skin.terra
Class TerraTableViewSkin

java.lang.Object
  extended by org.apache.pivot.wtk.skin.ComponentSkin
      extended by org.apache.pivot.wtk.skin.terra.TerraTableViewSkin
All Implemented Interfaces:
org.apache.pivot.wtk.ComponentKeyListener, org.apache.pivot.wtk.ComponentListener, org.apache.pivot.wtk.ComponentMouseButtonListener, org.apache.pivot.wtk.ComponentMouseListener, org.apache.pivot.wtk.ComponentMouseWheelListener, org.apache.pivot.wtk.ComponentStateListener, org.apache.pivot.wtk.ComponentTooltipListener, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.Skin, org.apache.pivot.wtk.TableView.Skin, org.apache.pivot.wtk.TableViewColumnListener, org.apache.pivot.wtk.TableViewListener, org.apache.pivot.wtk.TableViewRowListener, org.apache.pivot.wtk.TableViewSelectionListener, org.apache.pivot.wtk.Visual

public class TerraTableViewSkin
extends org.apache.pivot.wtk.skin.ComponentSkin
implements org.apache.pivot.wtk.TableView.Skin, org.apache.pivot.wtk.TableViewListener, org.apache.pivot.wtk.TableViewColumnListener, org.apache.pivot.wtk.TableViewRowListener, org.apache.pivot.wtk.TableViewSelectionListener

Table view skin.

TODO Add disableMouseSelection style to support the case where selection should be enabled but the caller wants to implement the management of it; e.g. changing a message's flag state in an email client.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TableViewListener
org.apache.pivot.wtk.TableViewListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TableViewColumnListener
org.apache.pivot.wtk.TableViewColumnListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TableViewRowListener
org.apache.pivot.wtk.TableViewRowListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TableViewSelectionListener
org.apache.pivot.wtk.TableViewSelectionListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener
org.apache.pivot.wtk.ComponentListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener
org.apache.pivot.wtk.ComponentStateListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener
org.apache.pivot.wtk.ComponentMouseListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener
org.apache.pivot.wtk.ComponentMouseButtonListener.Adapter
 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener
org.apache.pivot.wtk.ComponentKeyListener.Adapter
 
Constructor Summary
TerraTableViewSkin()
           
 
Method Summary
 void columnCellRendererChanged(org.apache.pivot.wtk.TableView.Column column, org.apache.pivot.wtk.TableView.CellRenderer previousCellRenderer)
           
 void columnFilterChanged(org.apache.pivot.wtk.TableView.Column column, Object previousFilter)
           
 void columnHeaderDataChanged(org.apache.pivot.wtk.TableView.Column column, Object previousHeaderData)
           
 void columnHeaderDataRendererChanged(org.apache.pivot.wtk.TableView.Column column, org.apache.pivot.wtk.TableView.HeaderDataRenderer previousHeaderDataRenderer)
           
 void columnInserted(org.apache.pivot.wtk.TableView tableView, int index)
           
 void columnNameChanged(org.apache.pivot.wtk.TableView.Column column, String previousName)
           
 void columnSourceChanged(org.apache.pivot.wtk.TableView tableView, org.apache.pivot.wtk.TableView previousColumnSource)
           
 void columnsRemoved(org.apache.pivot.wtk.TableView tableView, int index, org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.TableView.Column> columns)
           
 void columnWidthChanged(org.apache.pivot.wtk.TableView.Column column, int previousWidth, boolean previousRelative)
           
 void columnWidthLimitsChanged(org.apache.pivot.wtk.TableView.Column column, int previousMinimumWidth, int previousMaximumWidth)
           
 void disabledRowFilterChanged(org.apache.pivot.wtk.TableView tableView, org.apache.pivot.util.Filter<?> previousDisabledRowFilter)
           
 void enabledChanged(org.apache.pivot.wtk.Component component)
           
 void focusedChanged(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Component obverseComponent)
           
 Color getAlternateRowBackgroundColor()
           
 Color getBackgroundColor()
           
 int getBaseline(int width, int height)
           
 org.apache.pivot.wtk.Bounds getCellBounds(int rowIndex, int columnIndex)
           
 Color getColor()
           
 int getColumnAt(int x)
           
 org.apache.pivot.wtk.Bounds getColumnBounds(int columnIndex)
           
 Color getColumnSelectionColor()
           
 Color getColumnSelectionHorizontalGridColor()
           
static org.apache.pivot.collections.ArrayList<Integer> getColumnWidths(org.apache.pivot.wtk.TableView tableView, int width)
           
 Color getDisabledColor()
           
 Font getFont()
           
 Color getHighlightBackgroundColor()
           
 Color getHorizontalGridColor()
           
 Color getInactiveSelectionBackgroundColor()
           
 Color getInactiveSelectionColor()
           
 boolean getIncludeTrailingHorizontalGridLine()
           
 boolean getIncludeTrailingVerticalGridLine()
           
 int getPreferredHeight(int width)
           
 org.apache.pivot.wtk.Dimensions getPreferredSize()
           
 int getPreferredWidth(int height)
           
static int getPreferredWidth(org.apache.pivot.wtk.TableView tableView, boolean includeTrailingVerticalGridLine)
           
 int getRowAt(int y)
           
 org.apache.pivot.wtk.Bounds getRowBounds(int rowIndex)
           
 Color getSelectionBackgroundColor()
           
 Color getSelectionColor()
           
 boolean getShowHighlight()
           
 boolean getShowHorizontalGridLines()
           
 boolean getShowVerticalGridLines()
           
protected  int getVariableRowHeight(int rowIndex, org.apache.pivot.collections.ArrayList<Integer> columnWidthsArgument)
           
 Color getVerticalGridColor()
           
 void install(org.apache.pivot.wtk.Component component)
           
 boolean isEditOnMouseDown()
           
 boolean isFocusable()
           
 boolean isOpaque()
           
 boolean isVariableRowHeight()
           
 boolean keyPressed(org.apache.pivot.wtk.Component component, int keyCode, org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
          UP Selects the previous enabled row when select mode is not TableView.SelectMode.NONE
DOWN Selects the next enabled row when select mode is not TableView.SelectMode.NONE SHIFT + UP Increases the selection size by including the previous enabled row when select mode is TableView.SelectMode.MULTI
SHIFT + DOWN Increases the selection size by including the next enabled row when select mode is TableView.SelectMode.MULTI
 void layout()
           
 boolean mouseClick(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.Button button, int x, int y, int count)
           
 boolean mouseDown(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.Button button, int x, int y)
           
 boolean mouseMove(org.apache.pivot.wtk.Component component, int x, int y)
           
 void mouseOut(org.apache.pivot.wtk.Component component)
           
 boolean mouseUp(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.Button button, int x, int y)
           
 boolean mouseWheel(org.apache.pivot.wtk.Component component, org.apache.pivot.wtk.Mouse.ScrollType scrollType, int scrollAmount, int wheelRotation, int x, int y)
           
 void paint(Graphics2D graphics)
           
 void rowEditorChanged(org.apache.pivot.wtk.TableView tableView, org.apache.pivot.wtk.TableView.RowEditor previousRowEditor)
           
 void rowInserted(org.apache.pivot.wtk.TableView tableView, int index)
           
 void rowsCleared(org.apache.pivot.wtk.TableView listView)
           
 void rowsRemoved(org.apache.pivot.wtk.TableView tableView, int index, int count)
           
 void rowsSorted(org.apache.pivot.wtk.TableView tableView)
           
 void rowUpdated(org.apache.pivot.wtk.TableView tableView, int index)
           
 void selectedRangeAdded(org.apache.pivot.wtk.TableView tableView, int rangeStart, int rangeEnd)
           
 void selectedRangeRemoved(org.apache.pivot.wtk.TableView tableView, int rangeStart, int rangeEnd)
           
 void selectedRangesChanged(org.apache.pivot.wtk.TableView tableView, org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.Span> previousSelectedRanges)
           
 void selectedRowChanged(org.apache.pivot.wtk.TableView tableView, Object previousSelectedRow)
           
 void selectModeChanged(org.apache.pivot.wtk.TableView tableView, org.apache.pivot.wtk.TableView.SelectMode previousSelectMode)
           
 void setAlternateRowBackgroundColor(Color alternateRowBackgroundColor)
           
 void setAlternateRowBackgroundColor(int alternateRowBackgroundColor)
           
 void setAlternateRowBackgroundColor(String alternateRowBackgroundColor)
           
 void setBackgroundColor(Color backgroundColor)
           
 void setBackgroundColor(int backgroundColor)
           
 void setBackgroundColor(String backgroundColor)
           
 void setColor(Color color)
           
 void setColor(int color)
           
 void setColor(String color)
           
 void setColumnSelectionColor(Color columnSelectionColor)
           
 void setColumnSelectionColor(int columnSelectionColor)
           
 void setColumnSelectionColor(String columnSelectionColor)
           
 void setColumnSelectionHorizontalGridColor(Color columnSelectionHorizontalGridColor)
           
 void setColumnSelectionHorizontalGridColor(int columnSelectionHorizontalGridColor)
           
 void setColumnSelectionHorizontalGridColor(String columnSelectionHorizontalGridColor)
           
 void setDisabledColor(Color disabledColor)
           
 void setDisabledColor(int disabledColor)
           
 void setDisabledColor(String disabledColor)
           
 void setEditOnMouseDown(boolean editOnMouseDown)
           
 void setFont(org.apache.pivot.collections.Dictionary<String,?> font)
           
 void setFont(Font font)
           
 void setFont(String font)
           
 void setHighlightBackgroundColor(Color highlightBackgroundColor)
           
 void setHighlightBackgroundColor(int highlightBackgroundColor)
           
 void setHighlightBackgroundColor(String highlightBackgroundColor)
           
 void setHorizontalGridColor(Color horizontalGridColor)
           
 void setHorizontalGridColor(int horizontalGridColor)
           
 void setHorizontalGridColor(String horizontalGridColor)
           
 void setInactiveSelectionBackgroundColor(Color inactiveSelectionBackgroundColor)
           
 void setInactiveSelectionBackgroundColor(int inactiveSelectionBackgroundColor)
           
 void setInactiveSelectionBackgroundColor(String inactiveSelectionBackgroundColor)
           
 void setInactiveSelectionColor(Color inactiveSelectionColor)
           
 void setInactiveSelectionColor(int inactiveSelectionColor)
           
 void setInactiveSelectionColor(String inactiveSelectionColor)
           
 void setIncludeTrailingHorizontalGridLine(boolean includeTrailingHorizontalGridLine)
           
 void setIncludeTrailingVerticalGridLine(boolean includeTrailingVerticalGridLine)
           
 void setSelectionBackgroundColor(Color selectionBackgroundColor)
           
 void setSelectionBackgroundColor(int selectionBackgroundColor)
           
 void setSelectionBackgroundColor(String selectionBackgroundColor)
           
 void setSelectionColor(Color selectionColor)
           
 void setSelectionColor(int selectionColor)
           
 void setSelectionColor(String selectionColor)
           
 void setShowHighlight(boolean showHighlight)
           
 void setShowHorizontalGridLines(boolean showHorizontalGridLines)
           
 void setShowVerticalGridLines(boolean showVerticalGridLines)
           
 void setVariableRowHeight(boolean variableRowHeight)
           
 void setVerticalGridColor(Color verticalGridColor)
           
 void setVerticalGridColor(int verticalGridColor)
           
 void setVerticalGridColor(String verticalGridColor)
           
 void tableDataChanged(org.apache.pivot.wtk.TableView tableView, org.apache.pivot.collections.List<?> previousTableData)
           
 
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseOver, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerraTableViewSkin

public TerraTableViewSkin()
Method Detail

install

public void install(org.apache.pivot.wtk.Component component)
Specified by:
install in interface org.apache.pivot.wtk.Skin
Overrides:
install in class org.apache.pivot.wtk.skin.ComponentSkin

getPreferredWidth

public int getPreferredWidth(int height)
Specified by:
getPreferredWidth in interface org.apache.pivot.wtk.ConstrainedVisual

getPreferredWidth

public static int getPreferredWidth(org.apache.pivot.wtk.TableView tableView,
                                    boolean includeTrailingVerticalGridLine)

getPreferredHeight

public int getPreferredHeight(int width)
Specified by:
getPreferredHeight in interface org.apache.pivot.wtk.ConstrainedVisual

getPreferredSize

public org.apache.pivot.wtk.Dimensions getPreferredSize()
Specified by:
getPreferredSize in interface org.apache.pivot.wtk.ConstrainedVisual
Overrides:
getPreferredSize in class org.apache.pivot.wtk.skin.ComponentSkin

getBaseline

public int getBaseline(int width,
                       int height)
Specified by:
getBaseline in interface org.apache.pivot.wtk.ConstrainedVisual
Overrides:
getBaseline in class org.apache.pivot.wtk.skin.ComponentSkin

layout

public void layout()
Specified by:
layout in interface org.apache.pivot.wtk.Skin

paint

public void paint(Graphics2D graphics)
Specified by:
paint in interface org.apache.pivot.wtk.Visual

getVariableRowHeight

protected int getVariableRowHeight(int rowIndex,
                                   org.apache.pivot.collections.ArrayList<Integer> columnWidthsArgument)

getRowAt

public int getRowAt(int y)
Specified by:
getRowAt in interface org.apache.pivot.wtk.TableView.Skin

getColumnAt

public int getColumnAt(int x)
Specified by:
getColumnAt in interface org.apache.pivot.wtk.TableView.Skin

getRowBounds

public org.apache.pivot.wtk.Bounds getRowBounds(int rowIndex)
Specified by:
getRowBounds in interface org.apache.pivot.wtk.TableView.Skin

getColumnBounds

public org.apache.pivot.wtk.Bounds getColumnBounds(int columnIndex)
Specified by:
getColumnBounds in interface org.apache.pivot.wtk.TableView.Skin

getCellBounds

public org.apache.pivot.wtk.Bounds getCellBounds(int rowIndex,
                                                 int columnIndex)
Specified by:
getCellBounds in interface org.apache.pivot.wtk.TableView.Skin

getColumnWidths

public static org.apache.pivot.collections.ArrayList<Integer> getColumnWidths(org.apache.pivot.wtk.TableView tableView,
                                                                              int width)

isFocusable

public boolean isFocusable()
Specified by:
isFocusable in interface org.apache.pivot.wtk.Skin
Overrides:
isFocusable in class org.apache.pivot.wtk.skin.ComponentSkin

isOpaque

public boolean isOpaque()
Specified by:
isOpaque in interface org.apache.pivot.wtk.Skin
Overrides:
isOpaque in class org.apache.pivot.wtk.skin.ComponentSkin

getFont

public Font getFont()

setFont

public void setFont(Font font)

setFont

public final void setFont(String font)

setFont

public final void setFont(org.apache.pivot.collections.Dictionary<String,?> font)

getColor

public Color getColor()

setColor

public void setColor(Color color)

setColor

public final void setColor(String color)

setColor

public final void setColor(int color)

getDisabledColor

public Color getDisabledColor()

setDisabledColor

public void setDisabledColor(Color disabledColor)

setDisabledColor

public final void setDisabledColor(String disabledColor)

setDisabledColor

public final void setDisabledColor(int disabledColor)

getBackgroundColor

public Color getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)

setBackgroundColor

public final void setBackgroundColor(String backgroundColor)

setBackgroundColor

public final void setBackgroundColor(int backgroundColor)

getSelectionColor

public Color getSelectionColor()

setSelectionColor

public void setSelectionColor(Color selectionColor)

setSelectionColor

public final void setSelectionColor(String selectionColor)

setSelectionColor

public final void setSelectionColor(int selectionColor)

getSelectionBackgroundColor

public Color getSelectionBackgroundColor()

setSelectionBackgroundColor

public void setSelectionBackgroundColor(Color selectionBackgroundColor)

setSelectionBackgroundColor

public final void setSelectionBackgroundColor(String selectionBackgroundColor)

setSelectionBackgroundColor

public final void setSelectionBackgroundColor(int selectionBackgroundColor)

getInactiveSelectionColor

public Color getInactiveSelectionColor()

setInactiveSelectionColor

public void setInactiveSelectionColor(Color inactiveSelectionColor)

setInactiveSelectionColor

public final void setInactiveSelectionColor(String inactiveSelectionColor)

setInactiveSelectionColor

public final void setInactiveSelectionColor(int inactiveSelectionColor)

getInactiveSelectionBackgroundColor

public Color getInactiveSelectionBackgroundColor()

setInactiveSelectionBackgroundColor

public void setInactiveSelectionBackgroundColor(Color inactiveSelectionBackgroundColor)

setInactiveSelectionBackgroundColor

public final void setInactiveSelectionBackgroundColor(String inactiveSelectionBackgroundColor)

setInactiveSelectionBackgroundColor

public final void setInactiveSelectionBackgroundColor(int inactiveSelectionBackgroundColor)

getHighlightBackgroundColor

public Color getHighlightBackgroundColor()

setHighlightBackgroundColor

public void setHighlightBackgroundColor(Color highlightBackgroundColor)

setHighlightBackgroundColor

public final void setHighlightBackgroundColor(String highlightBackgroundColor)

setHighlightBackgroundColor

public final void setHighlightBackgroundColor(int highlightBackgroundColor)

getAlternateRowBackgroundColor

public Color getAlternateRowBackgroundColor()

setAlternateRowBackgroundColor

public void setAlternateRowBackgroundColor(Color alternateRowBackgroundColor)

setAlternateRowBackgroundColor

public final void setAlternateRowBackgroundColor(String alternateRowBackgroundColor)

setAlternateRowBackgroundColor

public final void setAlternateRowBackgroundColor(int alternateRowBackgroundColor)

getColumnSelectionColor

public Color getColumnSelectionColor()

setColumnSelectionColor

public void setColumnSelectionColor(Color columnSelectionColor)

setColumnSelectionColor

public final void setColumnSelectionColor(String columnSelectionColor)

setColumnSelectionColor

public final void setColumnSelectionColor(int columnSelectionColor)

getColumnSelectionHorizontalGridColor

public Color getColumnSelectionHorizontalGridColor()

setColumnSelectionHorizontalGridColor

public void setColumnSelectionHorizontalGridColor(Color columnSelectionHorizontalGridColor)

setColumnSelectionHorizontalGridColor

public final void setColumnSelectionHorizontalGridColor(String columnSelectionHorizontalGridColor)

setColumnSelectionHorizontalGridColor

public final void setColumnSelectionHorizontalGridColor(int columnSelectionHorizontalGridColor)

getHorizontalGridColor

public Color getHorizontalGridColor()

setHorizontalGridColor

public void setHorizontalGridColor(Color horizontalGridColor)

setHorizontalGridColor

public final void setHorizontalGridColor(String horizontalGridColor)

setHorizontalGridColor

public final void setHorizontalGridColor(int horizontalGridColor)

getVerticalGridColor

public Color getVerticalGridColor()

setVerticalGridColor

public void setVerticalGridColor(Color verticalGridColor)

setVerticalGridColor

public final void setVerticalGridColor(String verticalGridColor)

setVerticalGridColor

public final void setVerticalGridColor(int verticalGridColor)

getShowHighlight

public boolean getShowHighlight()

setShowHighlight

public void setShowHighlight(boolean showHighlight)

getShowHorizontalGridLines

public boolean getShowHorizontalGridLines()

setShowHorizontalGridLines

public void setShowHorizontalGridLines(boolean showHorizontalGridLines)

getShowVerticalGridLines

public boolean getShowVerticalGridLines()

setShowVerticalGridLines

public void setShowVerticalGridLines(boolean showVerticalGridLines)

getIncludeTrailingVerticalGridLine

public boolean getIncludeTrailingVerticalGridLine()

setIncludeTrailingVerticalGridLine

public void setIncludeTrailingVerticalGridLine(boolean includeTrailingVerticalGridLine)

getIncludeTrailingHorizontalGridLine

public boolean getIncludeTrailingHorizontalGridLine()

setIncludeTrailingHorizontalGridLine

public void setIncludeTrailingHorizontalGridLine(boolean includeTrailingHorizontalGridLine)

isVariableRowHeight

public boolean isVariableRowHeight()

setVariableRowHeight

public void setVariableRowHeight(boolean variableRowHeight)

isEditOnMouseDown

public boolean isEditOnMouseDown()

setEditOnMouseDown

public void setEditOnMouseDown(boolean editOnMouseDown)

mouseMove

public boolean mouseMove(org.apache.pivot.wtk.Component component,
                         int x,
                         int y)
Specified by:
mouseMove in interface org.apache.pivot.wtk.ComponentMouseListener
Overrides:
mouseMove in class org.apache.pivot.wtk.skin.ComponentSkin

mouseOut

public void mouseOut(org.apache.pivot.wtk.Component component)
Specified by:
mouseOut in interface org.apache.pivot.wtk.ComponentMouseListener
Overrides:
mouseOut in class org.apache.pivot.wtk.skin.ComponentSkin

mouseDown

public boolean mouseDown(org.apache.pivot.wtk.Component component,
                         org.apache.pivot.wtk.Mouse.Button button,
                         int x,
                         int y)
Specified by:
mouseDown in interface org.apache.pivot.wtk.ComponentMouseButtonListener
Overrides:
mouseDown in class org.apache.pivot.wtk.skin.ComponentSkin

mouseUp

public boolean mouseUp(org.apache.pivot.wtk.Component component,
                       org.apache.pivot.wtk.Mouse.Button button,
                       int x,
                       int y)
Specified by:
mouseUp in interface org.apache.pivot.wtk.ComponentMouseButtonListener
Overrides:
mouseUp in class org.apache.pivot.wtk.skin.ComponentSkin

mouseClick

public boolean mouseClick(org.apache.pivot.wtk.Component component,
                          org.apache.pivot.wtk.Mouse.Button button,
                          int x,
                          int y,
                          int count)
Specified by:
mouseClick in interface org.apache.pivot.wtk.ComponentMouseButtonListener
Overrides:
mouseClick in class org.apache.pivot.wtk.skin.ComponentSkin

mouseWheel

public boolean mouseWheel(org.apache.pivot.wtk.Component component,
                          org.apache.pivot.wtk.Mouse.ScrollType scrollType,
                          int scrollAmount,
                          int wheelRotation,
                          int x,
                          int y)
Specified by:
mouseWheel in interface org.apache.pivot.wtk.ComponentMouseWheelListener
Overrides:
mouseWheel in class org.apache.pivot.wtk.skin.ComponentSkin

keyPressed

public boolean keyPressed(org.apache.pivot.wtk.Component component,
                          int keyCode,
                          org.apache.pivot.wtk.Keyboard.KeyLocation keyLocation)
UP Selects the previous enabled row when select mode is not TableView.SelectMode.NONE
DOWN Selects the next enabled row when select mode is not TableView.SelectMode.NONE

SHIFT + UP Increases the selection size by including the previous enabled row when select mode is TableView.SelectMode.MULTI
SHIFT + DOWN Increases the selection size by including the next enabled row when select mode is TableView.SelectMode.MULTI

Specified by:
keyPressed in interface org.apache.pivot.wtk.ComponentKeyListener
Overrides:
keyPressed in class org.apache.pivot.wtk.skin.ComponentSkin

enabledChanged

public void enabledChanged(org.apache.pivot.wtk.Component component)
Specified by:
enabledChanged in interface org.apache.pivot.wtk.ComponentStateListener
Overrides:
enabledChanged in class org.apache.pivot.wtk.skin.ComponentSkin

focusedChanged

public void focusedChanged(org.apache.pivot.wtk.Component component,
                           org.apache.pivot.wtk.Component obverseComponent)
Specified by:
focusedChanged in interface org.apache.pivot.wtk.ComponentStateListener
Overrides:
focusedChanged in class org.apache.pivot.wtk.skin.ComponentSkin

tableDataChanged

public void tableDataChanged(org.apache.pivot.wtk.TableView tableView,
                             org.apache.pivot.collections.List<?> previousTableData)
Specified by:
tableDataChanged in interface org.apache.pivot.wtk.TableViewListener

columnSourceChanged

public void columnSourceChanged(org.apache.pivot.wtk.TableView tableView,
                                org.apache.pivot.wtk.TableView previousColumnSource)
Specified by:
columnSourceChanged in interface org.apache.pivot.wtk.TableViewListener

rowEditorChanged

public void rowEditorChanged(org.apache.pivot.wtk.TableView tableView,
                             org.apache.pivot.wtk.TableView.RowEditor previousRowEditor)
Specified by:
rowEditorChanged in interface org.apache.pivot.wtk.TableViewListener

selectModeChanged

public void selectModeChanged(org.apache.pivot.wtk.TableView tableView,
                              org.apache.pivot.wtk.TableView.SelectMode previousSelectMode)
Specified by:
selectModeChanged in interface org.apache.pivot.wtk.TableViewListener

disabledRowFilterChanged

public void disabledRowFilterChanged(org.apache.pivot.wtk.TableView tableView,
                                     org.apache.pivot.util.Filter<?> previousDisabledRowFilter)
Specified by:
disabledRowFilterChanged in interface org.apache.pivot.wtk.TableViewListener

columnInserted

public void columnInserted(org.apache.pivot.wtk.TableView tableView,
                           int index)
Specified by:
columnInserted in interface org.apache.pivot.wtk.TableViewColumnListener

columnsRemoved

public void columnsRemoved(org.apache.pivot.wtk.TableView tableView,
                           int index,
                           org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.TableView.Column> columns)
Specified by:
columnsRemoved in interface org.apache.pivot.wtk.TableViewColumnListener

columnNameChanged

public void columnNameChanged(org.apache.pivot.wtk.TableView.Column column,
                              String previousName)
Specified by:
columnNameChanged in interface org.apache.pivot.wtk.TableViewColumnListener

columnHeaderDataChanged

public void columnHeaderDataChanged(org.apache.pivot.wtk.TableView.Column column,
                                    Object previousHeaderData)
Specified by:
columnHeaderDataChanged in interface org.apache.pivot.wtk.TableViewColumnListener

columnHeaderDataRendererChanged

public void columnHeaderDataRendererChanged(org.apache.pivot.wtk.TableView.Column column,
                                            org.apache.pivot.wtk.TableView.HeaderDataRenderer previousHeaderDataRenderer)
Specified by:
columnHeaderDataRendererChanged in interface org.apache.pivot.wtk.TableViewColumnListener

columnWidthChanged

public void columnWidthChanged(org.apache.pivot.wtk.TableView.Column column,
                               int previousWidth,
                               boolean previousRelative)
Specified by:
columnWidthChanged in interface org.apache.pivot.wtk.TableViewColumnListener

columnWidthLimitsChanged

public void columnWidthLimitsChanged(org.apache.pivot.wtk.TableView.Column column,
                                     int previousMinimumWidth,
                                     int previousMaximumWidth)
Specified by:
columnWidthLimitsChanged in interface org.apache.pivot.wtk.TableViewColumnListener

columnFilterChanged

public void columnFilterChanged(org.apache.pivot.wtk.TableView.Column column,
                                Object previousFilter)
Specified by:
columnFilterChanged in interface org.apache.pivot.wtk.TableViewColumnListener

columnCellRendererChanged

public void columnCellRendererChanged(org.apache.pivot.wtk.TableView.Column column,
                                      org.apache.pivot.wtk.TableView.CellRenderer previousCellRenderer)
Specified by:
columnCellRendererChanged in interface org.apache.pivot.wtk.TableViewColumnListener

rowInserted

public void rowInserted(org.apache.pivot.wtk.TableView tableView,
                        int index)
Specified by:
rowInserted in interface org.apache.pivot.wtk.TableViewRowListener

rowsRemoved

public void rowsRemoved(org.apache.pivot.wtk.TableView tableView,
                        int index,
                        int count)
Specified by:
rowsRemoved in interface org.apache.pivot.wtk.TableViewRowListener

rowUpdated

public void rowUpdated(org.apache.pivot.wtk.TableView tableView,
                       int index)
Specified by:
rowUpdated in interface org.apache.pivot.wtk.TableViewRowListener

rowsCleared

public void rowsCleared(org.apache.pivot.wtk.TableView listView)
Specified by:
rowsCleared in interface org.apache.pivot.wtk.TableViewRowListener

rowsSorted

public void rowsSorted(org.apache.pivot.wtk.TableView tableView)
Specified by:
rowsSorted in interface org.apache.pivot.wtk.TableViewRowListener

selectedRangeAdded

public void selectedRangeAdded(org.apache.pivot.wtk.TableView tableView,
                               int rangeStart,
                               int rangeEnd)
Specified by:
selectedRangeAdded in interface org.apache.pivot.wtk.TableViewSelectionListener

selectedRangeRemoved

public void selectedRangeRemoved(org.apache.pivot.wtk.TableView tableView,
                                 int rangeStart,
                                 int rangeEnd)
Specified by:
selectedRangeRemoved in interface org.apache.pivot.wtk.TableViewSelectionListener

selectedRangesChanged

public void selectedRangesChanged(org.apache.pivot.wtk.TableView tableView,
                                  org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.Span> previousSelectedRanges)
Specified by:
selectedRangesChanged in interface org.apache.pivot.wtk.TableViewSelectionListener

selectedRowChanged

public void selectedRowChanged(org.apache.pivot.wtk.TableView tableView,
                               Object previousSelectedRow)
Specified by:
selectedRowChanged in interface org.apache.pivot.wtk.TableViewSelectionListener