| GNU Classpath (0.18) | ||
| Prev Class | Next Class | Frames | No Frames | |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr | |
java.lang.Objectjava.awt.Componentjava.awt.Containerjavax.swing.JComponentjavax.swing.table.JTableHeaderpublic class JTableHeaderextends JComponentNested Class Summary | |
protected class | |
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.BltBufferStrategy, Component.FlipBufferStrategy | |
Field Summary | |
protected TableColumnModel |
|
protected TableColumn |
|
protected int |
|
protected boolean |
|
protected boolean |
|
protected TableColumn |
|
protected JTable |
|
protected boolean |
|
Fields inherited from class javax.swing.JComponent | |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, accessibleContext, listenerList, ui | |
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 | |
| |
| |
Method Summary | |
int |
|
protected TableColumnModel |
|
protected TableCellRenderer |
|
AccessibleContext |
|
TableColumnModel |
|
TableCellRenderer |
|
TableColumn |
|
int |
|
Rectangle |
|
boolean |
|
boolean |
|
TableColumn |
|
JTable | |
TableHeaderUI |
|
String |
|
boolean |
|
boolean |
|
protected String |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void | |
void |
|
void |
|
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | |
public JTableHeader(TableColumnModel cm)
Creates a new header. Ifcmisnull, a new table column model is created by callingcreateDefaultColumnModel().
- Parameters:
cm- the table column model (nullpermitted).
public int columnAtPoint(Point point)
Returns the index of the column at the specified point.
- Parameters:
point- the point.
- Returns:
- The column index, or -1.
protected TableColumnModel createDefaultColumnModel()
Creates a default table column model.
- Returns:
- A default table column model.
protected TableCellRenderer createDefaultRenderer()
Creates a default renderer.
- Returns:
- A default renderer.
public AccessibleContext getAccessibleContext()
Get the value of theJTableHeaderproperty.
- Overrides:
- getAccessibleContext in interface JComponent
- Returns:
- The current value of the property
public TableColumnModel getColumnModel()
Get the value of thecolumnModelproperty.
- Returns:
- The current value of the property
public TableCellRenderer getDefaultRenderer()
Returns the default table cell renderer.
- Returns:
- The default table cell renderer.
public TableColumn getDraggedColumn()
Get the value of thedraggedColumnproperty.
- Returns:
- The current value of the property
public int getDraggedDistance()
Get the value of thedraggedDistanceproperty.
- Returns:
- The current value of the property
public boolean getReorderingAllowed()
Get the value of thereorderingAllowedproperty.
- Returns:
- The current value of the property
public boolean getResizingAllowed()
Get the value of theresizingAllowedproperty.
- Returns:
- The current value of the property
public TableColumn getResizingColumn()
Get the value of theresizingColumnproperty.
- Returns:
- The current value of the property
public JTable getTable()
Get the value of thetableproperty.
- Returns:
- The current value of the property
public String getUIClassID()
Get the value of the UIClassID property. This property should be a key in theUIDefaultstable managed byUIManager, the value of which is the name of a class to load for the component'sJComponent.uiproperty.
- Overrides:
- getUIClassID in interface JComponent
- Returns:
- A "symbolic" name which will map to a class to use for the component's UI, such as
"ComponentUI"
public boolean getUpdateTableInRealTime()
Get the value of theupdateTableInRealTimeproperty.
- Returns:
- The current value of the property
public boolean isOpaque()
Get the value of theJTableHeaderproperty.
- Overrides:
- isOpaque in interface JComponent
- Returns:
- The current value of the property
protected String paramString()
Return a string representation for this component, for use in debugging.
- Overrides:
- paramString in interface JComponent
- Returns:
- A string describing this component.
public void setColumnModel(TableColumnModel c)
Set the value of thecolumnModelproperty.
- Parameters:
c- The new value of the property
public void setDefaultRenderer(TableCellRenderer cellRenderer)
Sets the default table cell renderer.
- Parameters:
cellRenderer- the renderer.
public void setDraggedColumn(TableColumn d)
Set the value of thedraggedColumnproperty.
- Parameters:
d- The new value of the property
public void setDraggedDistance(int d)
Set the value of thedraggedDistanceproperty.
- Parameters:
d- The new value of the property
public void setOpaque(boolean o)
Set the value of theJTableHeaderproperty.
- Overrides:
- setOpaque in interface JComponent
- Parameters:
o- The new value of the property
public void setReorderingAllowed(boolean r)
Set the value of thereorderingAllowedproperty.
- Parameters:
r- The new value of the property
public void setResizingAllowed(boolean r)
Set the value of theresizingAllowedproperty.
- Parameters:
r- The new value of the property
public void setResizingColumn(TableColumn r)
Set the value of theresizingColumnproperty.
- Parameters:
r- The new value of the property
public void setTable(JTable t)
Set the value of thetableproperty.
- Parameters:
t- The new value of the property
public void setUpdateTableInRealTime(boolean u)
Set the value of theupdateTableInRealTimeproperty.
- Parameters:
u- The new value of the property
public void updateUI()
This method should be overridden in subclasses. In JComponent, the method does nothing. In subclasses, it should a UI delegate (corresponding to the symbolic name returned fromJComponent.getUIClassID()) from theUIManager, and callsJComponent.setUI(ComponentUI)with the new delegate.
- Overrides:
- updateUI in interface JComponent
| GNU Classpath (0.18) |