org.apache.pivot.wtk.skin.terra
Class TerraTableViewHeaderSkin
java.lang.Object
org.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.terra.TerraTableViewHeaderSkin
- 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.TableViewColumnListener, org.apache.pivot.wtk.TableViewHeader.Skin, org.apache.pivot.wtk.TableViewHeaderListener, org.apache.pivot.wtk.TableViewSortListener, org.apache.pivot.wtk.Visual
public class TerraTableViewHeaderSkin
- extends org.apache.pivot.wtk.skin.ComponentSkin
- implements org.apache.pivot.wtk.TableViewHeader.Skin, org.apache.pivot.wtk.TableViewHeaderListener, org.apache.pivot.wtk.TableViewColumnListener, org.apache.pivot.wtk.TableViewSortListener
Table view header skin.
| Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TableViewHeaderListener |
org.apache.pivot.wtk.TableViewHeaderListener.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.TableViewSortListener |
org.apache.pivot.wtk.TableViewSortListener.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 |
|
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 |
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 |
enabledChanged(org.apache.pivot.wtk.Component component)
|
Color |
getBackgroundColor()
|
int |
getBaseline(int width,
int height)
|
Color |
getBorderColor()
|
Color |
getColor()
|
boolean |
getColumnsResizable()
|
Color |
getDisabledBackgroundColor()
|
Color |
getDisabledBorderColor()
|
Color |
getDisabledColor()
|
Font |
getFont()
|
int |
getHeaderAt(int x)
|
org.apache.pivot.wtk.Bounds |
getHeaderBounds(int headerIndex)
|
boolean |
getHeadersPressable()
|
boolean |
getIncludeTrailingVerticalGridLine()
|
int |
getPreferredHeight(int width)
|
org.apache.pivot.wtk.Dimensions |
getPreferredSize()
|
int |
getPreferredWidth(int height)
|
void |
install(org.apache.pivot.wtk.Component component)
|
boolean |
isFocusable()
|
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)
|
void |
paint(Graphics2D graphics)
|
void |
setBackgroundColor(Color backgroundColor)
|
void |
setBackgroundColor(int backgroundColor)
|
void |
setBackgroundColor(String backgroundColor)
|
void |
setBorderColor(Color borderColor)
|
void |
setBorderColor(int borderColor)
|
void |
setBorderColor(String borderColor)
|
void |
setColor(Color color)
|
void |
setColor(int color)
|
void |
setColor(String color)
|
void |
setColumnsResizable(boolean columnsResizable)
|
void |
setDisabledBackgroundColor(Color disabledBackgroundColor)
|
void |
setDisabledBackgroundColor(int disabledBackgroundColor)
|
void |
setDisabledBackgroundColor(String disabledBackgroundColor)
|
void |
setDisabledBorderColor(Color disabledBorderColor)
|
void |
setDisabledBorderColor(int disabledBorderColor)
|
void |
setDisabledBorderColor(String disabledBorderColor)
|
void |
setDisabledColor(Color disabledColor)
|
void |
setDisabledColor(int disabledColor)
|
void |
setDisabledColor(String disabledColor)
|
void |
setFont(org.apache.pivot.collections.Dictionary<String,?> font)
|
void |
setFont(Font font)
|
void |
setFont(String font)
|
void |
setHeadersPressable(boolean headersPressable)
|
void |
setIncludeTrailingVerticalGridLine(boolean includeTrailingVerticalGridLine)
|
void |
sortAdded(org.apache.pivot.wtk.TableView tableView,
String columnName)
|
void |
sortChanged(org.apache.pivot.wtk.TableView tableView)
|
void |
sortModeChanged(org.apache.pivot.wtk.TableViewHeader tableViewHeader,
org.apache.pivot.wtk.TableViewHeader.SortMode previousSortMode)
|
void |
sortRemoved(org.apache.pivot.wtk.TableView tableView,
String columnName,
org.apache.pivot.wtk.SortDirection sortDirection)
|
void |
sortUpdated(org.apache.pivot.wtk.TableView tableView,
String columnName,
org.apache.pivot.wtk.SortDirection previousSortDirection)
|
void |
tableViewChanged(org.apache.pivot.wtk.TableViewHeader tableViewHeader,
org.apache.pivot.wtk.TableView previousTableView)
|
| Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, focusedChanged, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, isOpaque, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseOver, mouseWheel, 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 |
MINIMUM_COLUMN_WIDTH
public static final int MINIMUM_COLUMN_WIDTH
- See Also:
- Constant Field Values
TerraTableViewHeaderSkin
public TerraTableViewHeaderSkin()
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
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
getHeaderAt
public int getHeaderAt(int x)
- Specified by:
getHeaderAt in interface org.apache.pivot.wtk.TableViewHeader.Skin
getHeaderBounds
public org.apache.pivot.wtk.Bounds getHeaderBounds(int headerIndex)
- Specified by:
getHeaderBounds in interface org.apache.pivot.wtk.TableViewHeader.Skin
isFocusable
public boolean isFocusable()
- Specified by:
isFocusable in interface org.apache.pivot.wtk.Skin- Overrides:
isFocusable 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)
getDisabledBackgroundColor
public Color getDisabledBackgroundColor()
setDisabledBackgroundColor
public void setDisabledBackgroundColor(Color disabledBackgroundColor)
setDisabledBackgroundColor
public final void setDisabledBackgroundColor(String disabledBackgroundColor)
setDisabledBackgroundColor
public final void setDisabledBackgroundColor(int disabledBackgroundColor)
getBorderColor
public Color getBorderColor()
setBorderColor
public void setBorderColor(Color borderColor)
setBorderColor
public final void setBorderColor(String borderColor)
setBorderColor
public final void setBorderColor(int borderColor)
getDisabledBorderColor
public Color getDisabledBorderColor()
setDisabledBorderColor
public void setDisabledBorderColor(Color disabledBorderColor)
setDisabledBorderColor
public final void setDisabledBorderColor(String disabledBorderColor)
setDisabledBorderColor
public final void setDisabledBorderColor(int disabledBorderColor)
getHeadersPressable
public boolean getHeadersPressable()
setHeadersPressable
public void setHeadersPressable(boolean headersPressable)
getColumnsResizable
public boolean getColumnsResizable()
setColumnsResizable
public void setColumnsResizable(boolean columnsResizable)
getIncludeTrailingVerticalGridLine
public boolean getIncludeTrailingVerticalGridLine()
setIncludeTrailingVerticalGridLine
public void setIncludeTrailingVerticalGridLine(boolean includeTrailingVerticalGridLine)
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
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
tableViewChanged
public void tableViewChanged(org.apache.pivot.wtk.TableViewHeader tableViewHeader,
org.apache.pivot.wtk.TableView previousTableView)
- Specified by:
tableViewChanged in interface org.apache.pivot.wtk.TableViewHeaderListener
sortModeChanged
public void sortModeChanged(org.apache.pivot.wtk.TableViewHeader tableViewHeader,
org.apache.pivot.wtk.TableViewHeader.SortMode previousSortMode)
- Specified by:
sortModeChanged in interface org.apache.pivot.wtk.TableViewHeaderListener
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
sortAdded
public void sortAdded(org.apache.pivot.wtk.TableView tableView,
String columnName)
- Specified by:
sortAdded in interface org.apache.pivot.wtk.TableViewSortListener
sortUpdated
public void sortUpdated(org.apache.pivot.wtk.TableView tableView,
String columnName,
org.apache.pivot.wtk.SortDirection previousSortDirection)
- Specified by:
sortUpdated in interface org.apache.pivot.wtk.TableViewSortListener
sortRemoved
public void sortRemoved(org.apache.pivot.wtk.TableView tableView,
String columnName,
org.apache.pivot.wtk.SortDirection sortDirection)
- Specified by:
sortRemoved in interface org.apache.pivot.wtk.TableViewSortListener
sortChanged
public void sortChanged(org.apache.pivot.wtk.TableView tableView)
- Specified by:
sortChanged in interface org.apache.pivot.wtk.TableViewSortListener