|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bigzip.plugin.ColumnInfo
Archive plugin's provide ColumnInfo objects to describe the extra column in the file table. The class defaults to a non-sortable, non-editable column that will use toString() on each cell to render it in a column with no heading.
Field Summary | |
static java.lang.String |
COMMON_CLASS_PROPERTY
|
static java.lang.String |
EDITABLE_PROPERTY
|
static java.lang.String |
EDITOR_PROPERTY
|
static java.lang.String |
HEADING_PROPERTY
|
static java.lang.String |
MAXIMUM_WIDTH_PROPERTY
|
static java.lang.String |
MINIMUM_WIDTH_PROPERTY
|
static java.lang.String |
PREFERRED_WIDTH_PROPERTY
|
static java.lang.String |
RENDERER_PROPERTY
|
static java.lang.String |
RESIZABLE_PROPERTY
|
static java.lang.String |
SORTABLE_PROPERTY
|
static java.lang.String |
SORTER_PROPERTY
|
Constructor Summary | |
ColumnInfo()
|
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener to object. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires a property change event to all the registered listeners. |
java.lang.Class |
getCommonClass()
Returns a reference to the most common class for the information to be displayed in the column. |
javax.swing.table.TableCellEditor |
getEditor()
|
java.lang.String |
getHeading()
|
int |
getMaximumWidth()
|
int |
getMinimumWidth()
|
int |
getPreferredWidth()
|
javax.swing.table.TableCellRenderer |
getRenderer()
|
DataSorter |
getSorter()
|
boolean |
isEditable()
|
boolean |
isResizable()
|
boolean |
isSortable()
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a registered listener from the list of listenered to be notified when a change occurs in the object. |
void |
setCommonClass(java.lang.Class commonClass)
Sets the most common class for the column. |
void |
setEditable(boolean editable)
Sets whether the cells in the column are editable. |
void |
setEditor(javax.swing.table.TableCellEditor editor)
Sets the editor to be used for editing cells in the column. |
void |
setHeading(java.lang.String heading)
Sets the label to be used in the heading for the column. |
void |
setMaximumWidth(int maximumWidth)
Sets the maximum width. |
void |
setMinimumWidth(int minimumWidth)
Sets the minimum width. |
void |
setPreferredWidth(int preferredWidth)
Sets the preferred width. |
void |
setRenderer(javax.swing.table.TableCellRenderer renderer)
Sets the renderer to be used for displaying information in the cells in a column. |
void |
setResizable(boolean resizable)
Sets whether the column can be resized by the user. |
void |
setSortable(boolean sortable)
Sets whether the column can be sorted. |
void |
setSorter(DataSorter sorter)
Sets the sorter to be used when the column is sorted. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COMMON_CLASS_PROPERTY
public static final java.lang.String EDITABLE_PROPERTY
public static final java.lang.String EDITOR_PROPERTY
public static final java.lang.String HEADING_PROPERTY
public static final java.lang.String MAXIMUM_WIDTH_PROPERTY
public static final java.lang.String MINIMUM_WIDTH_PROPERTY
public static final java.lang.String PREFERRED_WIDTH_PROPERTY
public static final java.lang.String RENDERER_PROPERTY
public static final java.lang.String RESIZABLE_PROPERTY
public static final java.lang.String SORTABLE_PROPERTY
public static final java.lang.String SORTER_PROPERTY
Constructor Detail |
public ColumnInfo()
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be notified.protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- The name of the property that has changed.oldValue
- The previous value of the property.newValue
- The new value of the property.public java.lang.Class getCommonClass()
public javax.swing.table.TableCellEditor getEditor()
isEditable()
public java.lang.String getHeading()
public int getMaximumWidth()
public int getMinimumWidth()
public int getPreferredWidth()
public javax.swing.table.TableCellRenderer getRenderer()
public DataSorter getSorter()
isSortable()
public boolean isEditable()
public boolean isResizable()
public boolean isSortable()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.public void setCommonClass(java.lang.Class commonClass)
commonClass
- The most common class.public void setEditable(boolean editable)
editable
- True if the cells are editable.public void setEditor(javax.swing.table.TableCellEditor editor)
columnClass
- The editor, null if the column is not editable or if the default
editor is to be used.public void setHeading(java.lang.String heading)
heading
- The column's heading.public void setMaximumWidth(int maximumWidth)
maxWidth
- The maximum width the column can become.public void setMinimumWidth(int minimumWidth)
minWidth
- The minimum width the column can become.public void setPreferredWidth(int preferredWidth)
preferredWidth
- The preferred column width.public void setRenderer(javax.swing.table.TableCellRenderer renderer)
renderer
- The cell renderer for the column or null if a default renderer
if to be used.public void setResizable(boolean resizable)
resizable
- True if the user can resize the column.public void setSortable(boolean sortable)
sortable
- True if the column is sortable.public void setSorter(DataSorter sorter)
sorter
- The column sorter or null if the default string collator is to
be used.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |