Package com.jk.core.model.table
Class JKTableColumn
java.lang.Object
com.jk.core.model.table.JKTableColumn
The Class JKTableColumn.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the alias name.Gets the column class.Gets the column class name.int
Gets the column type.Gets the column type name.Gets the editor.Gets the formatter.Gets the human name.int
getIndex()
Gets the index.int
Gets the max length.getName()
Gets the name.int
Gets the preferred width.Gets the renderer.int
Gets the visible index.boolean
Checks if is editable.boolean
Checks if is numeric.boolean
Checks if is required.boolean
Checks if is visible.void
setAliasName
(String name) Sets the alias name.void
setColumnClass
(Class columnClass) Sets the column class.void
setColumnClassName
(String columnClassName) Sets the column class name.void
setColumnType
(int columnType) Sets the column type.void
setColumnTypeName
(String columnTypeName) Sets the column type name.void
setDefaultValue
(Object defaultValue) Sets the default value.void
setEditable
(boolean editable) Sets the editable.void
setEditor
(TableCellEditor cellEditor) Sets the editor.void
setFormatter
(Format formatter) Sets the formatter.void
setHumanName
(String humanName) Sets the human name.void
setIndex
(int index) Sets the index.void
setMaxLength
(int maxLength) Sets the max length.void
Sets the name.void
setPreferredWidth
(int preferredWidth) Sets the preferred width.void
setRenderer
(TableCellRenderer cellRenderer) Sets the renderer.void
setRequired
(boolean required) Sets the required.void
setVisible
(boolean visible) Sets the visible.void
setVisibleIndex
(int visibleIndex) Sets the visible index.
-
Constructor Details
-
JKTableColumn
public JKTableColumn()
-
-
Method Details
-
getColumnClass
Gets the column class.- Returns:
- the column class
-
getColumnClassName
Gets the column class name.- Returns:
- the column class name
-
getColumnType
public int getColumnType()Gets the column type.- Returns:
- the column type
-
getColumnTypeName
Gets the column type name.- Returns:
- the column type name
-
getEditor
Gets the editor.- Returns:
- the editor
-
getFormatter
Gets the formatter.- Returns:
- the formatter
-
getHumanName
Gets the human name.- Returns:
- the human name
-
getIndex
public int getIndex()Gets the index.- Returns:
- the index
-
getMaxLength
public int getMaxLength()Gets the max length.- Returns:
- the max length
-
getName
Gets the name.- Returns:
- the name
-
getPreferredWidth
public int getPreferredWidth()Gets the preferred width.- Returns:
- the preferred width
-
getRenderer
Gets the renderer.- Returns:
- the renderer
-
getVisibleIndex
public int getVisibleIndex()Gets the visible index.- Returns:
- the visible index
-
isEditable
public boolean isEditable()Checks if is editable.- Returns:
- true, if is editable
-
isNumeric
public boolean isNumeric()Checks if is numeric.- Returns:
- true, if is numeric
-
isRequired
public boolean isRequired()Checks if is required.- Returns:
- true, if is required
-
isVisible
public boolean isVisible()Checks if is visible.- Returns:
- true, if is visible
-
setColumnClass
Sets the column class.- Parameters:
columnClass
- the new column class
-
setColumnClassName
Sets the column class name.- Parameters:
columnClassName
- the new column class name- Throws:
ClassNotFoundException
- the class not found exception
-
setColumnType
public void setColumnType(int columnType) Sets the column type.- Parameters:
columnType
- the new column type
-
setColumnTypeName
Sets the column type name.- Parameters:
columnTypeName
- the new column type name
-
setDefaultValue
Sets the default value.- Parameters:
defaultValue
- the new default value
-
setEditable
public void setEditable(boolean editable) Sets the editable.- Parameters:
editable
- the new editable
-
setEditor
Sets the editor.- Parameters:
cellEditor
- the new editor
-
setFormatter
Sets the formatter.- Parameters:
formatter
- the new formatter
-
setHumanName
Sets the human name.- Parameters:
humanName
- the new human name
-
setIndex
public void setIndex(int index) Sets the index.- Parameters:
index
- the new index
-
setMaxLength
public void setMaxLength(int maxLength) Sets the max length.- Parameters:
maxLength
- the new max length
-
setName
Sets the name.- Parameters:
name
- the new name
-
setPreferredWidth
public void setPreferredWidth(int preferredWidth) Sets the preferred width.- Parameters:
preferredWidth
- the new preferred width
-
setRenderer
Sets the renderer.- Parameters:
cellRenderer
- the new renderer
-
setRequired
public void setRequired(boolean required) Sets the required.- Parameters:
required
- the new required
-
setVisible
public void setVisible(boolean visible) Sets the visible.- Parameters:
visible
- the new visible
-
setVisibleIndex
public void setVisibleIndex(int visibleIndex) Sets the visible index.- Parameters:
visibleIndex
- the new visible index
-
setAliasName
Sets the alias name.- Parameters:
name
- the new alias name
-
getAliasName
Gets the alias name.- Returns:
- the alias name
-