|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.TablePaneSkin
public class TablePaneSkin
Table pane skin.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TablePaneListener |
---|
TablePaneListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TablePaneAttributeListener |
---|
TablePaneAttributeListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
---|
ContainerListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
---|
ContainerMouseListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
---|
ComponentListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
---|
ComponentStateListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
---|
ComponentMouseListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
---|
ComponentMouseButtonListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
---|
ComponentKeyListener.Adapter |
Constructor Summary | |
---|---|
TablePaneSkin()
|
Method Summary | |
---|---|
void |
cellInserted(TablePane.Row row,
int column)
Called when a cell has been inserted into a table pane. |
void |
cellsRemoved(TablePane.Row row,
int column,
Sequence<Component> removed)
Called when cell's have been removed from a table pane. |
void |
cellUpdated(TablePane.Row row,
int column,
Component previousComponent)
Called when a cell has been updated in a table pane. |
void |
columnHighlightedChanged(TablePane.Column column)
Called when a column's highlighted state has changed. |
void |
columnInserted(TablePane tablePane,
int index)
Called when a column has been inserted into a table pane. |
void |
columnSpanChanged(TablePane tablePane,
Component component,
int previousColumnSpan)
Called when a component's column span attribute has changed. |
void |
columnsRemoved(TablePane tablePane,
int index,
Sequence<TablePane.Column> columns)
Called when column's have been removed from a table pane. |
void |
columnWidthChanged(TablePane.Column column,
int previousWidth,
boolean previousRelative)
Called when a column's width has changed. |
int |
getBaseline(int width,
int height)
Returns the baseline for a given width and height. |
int |
getColumnAt(int x)
|
Bounds |
getColumnBounds(int column)
|
Color |
getHighlightBackgroundColor()
Gets the background color used to paint the highlighted rows and columns. |
Color |
getHorizontalGridColor()
Gets the color used to paint the table pane's horizontal grid lines. |
int |
getHorizontalSpacing()
Gets the spacing that will be applied between the table pane's columns during layout. |
Insets |
getPadding()
Returns the amount of space that will be reserved around the inside edges of the table pane. |
int |
getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint. |
Dimensions |
getPreferredSize()
Returns the visual's unconstrained preferred size. |
int |
getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint. |
int |
getRowAt(int y)
|
Bounds |
getRowBounds(int row)
|
boolean |
getShowHorizontalGridLines()
Tells whether or not horizontal grid lines will be painted in between the table pane's rows. |
boolean |
getShowVerticalGridLines()
Tells whether or not vertical grid lines will be painted in between the table pane's columns. |
Color |
getVerticalGridColor()
Gets the color used to paint the table pane's vertical grid lines. |
int |
getVerticalSpacing()
Gets the spacing that will be applied in between the table pane's rows during layout. |
void |
install(Component component)
Associates a skin with a component. |
void |
layout()
If the component on which the skin is installed is a container, lays out the container's children. |
void |
paint(Graphics2D graphics)
Paints the visual. |
void |
rowHeightChanged(TablePane.Row row,
int previousHeight,
boolean previousRelative)
Called when a row's height has changed. |
void |
rowHighlightedChanged(TablePane.Row row)
Called when a row's highlighted state has changed. |
void |
rowInserted(TablePane tablePane,
int index)
Called when a row has been inserted into a table pane. |
void |
rowSpanChanged(TablePane tablePane,
Component component,
int previousRowSpan)
Called when a component's row span attribute has changed. |
void |
rowsRemoved(TablePane tablePane,
int index,
Sequence<TablePane.Row> rows)
Called when rows have been removed from a table pane. |
void |
setHighlightBackgroundColor(Color highlightBackgroundColor)
Sets the background color used to paint the highlighted rows and columns. |
void |
setHighlightBackgroundColor(String highlightBackgroundColor)
Sets the background color used to paint the highlighted rows and columns. |
void |
setHorizontalGridColor(Color horizontalGridColor)
Sets the color used to paint the table pane's horizontal grid lines. |
void |
setHorizontalGridColor(String horizontalGridColor)
Sets the color used to paint the table pane's horizontal grid lines. |
void |
setHorizontalSpacing(int horizontalSpacing)
Sets the spacing that will be applied between the table pane's columns during layout. |
void |
setPadding(Dictionary<String,?> padding)
Sets the amount of space that will be reserved around the inside edges of the table pane. |
void |
setPadding(Insets padding)
Sets the amount of space that will be reserved around the inside edges of the table pane. |
void |
setPadding(int padding)
Sets the amount of space that will be reserved around the inside edges of the table pane. |
void |
setPadding(Number padding)
Sets the amount of space that will be reserved around the inside edges of the table pane. |
void |
setPadding(String padding)
Sets the amount of space that will be reserved around the inside edges of the table pane. |
void |
setShowHorizontalGridLines(boolean showHorizontalGridLines)
Sets whether or not horizontal grid lines will be painted in between the table pane's rows. |
void |
setShowVerticalGridLines(boolean showVerticalGridLines)
Sets whether or not vertical grid lines will be painted in between the table pane's columns. |
void |
setVerticalGridColor(Color verticalGridColor)
Sets the color used to paint the table pane's vertical grid lines. |
void |
setVerticalGridColor(String verticalGridColor)
Sets the color used to paint the table pane's vertical grid lines. |
void |
setVerticalSpacing(int verticalSpacing)
Sets the spacing that will be applied in between the table pane's rows during layout. |
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint |
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, keyPressed, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, 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 |
Constructor Detail |
---|
public TablePaneSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class ContainerSkin
component
- The component to which the skin is being attached.public int getPreferredWidth(int height)
ConstrainedVisual
getPreferredWidth
in interface ConstrainedVisual
getPreferredWidth
in class ContainerSkin
height
- The height by which to constrain the preferred width, or -1
for no constraint.public int getPreferredHeight(int width)
ConstrainedVisual
getPreferredHeight
in interface ConstrainedVisual
getPreferredHeight
in class ContainerSkin
width
- The width by which to constrain the preferred height, or -1
for no constraint.public Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize
in interface ConstrainedVisual
getPreferredSize
in class ComponentSkin
public int getBaseline(int width, int height)
ConstrainedVisual
getBaseline
in interface ConstrainedVisual
getBaseline
in class ComponentSkin
public void layout()
Skin
layout
in interface Skin
public void paint(Graphics2D graphics)
Visual
paint
in interface Visual
paint
in class ContainerSkin
graphics
- The graphics context in which to paint the visual.public Insets getPadding()
public void setPadding(Insets padding)
public final void setPadding(int padding)
public final void setPadding(Dictionary<String,?> padding)
padding
- A dictionary with keys in the set {left, top, bottom, right}.public final void setPadding(Number padding)
public final void setPadding(String padding)
padding
- A string containing an integer or a JSON dictionary with keys
left, top, bottom, and/or right.public int getHorizontalSpacing()
public void setHorizontalSpacing(int horizontalSpacing)
public int getVerticalSpacing()
public void setVerticalSpacing(int verticalSpacing)
public boolean getShowHorizontalGridLines()
public void setShowHorizontalGridLines(boolean showHorizontalGridLines)
public boolean getShowVerticalGridLines()
public void setShowVerticalGridLines(boolean showVerticalGridLines)
public Color getHorizontalGridColor()
public void setHorizontalGridColor(Color horizontalGridColor)
public final void setHorizontalGridColor(String horizontalGridColor)
horizontalGridColor
- Any of the
color values recognized by Pivot.public Color getVerticalGridColor()
public void setVerticalGridColor(Color verticalGridColor)
public final void setVerticalGridColor(String verticalGridColor)
verticalGridColor
- Any of the
color values recognized by Pivot.public Color getHighlightBackgroundColor()
public void setHighlightBackgroundColor(Color highlightBackgroundColor)
public final void setHighlightBackgroundColor(String highlightBackgroundColor)
highlightBackgroundColor
- Any of the
color values recognized by Pivot.public int getRowAt(int y)
getRowAt
in interface TablePane.Skin
public Bounds getRowBounds(int row)
getRowBounds
in interface TablePane.Skin
public int getColumnAt(int x)
getColumnAt
in interface TablePane.Skin
public Bounds getColumnBounds(int column)
getColumnBounds
in interface TablePane.Skin
public void rowInserted(TablePane tablePane, int index)
TablePaneListener
rowInserted
in interface TablePaneListener
public void rowsRemoved(TablePane tablePane, int index, Sequence<TablePane.Row> rows)
TablePaneListener
rowsRemoved
in interface TablePaneListener
public void rowHeightChanged(TablePane.Row row, int previousHeight, boolean previousRelative)
TablePaneListener
rowHeightChanged
in interface TablePaneListener
public void rowHighlightedChanged(TablePane.Row row)
TablePaneListener
rowHighlightedChanged
in interface TablePaneListener
public void columnInserted(TablePane tablePane, int index)
TablePaneListener
columnInserted
in interface TablePaneListener
public void columnsRemoved(TablePane tablePane, int index, Sequence<TablePane.Column> columns)
TablePaneListener
columnsRemoved
in interface TablePaneListener
public void columnWidthChanged(TablePane.Column column, int previousWidth, boolean previousRelative)
TablePaneListener
columnWidthChanged
in interface TablePaneListener
public void columnHighlightedChanged(TablePane.Column column)
TablePaneListener
columnHighlightedChanged
in interface TablePaneListener
public void cellInserted(TablePane.Row row, int column)
TablePaneListener
cellInserted
in interface TablePaneListener
public void cellsRemoved(TablePane.Row row, int column, Sequence<Component> removed)
TablePaneListener
cellsRemoved
in interface TablePaneListener
public void cellUpdated(TablePane.Row row, int column, Component previousComponent)
TablePaneListener
cellUpdated
in interface TablePaneListener
public void rowSpanChanged(TablePane tablePane, Component component, int previousRowSpan)
TablePaneAttributeListener
rowSpanChanged
in interface TablePaneAttributeListener
public void columnSpanChanged(TablePane tablePane, Component component, int previousColumnSpan)
TablePaneAttributeListener
columnSpanChanged
in interface TablePaneAttributeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |