Package org.apache.pivot.wtk
Class TableViewHeader
- java.lang.Object
-
- org.apache.pivot.wtk.Component
-
- org.apache.pivot.wtk.TableViewHeader
-
- All Implemented Interfaces:
ConstrainedVisual
,Visual
public class TableViewHeader extends Component
Component representing a table view header.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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
Constructors Constructor Description TableViewHeader()
TableViewHeader(TableView tableView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
checkSkin, clear, clearFocus, contains, copyStyle, copyStyle, 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, getScreenBounds, getSize, getSkin, getStyle, getStyle, getStyleBoolean, getStyleBoolean, getStyleColor, getStyleColor, getStyleFont, getStyleFont, getStyleInt, getStyleInt, getStyles, getTextInputMethodListener, 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, offsetToScreen, paint, putStyle, putStyle, reenterMouse, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, 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
-
-
-
-
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.
-
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()
-
-