com.bigzip.plugin.support.table
Class DateColumn
java.lang.Object
|
+--com.bigzip.plugin.ColumnInfo
|
+--com.bigzip.plugin.support.table.DateColumn
- public class DateColumn
- extends ColumnInfo
The DateColumn displays a column of Date objects in the entry table.
By default, the column is rendered with left justification and the system
default layout for short dates and times. The column is sortable with the
default date collating order for the current locale.
Fields inherited from class com.bigzip.plugin.ColumnInfo |
COMMON_CLASS_PROPERTY, EDITABLE_PROPERTY, EDITOR_PROPERTY, HEADING_PROPERTY, MAXIMUM_WIDTH_PROPERTY, MINIMUM_WIDTH_PROPERTY, PREFERRED_WIDTH_PROPERTY, RENDERER_PROPERTY, RESIZABLE_PROPERTY, SORTABLE_PROPERTY, SORTER_PROPERTY |
Constructor Summary |
DateColumn()
Creates a new DateColumn with no column heading. |
DateColumn(java.lang.String heading)
Creates a new DateColumn with the specified heading. |
Method Summary |
java.text.DateFormat |
getDateFormater()
Retreives the current DateFormat object associated with this DateColumn. |
int |
getJustification()
Retreives the current justification setting for this column. |
void |
setDateFormater(java.text.DateFormat formater)
Associates a new DateFormat object with this DateColumn. |
void |
setJustification(int justification)
Sets the justification for the date in the column. |
Methods inherited from class com.bigzip.plugin.ColumnInfo |
addPropertyChangeListener, firePropertyChange, getCommonClass, getEditor, getHeading, getMaximumWidth, getMinimumWidth, getPreferredWidth, getRenderer, getSorter, isEditable, isResizable, isSortable, removePropertyChangeListener, setCommonClass, setEditable, setEditor, setHeading, setMaximumWidth, setMinimumWidth, setPreferredWidth, setRenderer, setResizable, setSortable, setSorter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateColumn
public DateColumn()
- Creates a new DateColumn with no column heading.
DateColumn
public DateColumn(java.lang.String heading)
- Creates a new DateColumn with the specified heading.
- Parameters:
heading
- The string to use as the heading for this column.
getDateFormater
public java.text.DateFormat getDateFormater()
- Retreives the current DateFormat object associated with this DateColumn.
- Returns:
- The DateFormat object used to render the dates in the column.
getJustification
public int getJustification()
- Retreives the current justification setting for this column.
- See Also:
javax.swing.JLabel#getJustification
setDateFormater
public void setDateFormater(java.text.DateFormat formater)
- Associates a new DateFormat object with this DateColumn.
- Parameters:
formater
- The DateFormat object to be used to render the dates in
this DateColumn.
setJustification
public void setJustification(int justification)
- Sets the justification for the date in the column.
- See Also:
javax.swing.JLabel#setJustification