|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.TableColumn com.ibm.etools.iseries.ui.JFormattedTableColumn
public class JFormattedTableColumn
JFormattedTableColumn extends javax.swing.table.TableColumn and implements com.ibm.etools.iseries.ui.JFormattedComponent. It allows you to specify a FieldModel for the data presented in the column. The FieldModel is used to format and verify the AS/400 data. JFormattedTableColumn supports editcode, editword, formatting , and verification capabilities for AS/400 data. To allow for these capabilities, you should specify the column's cellEditor and cellRenderer as one of the following JFormatted celleditors or renderers: JFormattedTextFieldCellEditor, JFormattedComboBoxCellEditor, or JFormattedLabelCellRenderer. You can also specify whether the column is editable or not.
FieldModel
,
JFormattedTable
,
JFormattedComponent
,
TableColumn
,
Serialized FormField Summary | |
---|---|
static String |
Copyright
|
protected PropertyChangeSupport |
propertyChange
|
protected VetoableChangeSupport |
vetoPropertyChange
|
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 |
Fields inherited from interface com.ibm.etools.iseries.ui.JFormattedComponent |
---|
copyright |
Constructor Summary | |
---|---|
JFormattedTableColumn()
Creates a new JFormattedTableColumn. |
|
JFormattedTableColumn(FieldModel fm)
Creates a new JFormattedTableColumn with the specified field model. |
|
JFormattedTableColumn(int modelIndex)
Creates a new JFormattedTableColumn with the specified model index. |
|
JFormattedTableColumn(int modelIndex,
FieldModel fm)
Creates a new JFormattedTableColumn with the specified model index and field model. |
|
JFormattedTableColumn(int modelIndex,
int width)
Creates a new JFormattedTableColumn with the specified model index and width. |
|
JFormattedTableColumn(int modelIndex,
int width,
FieldModel fm)
Creates a new JFormattedTableColumn with the specified model index,width and FieldModel. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list for all properties. |
void |
addVetoableChangeListener(VetoableChangeListener listener)
Adds a VetoableChangeListener to the listener list for all constrained properties. |
Object |
clone()
Clones a JFormattedTableColumn. |
static String |
Copyright()
Copyright notice. |
void |
firePropertyChange(PropertyChangeEvent evt)
Fires an existing PropertyChangeEvent to any registered listeners. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Reports a bound property change. |
void |
fireVetoableChange(PropertyChangeEvent evt)
Fires a vetoable property update to any registered listeners. |
boolean |
getCellEditable()
Returns true/false if the cells of current table column are editable/noneditable. |
TableCellEditor |
getCellEditor()
Gets the TableCellEditor component of the column. |
TableCellRenderer |
getCellRenderer()
Gets the TableCellRenderer component of the column. |
TableCellEditor |
getColumnCellEditor()
Returns the columnCellEditor. |
Attributes |
getEditmaskAttributes()
Returns the editmaskAttributes |
EditmaskViewInterface |
getEditmaskViewUI()
Returns editmaskViewUI property. |
FieldModel |
getFieldModel()
Gets the FieldModel of the current column. |
protected PropertyChangeSupport |
getPropertyChange()
Gets the propertyChange field. |
protected VetoableChangeSupport |
getVetoPropertyChange()
Gets the vetoPropertyChange field. |
boolean |
hasListeners(String propertyName)
Returns true if there is any listener for the specfied property. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener form listener list. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Removes a VetoableChangeListener from the listener list. |
void |
setCellEditable(boolean editable)
Sets the cells of the column are editable or not. |
void |
setCellEditor(TableCellEditor aTableCellEditor)
Sets TableCellEditor of the column. |
void |
setCellRenderer(TableCellRenderer aTableCellRenderer)
Sets TableCellRenderer of the column. |
void |
setColumnCellEditor(TableCellEditor aTableCellEditor)
Sets the columnCellEditor of the current column. |
void |
setEditmaskAttributes(Attributes aEditmaskAttributes)
Sets the editmaskAttributes property (com.ibm.etools.iseries.ui.Attributes) value. |
void |
setEditmaskViewUI(EditmaskViewInterface aEditmaskViewInterface)
Sets the editmaskViewUI property value. |
void |
setFieldModel(FieldModel aFieldModel)
Sets the field model of the column. |
Methods inherited from class javax.swing.table.TableColumn |
---|
createDefaultHeaderRenderer, disableResizedPosting, enableResizedPosting, getHeaderRenderer, getHeaderValue, getIdentifier, getMaxWidth, getMinWidth, getModelIndex, getPreferredWidth, getPropertyChangeListeners, getResizable, getWidth, setHeaderRenderer, setHeaderValue, setIdentifier, setMaxWidth, setMinWidth, setModelIndex, setPreferredWidth, setResizable, setWidth, sizeWidthToFit |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
protected transient PropertyChangeSupport propertyChange
protected transient VetoableChangeSupport vetoPropertyChange
Constructor Detail |
---|
public JFormattedTableColumn()
public JFormattedTableColumn(int modelIndex)
modelIndex
- The index of the column in the data model.public JFormattedTableColumn(int modelIndex, int width)
modelIndex
- The index of the column in the data model.width
- The width of the column.public JFormattedTableColumn(int modelIndex, int width, FieldModel fm)
modelIndex
- The index of the column in the data model.width
- The width of the column.fm
- The field model for formatting and validating.public JFormattedTableColumn(int modelIndex, FieldModel fm)
modelIndex
- The index of the column in the data model.fm
- The field model for formatting and validating.public JFormattedTableColumn(FieldModel fm)
fm
- The field model for formatting and validating of this column.Method Detail |
---|
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in class TableColumn
listener
- the PropertyChangeListener to be addedpublic void addVetoableChangeListener(VetoableChangeListener listener)
listener
- the VetoableChangeListener to be addedpublic Object clone()
clone
in class Object
public static String Copyright()
public void firePropertyChange(PropertyChangeEvent evt)
evt
- The PropertyChangeEvent to be fired.public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
propertyName
- The name of the property to listen on.oldValue
- The old value of the property.newValue
- The new value of the property.public void fireVetoableChange(PropertyChangeEvent evt) throws PropertyVetoException
evt
- The PropertyChangeEvent to be fired.
PropertyVetoException
public boolean getCellEditable()
public TableCellEditor getCellEditor()
getCellEditor
in class TableColumn
TableColumn.getCellEditor()
public TableCellRenderer getCellRenderer()
getCellRenderer
in class TableColumn
TableColumn.getCellRenderer()
public TableCellEditor getColumnCellEditor()
public Attributes getEditmaskAttributes()
public EditmaskViewInterface getEditmaskViewUI()
public FieldModel getFieldModel()
getFieldModel
in interface JFormattedComponent
protected PropertyChangeSupport getPropertyChange()
protected VetoableChangeSupport getVetoPropertyChange()
public boolean hasListeners(String propertyName)
propertyName
- The name of property.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in class TableColumn
listener
- the PropertyChangeListener to be removed.public void removeVetoableChangeListener(VetoableChangeListener listener)
listener
- The VetoableChangeListener to be removed.public void setCellEditable(boolean editable)
editable
- The new value for the property.public void setCellEditor(TableCellEditor aTableCellEditor)
setCellEditor
in class TableColumn
aTableCellEditor
- The cell editor to be set.TableColumn.setCellEditor(javax.swing.table.TableCellEditor)
public void setCellRenderer(TableCellRenderer aTableCellRenderer)
setCellRenderer
in class TableColumn
aTableCellRenderer
- The cell renderer to be set.TableColumn.setCellRenderer(javax.swing.table.TableCellRenderer)
public void setColumnCellEditor(TableCellEditor aTableCellEditor)
aTableCellEditor
- The cell editor to be set for the column. If the editor is a JFormatted bean, the field model of the
editor will be overrided by the field model of the column. Also, if the editor is a JFormattedTextFieldCellEditor, the
editmaskAttributes of the editor will be overrided by the editmaskAttributes of the column.TableCellEditor
public void setEditmaskAttributes(Attributes aEditmaskAttributes) throws PropertyVetoException
aEditmaskAttributes
- The editmaskAttribute to be set for the column.
PropertyVetoException
public void setEditmaskViewUI(EditmaskViewInterface aEditmaskViewInterface)
aEditmaskViewInterface
- The new value for the property.public void setFieldModel(FieldModel aFieldModel)
setFieldModel
in interface JFormattedComponent
aFieldModel
- The field model for formatting and validating.JFormattedComponent.getFieldModel()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |