|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.table.JTableHeader com.jidesoft.grid.DraggingTableHeader com.jidesoft.grid.CellStyleTableHeader com.jidesoft.grid.SortableTableHeader com.jidesoft.grid.EditableTableHeader com.jidesoft.grid.AutoFilterTableHeader com.jidesoft.grid.GroupTableHeader
public class GroupTableHeader
The GroupTableHeader allows the user to (un)group columns by dragging them with the mouse.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.table.JTableHeader |
---|
JTableHeader.AccessibleJTableHeader |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
PROPERTY_CONNECTION_LINE_VISIBLE
|
static String |
PROPERTY_GROUP_AREA_BACKGROUND
|
static String |
PROPERTY_GROUP_AREA_FOREGROUND
|
static String |
PROPERTY_GROUP_AREA_LABEL_FONT
|
static String |
PROPERTY_GROUP_HEADER_ENABLED
|
static String |
PROPERTY_MARGIN
|
static String |
PROPERTY_VERTICAL_INDENTION
|
Fields inherited from class com.jidesoft.grid.EditableTableHeader |
---|
_cellEditor, _defaultEditor, _editingColumn, _editorComp, HEADER_ROW |
Fields inherited from class com.jidesoft.grid.SortableTableHeader |
---|
PROPERTY_SHOW_SORT_ARROW |
Fields inherited from class com.jidesoft.grid.CellStyleTableHeader |
---|
_cellStyleList |
Fields inherited from class com.jidesoft.grid.DraggingTableHeader |
---|
PROPERTY_DRAGGED_COLUMN, PROPERTY_DRAGGED_DISTANCE, PROPERTY_RESIZING_COLUMN |
Fields inherited from class javax.swing.table.JTableHeader |
---|
columnModel, draggedColumn, draggedDistance, reorderingAllowed, resizingAllowed, resizingColumn, table, updateTableInRealTime |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GroupTableHeader(JTable table)
The constructor. |
Method Summary | |
---|---|
int |
columnAtPoint(Point point)
|
protected GroupTableInputListener |
createGroupTableInputListener()
Create the mouse and key listener for DnD feature. |
int |
getActualHeaderHeight()
Get the height of the real header. |
int |
getActualHeaderY()
Get the start Y of the real header. |
String |
getActualUIClassID()
Returns a string that specifies the name of the L&F class that renders this component. |
Color |
getGroupAreaBackground()
Gets the background color of the group area. |
Color |
getGroupAreaForeground()
Gets the foreground color of the group area. |
Rectangle |
getGroupedHeaderRect(int groupIndex)
Get the rectangle for the group column |
Rectangle |
getHeaderRect(int column)
|
Font |
getLabelFont()
Gets the font of the label while there is no grouping column. |
int |
getLabelHeight()
Gets the default label height if there is no grouped column. |
Insets |
getMargin()
Get group header margin. |
String |
getResourceString(String key)
Gets the resource string used in GroupTableHeader. |
int |
getRollOverGroupColumn()
|
String |
getUIDelegateClassID()
Returns a string that specifies the name of the UIDelegate class that paints this component. |
int |
getVerticalIndention()
Get the indent to display next grouped column. |
int |
groupedColumnAtPoint(Point point)
Returns the grouped column index at the specified point or -1 if no such column. |
boolean |
isConnectionLineVisible()
Get the flag indicating if the connect lines between grouped columns are visible. |
boolean |
isGroupHeaderEnabled()
Get the flag indicating if the group header is enabled. |
protected void |
paintComponent(Graphics g)
Overrides to paint the sort arrows on table header. |
void |
setComponentOrientation(ComponentOrientation o)
|
void |
setConnectionLineVisible(boolean connectionLineVisible)
Set the flag indicating if the connect lines between grouped columns are visible. |
void |
setGroupAreaBackground(Color groupAreaBackground)
Sets the background color of the group area. |
void |
setGroupAreaForeground(Color groupAreaForeground)
Sets the foreground color of the group area. |
void |
setGroupedWidths(int[] widths)
|
void |
setGroupHeaderEnabled(boolean groupHeaderEnabled)
Set the flag indicating if the group header is enabled. |
void |
setLabelFont(Font labelFont)
Sets the font of the label while there is no grouping column. |
void |
setLabelHeight(int labelHeight)
Sets the default label height if there is no grouped column. |
void |
setMargin(Insets margin)
Set the group header margin. |
void |
setTable(JTable table)
|
void |
setVerticalIndention(int verticalIndention)
Set the indent to display next grouped column. |
protected int |
toggleSortOrder(int sorting)
Toggle between sort orders By default cycles through ascending and descending. |
Methods inherited from class com.jidesoft.grid.EditableTableHeader |
---|
cancelEditing, customizeEditorComponent, editCellAt, editCellAt, editingCanceled, getCellEditor, getCellEditor, getDefaultEditor, getEditingColumn, getEditorComponent, isClickToStartEditing, isEditing, prepareEditor, removeEditor, removeNotify, resizeAndRepaint, setCellEditor, setClickToStartEditing, setDefaultEditor, setDraggedColumn, setEditingColumn, setRolloverEnabled, stopEditing |
Methods inherited from class com.jidesoft.grid.SortableTableHeader |
---|
createSortableTableHeaderCellDecorator, createSortIcon, getSortableTableHeaderCellDecorator, isShowSortArrow, paintSortArrow, paintSortArrows |
Methods inherited from class com.jidesoft.grid.DraggingTableHeader |
---|
getPreferredSize, setDraggedDistance, setResizingColumn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_MARGIN
public static final String PROPERTY_VERTICAL_INDENTION
public static final String PROPERTY_CONNECTION_LINE_VISIBLE
public static final String PROPERTY_GROUP_HEADER_ENABLED
public static final String PROPERTY_GROUP_AREA_BACKGROUND
public static final String PROPERTY_GROUP_AREA_FOREGROUND
public static final String PROPERTY_GROUP_AREA_LABEL_FONT
Constructor Detail |
---|
public GroupTableHeader(JTable table)
table
- the group table to install this header.Method Detail |
---|
public String getActualUIClassID()
SortableTableHeader
getActualUIClassID
in class AutoFilterTableHeader
public String getUIDelegateClassID()
getUIDelegateClassID
in class AutoFilterTableHeader
public void setTable(JTable table)
setTable
in class AutoFilterTableHeader
public void setComponentOrientation(ComponentOrientation o)
setComponentOrientation
in class Component
public Color getGroupAreaBackground()
setGroupAreaBackground(java.awt.Color)
public void setGroupAreaBackground(Color groupAreaBackground)
groupAreaBackground
- the backgroundpublic Color getGroupAreaForeground()
setGroupAreaForeground(java.awt.Color)
public void setGroupAreaForeground(Color groupAreaForeground)
groupAreaForeground
- the foregroundprotected void paintComponent(Graphics g)
SortableTableHeader
paintComponent
in class SortableTableHeader
g
- the Graphics objectpublic int getActualHeaderHeight()
public int getActualHeaderY()
getActualHeaderY
in class CellStyleTableHeader
public Rectangle getHeaderRect(int column)
getHeaderRect
in class JTableHeader
public int columnAtPoint(Point point)
columnAtPoint
in class JTableHeader
public int groupedColumnAtPoint(Point point)
point
- the point
public Rectangle getGroupedHeaderRect(int groupIndex)
groupIndex
- the index of the group column
public void setGroupedWidths(int[] widths)
protected GroupTableInputListener createGroupTableInputListener()
public void setMargin(Insets margin)
margin
- the marginpublic Insets getMargin()
(java.awt.Insets)
public int getRollOverGroupColumn()
protected int toggleSortOrder(int sorting)
sorting
- current sort order
public String getResourceString(String key)
key
- the resource key
public int getVerticalIndention()
public void setVerticalIndention(int verticalIndention)
verticalIndention
- the indentionpublic boolean isConnectionLineVisible()
public void setConnectionLineVisible(boolean connectionLineVisible)
connectionLineVisible
- the flagpublic boolean isGroupHeaderEnabled()
public void setGroupHeaderEnabled(boolean groupHeaderEnabled)
groupHeaderEnabled
- the flagpublic int getLabelHeight()
public void setLabelHeight(int labelHeight)
labelHeight
- the height of the labelpublic Font getLabelFont()
setLabelFont(java.awt.Font)
public void setLabelFont(Font labelFont)
labelFont
- the font
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |