Liking cljdoc? Tell your friends :D

javax.swing.table.TableColumnModel

Defines the requirements for a table column model object suitable for use with JTable.

Defines the requirements for a table column model object suitable for
use with JTable.
raw docstring

add-columnclj

(add-column this a-column)

Appends aColumn to the end of the tableColumns array. This method posts a columnAdded event to its listeners.

a-column - the TableColumn to be added - javax.swing.table.TableColumn

Appends aColumn to the end of the
  tableColumns array.
  This method posts a columnAdded
  event to its listeners.

a-column - the TableColumn to be added - `javax.swing.table.TableColumn`
raw docstring

add-column-model-listenerclj

(add-column-model-listener this x)

Adds a listener for table column model events.

x - a TableColumnModelListener object - javax.swing.event.TableColumnModelListener

Adds a listener for table column model events.

x - a TableColumnModelListener object - `javax.swing.event.TableColumnModelListener`
raw docstring

get-columnclj

(get-column this column-index)

Returns the TableColumn object for the column at columnIndex.

column-index - the index of the desired column - int

returns: the TableColumn object for the column at columnIndex - javax.swing.table.TableColumn

Returns the TableColumn object for the column at
 columnIndex.

column-index - the index of the desired column - `int`

returns: the TableColumn object for
                          the column at columnIndex - `javax.swing.table.TableColumn`
raw docstring

get-column-countclj

(get-column-count this)

Returns the number of columns in the model.

returns: the number of columns in the model - int

Returns the number of columns in the model.

returns: the number of columns in the model - `int`
raw docstring

get-column-indexclj

(get-column-index this column-identifier)

Returns the index of the first column in the table whose identifier is equal to identifier, when compared using equals.

column-identifier - the identifier object - java.lang.Object

returns: the index of the first table column whose identifier is equal to identifier - int

throws: java.lang.IllegalArgumentException - if identifier is null, or no TableColumn has this identifier

Returns the index of the first column in the table
 whose identifier is equal to identifier,
 when compared using equals.

column-identifier - the identifier object - `java.lang.Object`

returns: the index of the first table column
                  whose identifier is equal to identifier - `int`

throws: java.lang.IllegalArgumentException - if identifier is null, or no TableColumn has this identifier
raw docstring

get-column-index-at-xclj

(get-column-index-at-x this x-position)

Returns the index of the column that lies on the horizontal point, xPosition; or -1 if it lies outside the any of the column's bounds.

In keeping with Swing's separable model architecture, a TableColumnModel does not know how the table columns actually appear on screen. The visual presentation of the columns is the responsibility of the view/controller object using this model (typically JTable). The view/controller need not display the columns sequentially from left to right. For example, columns could be displayed from right to left to accommodate a locale preference or some columns might be hidden at the request of the user. Because the model does not know how the columns are laid out on screen, the given xPosition should not be considered to be a coordinate in 2D graphics space. Instead, it should be considered to be a width from the start of the first column in the model. If the column index for a given X coordinate in 2D space is required, JTable.columnAtPoint can be used instead.

x-position - int

returns: the index of the column; or -1 if no column is found - int

Returns the index of the column that lies on the
 horizontal point, xPosition;
 or -1 if it lies outside the any of the column's bounds.

 In keeping with Swing's separable model architecture, a
 TableColumnModel does not know how the table columns actually appear on
 screen.  The visual presentation of the columns is the responsibility
 of the view/controller object using this model (typically JTable).  The
 view/controller need not display the columns sequentially from left to
 right.  For example, columns could be displayed from right to left to
 accommodate a locale preference or some columns might be hidden at the
 request of the user.  Because the model does not know how the columns
 are laid out on screen, the given xPosition should not be
 considered to be a coordinate in 2D graphics space.  Instead, it should
 be considered to be a width from the start of the first column in the
 model.  If the column index for a given X coordinate in 2D space is
 required, JTable.columnAtPoint can be used instead.

x-position - `int`

returns: the index of the column; or -1 if no column is found - `int`
raw docstring

get-column-marginclj

(get-column-margin this)

Returns the width between the cells in each column.

returns: the margin, in pixels, between the cells - int

Returns the width between the cells in each column.

returns: the margin, in pixels, between the cells - `int`
raw docstring

get-column-selection-allowed?clj

(get-column-selection-allowed? this)

Returns true if columns may be selected.

