GNU Classpath (0.17) | ||
Prev Class | Next Class | Frames | No Frames | |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.table.JTableHeader
public class JTableHeader
extends JComponent
Nested 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. Ifcm
isnull
, a new table column model is created by callingcreateDefaultColumnModel()
.
- Parameters:
cm
- the table column model (null
permitted).
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 theJTableHeader
property.
- Overrides:
- getAccessibleContext in interface JComponent
- Returns:
- The current value of the property
public TableColumnModel getColumnModel()
Get the value of thecolumnModel
property.
- 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 thedraggedColumn
property.
- Returns:
- The current value of the property
public int getDraggedDistance()
Get the value of thedraggedDistance
property.
- Returns:
- The current value of the property
public boolean getReorderingAllowed()
Get the value of thereorderingAllowed
property.
- Returns:
- The current value of the property
public boolean getResizingAllowed()
Get the value of theresizingAllowed
property.
- Returns:
- The current value of the property
public TableColumn getResizingColumn()
Get the value of theresizingColumn
property.
- Returns:
- The current value of the property
public JTable getTable()
Get the value of thetable
property.
- Returns:
- The current value of the property
public String getUIClassID()
Get the value of the UIClassID property. This property should be a key in theUIDefaults
table managed byUIManager
, the value of which is the name of a class to load for the component'sui
property.
- 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 theupdateTableInRealTime
property.
- Returns:
- The current value of the property
public boolean isOpaque()
Get the value of theJTableHeader
property.
- 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 thecolumnModel
property.
- 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 thedraggedColumn
property.
- Parameters:
d
- The new value of the property
public void setDraggedDistance(int d)
Set the value of thedraggedDistance
property.
- Parameters:
d
- The new value of the property
public void setOpaque(boolean o)
Set the value of theJTableHeader
property.
- Overrides:
- setOpaque in interface JComponent
- Parameters:
o
- The new value of the property
public void setReorderingAllowed(boolean r)
Set the value of thereorderingAllowed
property.
- Parameters:
r
- The new value of the property
public void setResizingAllowed(boolean r)
Set the value of theresizingAllowed
property.
- Parameters:
r
- The new value of the property
public void setResizingColumn(TableColumn r)
Set the value of theresizingColumn
property.
- Parameters:
r
- The new value of the property
public void setTable(JTable t)
Set the value of thetable
property.
- Parameters:
t
- The new value of the property
public void setUpdateTableInRealTime(boolean u)
Set the value of theupdateTableInRealTime
property.
- 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 fromgetUIClassID
) from theUIManager
, and callssetUI
with the new delegate.
- Overrides:
- updateUI in interface JComponent
GNU Classpath (0.17) |