This is the object which manages the header of the JTable.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
This is the object which manages the header of the JTable. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
(->j-table-header)
(->j-table-header cm)
Constructor.
Constructs a JTableHeader which is initialized with cm as the column model. If cm is null this method will initialize the table header with a default TableColumnModel.
cm - the column model for the table - javax.swing.table.TableColumnModel
Constructor. Constructs a JTableHeader which is initialized with cm as the column model. If cm is null this method will initialize the table header with a default TableColumnModel. cm - the column model for the table - `javax.swing.table.TableColumnModel`
(column-added this e)
Invoked when a column is added to the table column model.
Application code will not use these methods explicitly, they are used internally by JTable.
e - the event received - javax.swing.event.TableColumnModelEvent
Invoked when a column is added to the table column model. Application code will not use these methods explicitly, they are used internally by JTable. e - the event received - `javax.swing.event.TableColumnModelEvent`
(column-at-point this point)
Returns the index of the column that point lies in, or -1 if it lies out of bounds.
point - java.awt.Point
returns: the index of the column that point lies in, or -1 if it
lies out of bounds - int
Returns the index of the column that point lies in, or -1 if it lies out of bounds. point - `java.awt.Point` returns: the index of the column that point lies in, or -1 if it lies out of bounds - `int`
(column-margin-changed this e)
Invoked when a column is moved due to a margin change.
Application code will not use these methods explicitly, they are used internally by JTable.
e - the event received - javax.swing.event.ChangeEvent
Invoked when a column is moved due to a margin change. Application code will not use these methods explicitly, they are used internally by JTable. e - the event received - `javax.swing.event.ChangeEvent`
(column-moved this e)
Invoked when a column is repositioned.
Application code will not use these methods explicitly, they are used internally by JTable.
e - the event received - javax.swing.event.TableColumnModelEvent
Invoked when a column is repositioned. Application code will not use these methods explicitly, they are used internally by JTable. e - the event received - `javax.swing.event.TableColumnModelEvent`
(column-removed this e)
Invoked when a column is removed from the table column model.
Application code will not use these methods explicitly, they are used internally by JTable.
e - the event received - javax.swing.event.TableColumnModelEvent
Invoked when a column is removed from the table column model. Application code will not use these methods explicitly, they are used internally by JTable. e - the event received - `javax.swing.event.TableColumnModelEvent`
(column-selection-changed this e)
Invoked when the selection model of the TableColumnModel is changed. This method currently has no effect (the header is not redrawn).
Application code will not use these methods explicitly, they are used internally by JTable.
e - the event received - javax.swing.event.ListSelectionEvent
Invoked when the selection model of the TableColumnModel is changed. This method currently has no effect (the header is not redrawn). Application code will not use these methods explicitly, they are used internally by JTable. e - the event received - `javax.swing.event.ListSelectionEvent`
(get-accessible-context this)
Gets the AccessibleContext associated with this JTableHeader. For JTableHeaders, the AccessibleContext takes the form of an AccessibleJTableHeader. A new AccessibleJTableHeader instance is created if necessary.
returns: an AccessibleJTableHeader that serves as the
AccessibleContext of this JTableHeader - javax.accessibility.AccessibleContext
Gets the AccessibleContext associated with this JTableHeader. For JTableHeaders, the AccessibleContext takes the form of an AccessibleJTableHeader. A new AccessibleJTableHeader instance is created if necessary. returns: an AccessibleJTableHeader that serves as the AccessibleContext of this JTableHeader - `javax.accessibility.AccessibleContext`
(get-column-model this)
Returns the TableColumnModel that contains all column information of this table header.
returns: the columnModel property - javax.swing.table.TableColumnModel
Returns the TableColumnModel that contains all column information of this table header. returns: the columnModel property - `javax.swing.table.TableColumnModel`
(get-default-renderer this)
Returns the default renderer used when no headerRenderer is defined by a TableColumn.
returns: the default renderer - javax.swing.table.TableCellRenderer
Returns the default renderer used when no headerRenderer is defined by a TableColumn. returns: the default renderer - `javax.swing.table.TableCellRenderer`
(get-dragged-column this)
Returns the the dragged column, if and only if, a drag is in process, otherwise returns null.
returns: the dragged column, if a drag is in
process, otherwise returns null - javax.swing.table.TableColumn
Returns the the dragged column, if and only if, a drag is in process, otherwise returns null. returns: the dragged column, if a drag is in process, otherwise returns null - `javax.swing.table.TableColumn`
(get-dragged-distance this)
Returns the column's horizontal distance from its original position, if and only if, a drag is in process. Otherwise, the the return value is meaningless.
returns: the column's horizontal distance from its original
position, if a drag is in process, otherwise the return
value is meaningless - int
Returns the column's horizontal distance from its original position, if and only if, a drag is in process. Otherwise, the the return value is meaningless. returns: the column's horizontal distance from its original position, if a drag is in process, otherwise the return value is meaningless - `int`
(get-header-rect this column)
Returns the rectangle containing the header tile at column. When the column parameter is out of bounds this method uses the same conventions as the JTable method getCellRect.
column - int
returns: the rectangle containing the header tile at column - java.awt.Rectangle
Returns the rectangle containing the header tile at column. When the column parameter is out of bounds this method uses the same conventions as the JTable method getCellRect. column - `int` returns: the rectangle containing the header tile at column - `java.awt.Rectangle`
(get-reordering-allowed? this)
Returns true if the user is allowed to rearrange columns by dragging their headers, false otherwise. The default is true. You can rearrange columns programmatically regardless of this setting.
returns: the reorderingAllowed property - boolean
Returns true if the user is allowed to rearrange columns by dragging their headers, false otherwise. The default is true. You can rearrange columns programmatically regardless of this setting. returns: the reorderingAllowed property - `boolean`
(get-resizing-allowed? this)
Returns true if the user is allowed to resize columns by dragging between their headers, false otherwise. The default is true. You can resize columns programmatically regardless of this setting.
returns: the resizingAllowed property - boolean
Returns true if the user is allowed to resize columns by dragging between their headers, false otherwise. The default is true. You can resize columns programmatically regardless of this setting. returns: the resizingAllowed property - `boolean`
(get-resizing-column this)
Returns the resizing column. If no column is being resized this method returns null.
returns: the resizing column, if a resize is in process, otherwise
returns null - javax.swing.table.TableColumn
Returns the resizing column. If no column is being resized this method returns null. returns: the resizing column, if a resize is in process, otherwise returns null - `javax.swing.table.TableColumn`
(get-table this)
Returns the table associated with this header.
returns: the table property - javax.swing.JTable
Returns the table associated with this header. returns: the table property - `javax.swing.JTable`
(get-tool-tip-text this event)
Allows the renderer's tips to be used if there is text set.
event - the location of the event identifies the proper renderer and, therefore, the proper tip - java.awt.event.MouseEvent
returns: the tool tip for this component - java.lang.String
Allows the renderer's tips to be used if there is text set. event - the location of the event identifies the proper renderer and, therefore, the proper tip - `java.awt.event.MouseEvent` returns: the tool tip for this component - `java.lang.String`
(get-ui this)
Returns the look and feel (L&F) object that renders this component.
returns: the TableHeaderUI object that renders this component - javax.swing.plaf.TableHeaderUI
Returns the look and feel (L&F) object that renders this component. returns: the TableHeaderUI object that renders this component - `javax.swing.plaf.TableHeaderUI`
(get-ui-class-id this)
Returns the suffix used to construct the name of the look and feel (L&F) class used to render this component.
returns: the string "TableHeaderUI" - java.lang.String
Returns the suffix used to construct the name of the look and feel (L&F) class used to render this component. returns: the string "TableHeaderUI" - `java.lang.String`
(get-update-table-in-real-time? this)
Obsolete as of Java 2 platform v1.3. Real time repaints, in response to column dragging or resizing, are now unconditional.
returns: boolean
Obsolete as of Java 2 platform v1.3. Real time repaints, in response to column dragging or resizing, are now unconditional. returns: `boolean`
(resize-and-repaint this)
Sizes the header and marks it as needing display. Equivalent to revalidate followed by repaint.
Sizes the header and marks it as needing display. Equivalent to revalidate followed by repaint.
(set-column-model this column-model)
Sets the column model for this table to newModel and registers for listener notifications from the new column model.
column-model - the new data source for this table - javax.swing.table.TableColumnModel
throws: java.lang.IllegalArgumentException - if newModel is null
Sets the column model for this table to newModel and registers for listener notifications from the new column model. column-model - the new data source for this table - `javax.swing.table.TableColumnModel` throws: java.lang.IllegalArgumentException - if newModel is null
(set-default-renderer this default-renderer)
Sets the default renderer to be used when no headerRenderer is defined by a TableColumn.
default-renderer - the default renderer - javax.swing.table.TableCellRenderer
Sets the default renderer to be used when no headerRenderer is defined by a TableColumn. default-renderer - the default renderer - `javax.swing.table.TableCellRenderer`
(set-dragged-column this a-column)
Sets the header's draggedColumn to aColumn.
Application code will not use this method explicitly, it is used internally by the column dragging mechanism.
a-column - the column being dragged, or null if no column is being dragged - javax.swing.table.TableColumn
Sets the header's draggedColumn to aColumn. Application code will not use this method explicitly, it is used internally by the column dragging mechanism. a-column - the column being dragged, or null if no column is being dragged - `javax.swing.table.TableColumn`
(set-dragged-distance this distance)
Sets the header's draggedDistance to distance.
distance - the distance dragged - int
Sets the header's draggedDistance to distance. distance - the distance dragged - `int`
(set-reordering-allowed this reordering-allowed)
Sets whether the user can drag column headers to reorder columns.
reordering-allowed - true if the table view should allow reordering; otherwise false - boolean
Sets whether the user can drag column headers to reorder columns. reordering-allowed - true if the table view should allow reordering; otherwise false - `boolean`
(set-resizing-allowed this resizing-allowed)
Sets whether the user can resize columns by dragging between headers.
resizing-allowed - true if table view should allow resizing - boolean
Sets whether the user can resize columns by dragging between headers. resizing-allowed - true if table view should allow resizing - `boolean`
(set-resizing-column this a-column)
Sets the header's resizingColumn to aColumn.
Application code will not use this method explicitly, it is used internally by the column sizing mechanism.
a-column - the column being resized, or null if no column is being resized - javax.swing.table.TableColumn
Sets the header's resizingColumn to aColumn. Application code will not use this method explicitly, it is used internally by the column sizing mechanism. a-column - the column being resized, or null if no column is being resized - `javax.swing.table.TableColumn`
(set-table this table)
Sets the table associated with this header.
table - the new table - javax.swing.JTable
Sets the table associated with this header. table - the new table - `javax.swing.JTable`
(set-ui this ui)
Sets the look and feel (L&F) object that renders this component.
ui - the TableHeaderUI L&F object - javax.swing.plaf.TableHeaderUI
Sets the look and feel (L&F) object that renders this component. ui - the TableHeaderUI L&F object - `javax.swing.plaf.TableHeaderUI`
(set-update-table-in-real-time this flag)
Obsolete as of Java 2 platform v1.3. Real time repaints, in response to column dragging or resizing, are now unconditional.
flag - boolean
Obsolete as of Java 2 platform v1.3. Real time repaints, in response to column dragging or resizing, are now unconditional. flag - `boolean`
(update-ui this)
Notification from the UIManager that the look and feel (L&F) has changed. Replaces the current UI object with the latest version from the UIManager.
Notification from the UIManager that the look and feel (L&F) has changed. Replaces the current UI object with the latest version from the UIManager.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close