|
|||||||||
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.ibm.as400.ui.framework.java.JGroupingTableHeader
public class JGroupingTableHeader extends JTableHeader
An extension of javax.swing.table.JTableHeader
that provides the ability
to define category headings. The headings typically span multiple columns and are
displayed above the normal column headings in a table.
Reordering of columns within a category heading is not currently supported. All column reordering is disabled.
Modifier and Type | Class and Description |
---|
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 |
Modifier and Type | Field and Description |
---|
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 |
Modifier and Type | Method and Description |
---|---|
TableHeaderUI |
getUI()
Returns the L&F object that renders this component. |
String |
getUIClassID()
Returns the name of the L&F class that renders this component. |
void |
resetGroups()
Clears all category headings. |
void |
setGroup(String groupName,
int numberOfColumns)
Defines a category heading. |
void |
setTable(JTable table)
Sets the header's partner table to aTable |
void |
setUI(GroupingTableHeaderUI ui)
Sets the L&F object that renders this component. |
void |
updateUI()
Notification from the UIManager that the L&F has changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void setGroup(String groupName, int numberOfColumns)
setGroup
multiple times.
groupName
- The text that will be displayed in the heading.numberOfColumns
- The number of table columns that this category
heading will span.
IllegalArgumentException
- If the number of columns specified
exceeds the total column count for the table, or if the total of columns specified on
multiple setGroup
calls exceeds the total column count
for the table.
public void resetGroups()
public TableHeaderUI getUI()
getUI
in class JTableHeader
public void setUI(GroupingTableHeaderUI ui)
ui
- the GroupingTableHeaderUI L&F objectUIDefaults.getUI(javax.swing.JComponent)
public void updateUI()
updateUI
in class JTableHeader
JComponent.updateUI()
public String getUIClassID()
getUIClassID
in class JTableHeader
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public void setTable(JTable table)
setTable
in class JTableHeader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |