com.bigzip.plugin.support.table
Class NumberColumn
java.lang.Object
|
+--com.bigzip.plugin.ColumnInfo
|
+--com.bigzip.plugin.support.table.NumberColumn
- public class NumberColumn
- extends ColumnInfo
The NumberColumn displays a column of whole numbers in the entry table. By
default, the column is rendered with right justification and the column is
sortable.
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 |
NumberColumn()
Creates a new NumberColumn with no column heading. |
NumberColumn(java.lang.String heading)
Creates a new NumberColumn with the specified heading. |
Method Summary |
int |
getJustification()
Retreives the current justification setting for this column. |
java.text.NumberFormat |
getNumberFormater()
Retreives the current NumberFormat object associated with this column. |
void |
setJustification(int justification)
Sets the justification for the numbers in the column. |
void |
setNumberFormater(java.text.NumberFormat numberFormater)
Associates a new NumberFormat object with this 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 |
NumberColumn
public NumberColumn()
- Creates a new NumberColumn with no column heading.
NumberColumn
public NumberColumn(java.lang.String heading)
- Creates a new NumberColumn with the specified heading.
- Parameters:
heading
- The string to use as the heading for this column.
getJustification
public int getJustification()
- Retreives the current justification setting for this column.
- See Also:
javax.swing.JLabel#getJustification
getNumberFormater
public java.text.NumberFormat getNumberFormater()
- Retreives the current NumberFormat object associated with this column.
- Returns:
- The NumberFormat object used to format the numbers in the column.
setJustification
public void setJustification(int justification)
- Sets the justification for the numbers in the column.
- See Also:
javax.swing.JLabel#setJustification
setNumberFormater
public void setNumberFormater(java.text.NumberFormat numberFormater)
- Associates a new NumberFormat object with this column.
- Parameters:
formater
- The NumberFormat object to be used to format the numbers
in this column.