|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.table.TableColumn
com.taursys.swing.MTableColumn
MTableColumn is a TableColumn for use with an MTable. This column contains additional information for binding and formatting. The following special actions take place when adding this MTableColumn to an MTable:
| Field Summary |
| Fields inherited from class javax.swing.table.TableColumn |
CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, COLUMN_WIDTH_PROPERTY, HEADER_RENDERER_PROPERTY, HEADER_VALUE_PROPERTY, headerRenderer, headerValue, identifier, isResizable, maxWidth, minWidth, modelIndex, resizedPostingDisableCount, width |
| Constructor Summary | |
MTableColumn()
Constructs a new MTableColumn |
|
| Method Summary | |
java.lang.String |
getDisplayHeading()
Get the Heading to display for this MTableColumn. |
java.text.Format |
getFormat()
Get the Format used for rendering this column. |
java.lang.String |
getFormatPattern()
Get the Format pattern used for rendering this column. |
int |
getHorizontalAlignment()
Get the horizontal alignment of the icon and text for the cell. |
MTableCellRenderer |
getMTableCellRenderer()
Get the CellRenderer and cast it as an MTableCellRenderer (convience method). |
java.lang.String |
getPropertyName()
Get the propertyName for the corresponding columnName in the MTableModel. |
ValueHolder |
getValueHolder()
Get the valueHolder for this MTableColumn. |
void |
setDisplayHeading(java.lang.String newDisplayHeading)
Set the Heading to display for this MTableColumn. |
void |
setFormat(java.text.Format format)
Set the Format used for rendering this column. |
void |
setFormatPattern(java.lang.String newPattern)
Set the Format pattern used for rendering this column. |
void |
setHorizontalAlignment(int alignment)
Set the horizontal alignment of the icon and text for the cell. |
void |
setPropertyName(java.lang.String newPropertyName)
Set the propertyName for the corresponding columnName in the MTableModel. |
void |
setValueHolder(ValueHolder newValueHolder)
Set the valueHolder for this MTableColumn. |
| Methods inherited from class javax.swing.table.TableColumn |
addPropertyChangeListener, createDefaultHeaderRenderer, disableResizedPosting, enableResizedPosting, getCellEditor, getCellRenderer, getHeaderRenderer, getHeaderValue, getIdentifier, getMaxWidth, getMinWidth, getModelIndex, getPreferredWidth, getPropertyChangeListeners, getResizable, getWidth, removePropertyChangeListener, setCellEditor, setCellRenderer, setHeaderRenderer, setHeaderValue, setIdentifier, setMaxWidth, setMinWidth, setModelIndex, setPreferredWidth, setResizable, setWidth, sizeWidthToFit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MTableColumn()
| Method Detail |
public MTableCellRenderer getMTableCellRenderer()
public void setFormat(java.text.Format format)
java.text.Format. The format is passed to the underlying
MTableCellRenderer to be used during rendition.
format - the Format used for rendering this columnpublic java.text.Format getFormat()
java.text.Format. The format is passed to the underlying
MTableCellRenderer to be used during rendition.
public void setFormatPattern(java.lang.String newPattern)
Format. The format pattern
is passed to the underlying MTableCellRenderer to be used during rendition.
newPattern - the Format pattern used for rendering this columnpublic java.lang.String getFormatPattern()
Format. The format pattern
is passed to the underlying MTableCellRenderer to be used during rendition.
public void setHorizontalAlignment(int alignment)
alignment - - One of the following constants defined in
SwingConstants: LEFT, CENTER (the default for image-only labels),
RIGHT, LEADING (the default for text-only labels) or TRAILING.public int getHorizontalAlignment()
public void setPropertyName(java.lang.String newPropertyName)
newPropertyName - the propertyName for the corresponding columnName in the MTableModel.public java.lang.String getPropertyName()
public void setValueHolder(ValueHolder newValueHolder)
newValueHolder - the valueHolder for this MTableColumn.public ValueHolder getValueHolder()
public void setDisplayHeading(java.lang.String newDisplayHeading)
setHeaderValue with a String value rather than Object value.
newDisplayHeading - the Heading to display for this MTableColumnpublic java.lang.String getDisplayHeading()
getHeaderValue returning a String value rather than Object value.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||