All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.util.servlet.RecordFormatMetaData
java.lang.Object
|
+----com.ibm.as400.util.servlet.RecordFormatMetaData
- public class RecordFormatMetaData
- extends Object
- implements RowMetaData, Serializable
A RecordFormatMetaData object can be used to find out information about the columns of a
RecordListRowData object.
RecordFormatMetaData objects generate the following events:
- PropertyChangeEvent
- VetoableChangeEvent
-
RecordFormatMetaData()
- Constructs a default RecordFormatMetaData object.
-
RecordFormatMetaData(RecordFormat)
- Constructs a RecordFormatMetaData object with the specified recordFormat.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a PropertyChangeListener.
-
addVetoableChangeListener(VetoableChangeListener)
- Adds the VetoableChangeListener.
-
getColumnCount()
- Returns the number of columns.
-
getColumnDisplaySize(int)
- Returns the display size in characters of the column specified by columnIndex.
-
getColumnLabel(int)
- Returns the label of the column specified by columnIndex.
-
getColumnName(int)
- Returns the name of the column specified by columnIndex.
-
getColumnType(int)
- Returns the data type of the column specified by columnIndex.
-
getColumnTypeName(int)
- Returns the data type name of column specified by columnIndex.
-
getPrecision(int)
- Returns the precision of the column specified by columnIndex.
-
getRecordFormat()
- Returns the record format.
-
getScale(int)
- Returns the scale of the column specified by columnIndex.
-
isNumericData(int)
- Indicates if the column specified by columnIndex contains numeric data.
-
isTextData(int)
- Indicates if the column specified by columnIndex contains text data.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes the PropertyChangeListener from the internal list.
-
removeVetoableChangeListener(VetoableChangeListener)
- Removes the VetoableChangeListener from the internal list.
-
setColumnLabel(int, String)
- Sets the specified label at the column specified by columnIndex.
-
setRecordFormat(RecordFormat)
- Sets the record format.
RecordFormatMetaData
public RecordFormatMetaData()
- Constructs a default RecordFormatMetaData object.
RecordFormatMetaData
public RecordFormatMetaData(RecordFormat recordFormat)
- Constructs a RecordFormatMetaData object with the specified recordFormat.
- Parameters:
- recordFormat - The record format.
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Adds a PropertyChangeListener. The specified PropertyChangeListener's propertyChange
method is called each time the value of any bound property is changed.
- Parameters:
- listener - The PropertyChangeListener.
- See Also:
- removePropertyChangeListener
addVetoableChangeListener
public void addVetoableChangeListener(VetoableChangeListener listener)
- Adds the VetoableChangeListener. The specified VetoableChangeListener's vetoableChange
method is called each time the value of any constrained property is changed.
- Parameters:
- listener - The VetoableChangeListener.
- See Also:
- removeVetoableChangeListener
getColumnCount
public int getColumnCount()
- Returns the number of columns.
- Returns:
- The column count.
getColumnDisplaySize
public int getColumnDisplaySize(int columnIndex)
- Returns the display size in characters of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The column display size in characters.
getColumnLabel
public String getColumnLabel(int columnIndex)
- Returns the label of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The column label.
getColumnName
public String getColumnName(int columnIndex)
- Returns the name of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The column name.
getColumnType
public int getColumnType(int columnIndex)
- Returns the data type of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The column RowMetaDataType.
- See Also:
- RowMetaDataType
getColumnTypeName
public String getColumnTypeName(int columnIndex)
- Returns the data type name of column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The column data type name.
getPrecision
public int getPrecision(int columnIndex)
- Returns the precision of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The column precision (number of decimal digits).
getRecordFormat
public RecordFormat getRecordFormat()
- Returns the record format.
- Returns:
- The record format.
getScale
public int getScale(int columnIndex)
- Returns the scale of the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- The column scale (number of digits to the right of the decimal point).
isNumericData
public boolean isNumericData(int columnIndex)
- Indicates if the column specified by columnIndex contains numeric data.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- true if numeric data; false otherwise.
isTextData
public boolean isTextData(int columnIndex)
- Indicates if the column specified by columnIndex contains text data.
- Parameters:
- columnIndex - The column index (0-based).
- Returns:
- true if text data; false otherwise.
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Removes the PropertyChangeListener from the internal list.
If the PropertyChangeListener is not on the list, nothing is done.
- Parameters:
- listener - The PropertyChangeListener.
- See Also:
- addPropertyChangeListener
removeVetoableChangeListener
public void removeVetoableChangeListener(VetoableChangeListener listener)
- Removes the VetoableChangeListener from the internal list.
If the VetoableChangeListener is not on the list, nothing is done.
- Parameters:
- listener - The VetoableChangeListener.
- See Also:
- addVetoableChangeListener
setColumnLabel
public void setColumnLabel(int columnIndex,
String label)
- Sets the specified label at the column specified by columnIndex.
- Parameters:
- columnIndex - The column index (0-based).
- label - The label.
setRecordFormat
public void setRecordFormat(RecordFormat recordFormat) throws PropertyVetoException
- Sets the record format.
- Parameters:
- recordFormat - The record format.
- Throws: PropertyVetoException
- If a change is vetoed.
All Packages Class Hierarchy This Package Previous Next Index