org.apache.pivot.wtk
Class TableViewHeader

java.lang.Object
  extended by org.apache.pivot.wtk.Component
      extended by org.apache.pivot.wtk.TableViewHeader
All Implemented Interfaces:
ConstrainedVisual, Visual

public class TableViewHeader
extends Component

Component representing a table view header.


Nested Class Summary
static interface TableViewHeader.Skin
          Table view header skin interface.
static class TableViewHeader.SortMode
          Enumeration representing a sort mode.
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary
 
Constructor Summary
TableViewHeader()
           
TableViewHeader(TableView tableView)
           
 
Method Summary
 int getHeaderAt(int x)
          Returns the index of the header at a given location.
 Bounds getHeaderBounds(int index)
          Returns the bounding area of a given header.
 TableViewHeader.SortMode getSortMode()
           
 TableView getTableView()
           
 ListenerList<TableViewHeaderListener> getTableViewHeaderListeners()
           
 ListenerList<TableViewHeaderPressListener> getTableViewHeaderPressListeners()
           
 void pressHeader(int index)
           
protected  void setSkin(Skin skin)
          Sets the skin, replacing any previous skin.
 void setSortMode(TableViewHeader.SortMode sortMode)
           
 void setTableView(TableView tableView)
           
 
Methods inherited from class org.apache.pivot.wtk.Component
clear, clearFocus, contains, getAncestor, getAncestor, getAttribute, getAutomationID, getBaseline, getBaseline, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentKeyListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponentStateListeners, getComponentStyleListeners, getComponentTooltipListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getGraphics, getHeight, getHeightLimits, getLocation, getMaximumHeight, getMaximumWidth, getMenuHandler, getMinimumHeight, getMinimumWidth, getMouseLocation, getName, getNamedStyles, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipDelay, getTooltipText, getTooltipWrapText, getTypedStyles, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWidthLimits, getWindow, getX, getY, indexBoundsCheck, installSkin, invalidate, isBlocked, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, layout, load, mapPointFromAncestor, mapPointFromAncestor, mapPointToAncestor, mapPointToAncestor, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, paint, reenterMouse, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, setCursor, setDragSource, setDropTarget, setEnabled, setFocused, setHeight, setHeightLimits, setHeightLimits, setLocation, setLocation, setMaximumHeight, setMaximumWidth, setMenuHandler, setMinimumHeight, setMinimumWidth, setName, setParent, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setStyleName, setStyleNames, setStyleNames, setStyles, setStyles, setTooltipDelay, setTooltipText, setTooltipWrapText, setVisible, setWidth, setWidthLimits, setWidthLimits, setX, setY, store, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableViewHeader

public TableViewHeader()

TableViewHeader

public TableViewHeader(TableView tableView)
Method Detail

setSkin

protected void setSkin(Skin skin)
Description copied from class: Component
Sets the skin, replacing any previous skin.

Overrides:
setSkin in class Component
Parameters:
skin - The new skin.

getTableView

public TableView getTableView()

setTableView

public void setTableView(TableView tableView)

getSortMode

public TableViewHeader.SortMode getSortMode()

setSortMode

public void setSortMode(TableViewHeader.SortMode sortMode)

pressHeader

public void pressHeader(int index)

getHeaderAt

public int getHeaderAt(int x)
Returns the index of the header at a given location.

Parameters:
x - The x-coordinate of the header to identify.
Returns:
The column index, or -1 if there is no column at the given x-coordinate.

getHeaderBounds

public Bounds getHeaderBounds(int index)
Returns the bounding area of a given header.

Parameters:
index - The index of the header.
Returns:
The bounding area of the header.

getTableViewHeaderListeners

public ListenerList<TableViewHeaderListener> getTableViewHeaderListeners()

getTableViewHeaderPressListeners

public ListenerList<TableViewHeaderPressListener> getTableViewHeaderPressListeners()