Package com.jk.core.model.table
Class JKTableColumn
java.lang.Object
com.jk.core.model.table.JKTableColumn
This class represents a table column configuration for use with a table
model.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method gets the alias name.This method gets the column class.This method gets the column class name.int
This method gets the column type numeric value.This method gets the column type name.This method gets the editor.This method gets the formatter.This method gets the human-readable name of the column.int
getIndex()
This method gets the column index.int
This method gets the max length.getName()
This method gets the column name.int
This method gets the preferred width.This method gets the renderer.int
This method gets the visible column index.boolean
This method checks if this column is editable as well as visible.boolean
This method checks if this column is numeric or not.boolean
This method checks if this column is required or not.boolean
This method checks if this column is visible or not.void
setAliasName
(String name) This method sets the alias name to the specified value.void
setColumnClass
(Class columnClass) This method sets the column class to the specified value.void
setColumnClassName
(String columnClassName) This method sets the column class name to the specified value.void
setColumnType
(int columnType) This method sets the column type to the specified value.void
setColumnTypeName
(String columnTypeName) This method sets the column type name to the specified value.void
setDefaultValue
(Object defaultValue) This method sets the default value to the specified value.void
setEditable
(boolean editable) This method sets the editable to the specified value.void
setEditor
(TableCellEditor cellEditor) This method sets the editor to the specified value.void
setFormatter
(Format formatter) This method sets the formatter to the specified value.void
setHumanName
(String humanName) This method sets the human-readable name to the specified value.void
setIndex
(int index) This method sets the index to the specified value.void
setMaxLength
(int maxLength) This method sets the max length to the specified value.void
This method sets the name to the specified value.void
setPreferredWidth
(int preferredWidth) This method sets the preferred width to the specified value.void
setRenderer
(TableCellRenderer cellRenderer) This method sets the renderer to the specified value.void
setRequired
(boolean required) This method indicated whether the column is required or not.void
setVisible
(boolean visible) This method indicated whether the column is visible or not.void
setVisibleIndex
(int visibleIndex) This method sets the visible index to the specified value.
-
Constructor Details
-
JKTableColumn
public JKTableColumn()
-
-
Method Details
-
getColumnClass
This method gets the column class.- Returns:
- the column class.
-
getColumnClassName
This method gets the column class name.- Returns:
- the column class name.
-
getColumnType
public int getColumnType()This method gets the column type numeric value.- Returns:
- the column type numeric value.
-
getColumnTypeName
This method gets the column type name.- Returns:
- the column type name.
-
getEditor
This method gets the editor.- Returns:
- the editor.
-
getFormatter
This method gets the formatter.- Returns:
- the formatter.
-
getHumanName
This method gets the human-readable name of the column.- Returns:
- the human-readable name of the column.
-
getIndex
public int getIndex()This method gets the column index.- Returns:
- the column index.
-
getMaxLength
public int getMaxLength()This method gets the max length.- Returns:
- the max length.
-
getName
This method gets the column name.- Returns:
- the column name.
-
getPreferredWidth
public int getPreferredWidth()This method gets the preferred width.- Returns:
- the preferred width.
-
getRenderer
This method gets the renderer.- Returns:
- the renderer.
-
getVisibleIndex
public int getVisibleIndex()This method gets the visible column index.- Returns:
- the visible column index.
-
isEditable
public boolean isEditable()This method checks if this column is editable as well as visible.- Returns:
- true, if the column is editable as well as visible, false otherwise.
-
isNumeric
public boolean isNumeric()This method checks if this column is numeric or not.- Returns:
- true, if it is numeric, false otherwise.
-
isRequired
public boolean isRequired()This method checks if this column is required or not.- Returns:
- true, if it is required, false otherwise.
-
isVisible
public boolean isVisible()This method checks if this column is visible or not.- Returns:
- true, if it is visible, false otherwise.
-
setColumnClass
This method sets the column class to the specified value.- Parameters:
columnClass
- Specifies the new column class.
-
setColumnClassName
This method sets the column class name to the specified value.- Parameters:
columnClassName
- Specifies the new column class name.- Throws:
ClassNotFoundException
- if the class is not found.
-
setColumnType
public void setColumnType(int columnType) This method sets the column type to the specified value.- Parameters:
columnType
- Specifies the new column type.
-
setColumnTypeName
This method sets the column type name to the specified value.- Parameters:
columnTypeName
- Specifies the new column type name.
-
setDefaultValue
This method sets the default value to the specified value.- Parameters:
defaultValue
- Specifies the new default value.
-
setEditable
public void setEditable(boolean editable) This method sets the editable to the specified value.- Parameters:
editable
- Specifies the new editable.
-
setEditor
This method sets the editor to the specified value.- Parameters:
cellEditor
- Specifies the new editor.
-
setFormatter
This method sets the formatter to the specified value.- Parameters:
formatter
- Specifies the new formatter.
-
setHumanName
This method sets the human-readable name to the specified value.- Parameters:
humanName
- Specifies the new human-readable name.
-
setIndex
public void setIndex(int index) This method sets the index to the specified value.- Parameters:
index
- Specifies the new index.
-
setMaxLength
public void setMaxLength(int maxLength) This method sets the max length to the specified value.- Parameters:
maxLength
- Specifies the new max length.
-
setName
This method sets the name to the specified value.- Parameters:
name
- Specifies the new name.
-
setPreferredWidth
public void setPreferredWidth(int preferredWidth) This method sets the preferred width to the specified value.- Parameters:
preferredWidth
- Specifies the new preferred width.
-
setRenderer
This method sets the renderer to the specified value.- Parameters:
cellRenderer
- Specifies the new renderer.
-
setRequired
public void setRequired(boolean required) This method indicated whether the column is required or not.- Parameters:
required
- Specifies whether the column is required or not.
-
setVisible
public void setVisible(boolean visible) This method indicated whether the column is visible or not.- Parameters:
visible
- Specifies whether the column is visible or not.
-
setVisibleIndex
public void setVisibleIndex(int visibleIndex) This method sets the visible index to the specified value.- Parameters:
visibleIndex
- Specifies the new visible index.
-
setAliasName
This method sets the alias name to the specified value.- Parameters:
name
- Specifies the new alias name.
-
getAliasName
This method gets the alias name.- Returns:
- the alias name.
-