returns: true if columns may be selected - boolean

Returns true if columns may be selected.

returns: true if columns may be selected - `boolean`
raw docstring

get-columnsclj

(get-columns this)

Returns an Enumeration of all the columns in the model.

returns: an Enumeration of all the columns in the model - java.util.Enumeration<javax.swing.table.TableColumn>

Returns an Enumeration of all the columns in the model.

returns: an Enumeration of all the columns in the model - `java.util.Enumeration<javax.swing.table.TableColumn>`
raw docstring

get-selected-column-countclj

(get-selected-column-count this)

Returns the number of selected columns.

returns: the number of selected columns; or 0 if no columns are selected - int

Returns the number of selected columns.

returns: the number of selected columns; or 0 if no columns are selected - `int`
raw docstring

get-selected-columnsclj

(get-selected-columns this)

Returns an array of indicies of all selected columns.

returns: an array of integers containing the indicies of all selected columns; or an empty array if nothing is selected - int[]

Returns an array of indicies of all selected columns.

returns: an array of integers containing the indicies of all
          selected columns; or an empty array if nothing is selected - `int[]`
raw docstring

get-selection-modelclj

(get-selection-model this)

Returns the current selection model.

returns: a ListSelectionModel object - javax.swing.ListSelectionModel

Returns the current selection model.

returns: a ListSelectionModel object - `javax.swing.ListSelectionModel`
raw docstring

get-total-column-widthclj

(get-total-column-width this)

Returns the total width of all the columns.

returns: the total computed width of all columns - int

Returns the total width of all the columns.

returns: the total computed width of all columns - `int`
raw docstring

move-columnclj

(move-column this column-index new-index)

Moves the column and its header at columnIndex to newIndex. The old column at columnIndex will now be found at newIndex. The column that used to be at newIndex is shifted left or right to make room. This will not move any columns if columnIndex equals newIndex. This method posts a columnMoved event to its listeners.

column-index - the index of column to be moved - int new-index - index of the column's new location - int

throws: java.lang.IllegalArgumentException - if columnIndex or newIndex are not in the valid range

Moves the column and its header at columnIndex to
 newIndex.  The old column at columnIndex
 will now be found at newIndex.  The column that used
 to be at newIndex is shifted left or right
 to make room.  This will not move any columns if
 columnIndex equals newIndex.  This method
 posts a columnMoved event to its listeners.

column-index - the index of column to be moved - `int`
new-index - index of the column's new location - `int`

throws: java.lang.IllegalArgumentException - if columnIndex or newIndex are not in the valid range
raw docstring

remove-columnclj

(remove-column this column)

Deletes the TableColumn column from the tableColumns array. This method will do nothing if column is not in the table's column list. This method posts a columnRemoved event to its listeners.

column - the TableColumn to be removed - javax.swing.table.TableColumn

Deletes the TableColumn column from the
  tableColumns array.  This method will do nothing if
  column is not in the table's column list.
  This method posts a columnRemoved
  event to its listeners.

column - the TableColumn to be removed - `javax.swing.table.TableColumn`
raw docstring

remove-column-model-listenerclj

(remove-column-model-listener this x)

Removes a listener for table column model events.

x - a TableColumnModelListener object - javax.swing.event.TableColumnModelListener

Removes a listener for table column model events.

x - a TableColumnModelListener object - `javax.swing.event.TableColumnModelListener`
raw docstring

set-column-marginclj

(set-column-margin this new-margin)

Sets the TableColumn's column margin to newMargin. This method posts a columnMarginChanged event to its listeners.

new-margin - the width, in pixels, of the new column margins - int

Sets the TableColumn's column margin to
 newMargin.  This method posts
 a columnMarginChanged event to its listeners.

new-margin - the width, in pixels, of the new column margins - `int`
raw docstring

set-column-selection-allowedclj

(set-column-selection-allowed this flag)

Sets whether the columns in this model may be selected.

flag - true if columns may be selected; otherwise false - boolean

Sets whether the columns in this model may be selected.

flag - true if columns may be selected; otherwise false - `boolean`
raw docstring

set-selection-modelclj

(set-selection-model this new-model)

Sets the selection model.

new-model - a ListSelectionModel object - javax.swing.ListSelectionModel

Sets the selection model.

new-model - a ListSelectionModel object - `javax.swing.ListSelectionModel`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close