public class ColumnIdentifier extends Object
A given column can contain one of the following data types:
Based upon the data type, the correct sort will be performed. See
CommonSortRoutines
for more details.
Constructor and Description |
---|
ColumnIdentifier()
Constructs a ColumnIdentifier object, and by default, sets the column
to be sortable.
|
ColumnIdentifier(boolean sortable)
Construct a ColumnIdentifier object, and set the column to be sortable
based upon specified value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAlphaNumeric()
Returns whether the given column data type is alpha numeric.
|
boolean |
isAscending()
Returns whether the current sort order is ascending or not.
|
boolean |
isBoolean()
Returns whether the given column data type is a Boolean.
|
boolean |
isDate()
Returns whether the given column data type is a Date.
|
boolean |
isDescending()
Returns whether the current sort order is descending or not.
|
boolean |
isNumeric()
Returns whether the given column data type is numeric.
|
boolean |
isSortable()
Returns whether column is sortable.
|
boolean |
isString()
Returns whether the given column data type is a String.
|
void |
setAscending()
Sets the current sort order to ascending.
|
void |
setColumnIdentifier(Class columnClass)
Sets the data type for the given column based upon the specified column
class.
|
void |
setDescending()
Sets the current sort order to descending.
|
void |
setIsAlphaNumeric()
Sets the column data type to alpha numeric.
|
void |
setIsBoolean()
Sets the column data type to Boolean.
|
void |
setIsDate()
Sets the column data type to Date.
|
void |
setIsNumeric()
Sets the column data type to numeric.
|
void |
setIsString()
Sets the column data type to String (which is the default).
|
void |
setSortable(boolean sortable)
Sets the column to be sortable, based upon the specified value.
|
public ColumnIdentifier()
public ColumnIdentifier(boolean sortable)
sortable
- true (sortable) or false (not sortable).public void setSortable(boolean sortable)
sortable
- true (sortable) or false (not sortable).public boolean isSortable()
public boolean isAscending()
public void setAscending()
public boolean isDescending()
public void setDescending()
public boolean isNumeric()
public void setIsNumeric()
public boolean isAlphaNumeric()
public void setIsAlphaNumeric()
public boolean isDate()
public void setIsDate()
public boolean isString()
public void setIsString()
public boolean isBoolean()
public void setIsBoolean()
public void setColumnIdentifier(Class columnClass)
See PFCTable
for details.
columnClass
- column class used to determine appropriate data type.Copyright © 2003, 2023, Oracle and/or its affiliates.