|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
Constructor and Description |
---|
RecordFormatMetaData()
Constructs a default RecordFormatMetaData object. |
RecordFormatMetaData(RecordFormat recordFormat)
Constructs a RecordFormatMetaData object with the specified recordFormat. |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addVetoableChangeListener(VetoableChangeListener listener)
Adds the VetoableChangeListener. |
String |
getColumnAlignment(int columnIndex)
Returns the alignment of the column specified by columnIndex. |
int |
getColumnCount()
Returns the number of columns. |
String |
getColumnDirection(int columnIndex)
Returns the direction of the column specified by columnIndex. |
int |
getColumnDisplaySize(int columnIndex)
Returns the display size in characters of the column specified by columnIndex. |
String |
getColumnLabel(int columnIndex)
Returns the label of the column specified by columnIndex. |
String |
getColumnName(int columnIndex)
Returns the name of the column specified by columnIndex. |
int |
getColumnType(int columnIndex)
Returns the data type of the column specified by columnIndex. |
String |
getColumnTypeName(int columnIndex)
Returns the data type name of column specified by columnIndex. |
int |
getPrecision(int columnIndex)
Returns the precision of the column specified by columnIndex. |
RecordFormat |
getRecordFormat()
Returns the record format. |
int |
getScale(int columnIndex)
Returns the scale of the column specified by columnIndex. |
boolean |
isNumericData(int columnIndex)
Indicates if the column specified by columnIndex contains numeric data. |
boolean |
isTextData(int columnIndex)
Indicates if the column specified by columnIndex contains text data. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the PropertyChangeListener from the internal list. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Removes the VetoableChangeListener from the internal list. |
void |
setColumnAlignment(int columnIndex,
String alignment)
Sets the specified horizontal alignment for the column data specified by columnIndex. |
void |
setColumnDirection(int columnIndex,
String dir)
Sets the specified direction for the column data specified by columnIndex. |
void |
setColumnLabel(int columnIndex,
String label)
Sets the specified label at the column specified by columnIndex. |
void |
setRecordFormat(RecordFormat recordFormat)
Sets the record format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordFormatMetaData()
public RecordFormatMetaData(RecordFormat recordFormat)
recordFormat
- The record format.Method Detail |
---|
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void addVetoableChangeListener(VetoableChangeListener listener)
listener
- The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)
public String getColumnAlignment(int columnIndex)
getColumnAlignment
in interface RowMetaData
columnIndex
- The column index (0-based).HTMLConstants
public String getColumnDirection(int columnIndex)
getColumnDirection
in interface RowMetaData
columnIndex
- The column index (0-based).HTMLConstants
public int getColumnCount()
getColumnCount
in interface RowMetaData
public int getColumnDisplaySize(int columnIndex)
getColumnDisplaySize
in interface RowMetaData
columnIndex
- The column index (0-based).public String getColumnLabel(int columnIndex)
getColumnLabel
in interface RowMetaData
columnIndex
- The column index (0-based).public String getColumnName(int columnIndex)
getColumnName
in interface RowMetaData
columnIndex
- The column index (0-based).public int getColumnType(int columnIndex)
getColumnType
in interface RowMetaData
columnIndex
- The column index (0-based).RowMetaDataType
public String getColumnTypeName(int columnIndex)
getColumnTypeName
in interface RowMetaData
columnIndex
- The column index (0-based).public int getPrecision(int columnIndex)
getPrecision
in interface RowMetaData
columnIndex
- The column index (0-based).public RecordFormat getRecordFormat()
public int getScale(int columnIndex)
getScale
in interface RowMetaData
columnIndex
- The column index (0-based).public boolean isNumericData(int columnIndex)
isNumericData
in interface RowMetaData
columnIndex
- The column index (0-based).public boolean isTextData(int columnIndex)
isTextData
in interface RowMetaData
columnIndex
- The column index (0-based).public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removeVetoableChangeListener(VetoableChangeListener listener)
listener
- The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)
public void setColumnAlignment(int columnIndex, String alignment)
setColumnAlignment
in interface RowMetaData
columnIndex
- The column index (0-based).alignment
- The horizontal column alignment. One of the following constants
defined in HTMLConstants: LEFT, CENTER, RIGHT, or JUSTIFY.HTMLConstants
public void setColumnDirection(int columnIndex, String dir)
setColumnDirection
in interface RowMetaData
columnIndex
- The column index (0-based).dir
- The column direction.HTMLConstants
public void setColumnLabel(int columnIndex, String label)
setColumnLabel
in interface RowMetaData
columnIndex
- The column index (0-based).label
- The label.public void setRecordFormat(RecordFormat recordFormat) throws PropertyVetoException
recordFormat
- The record format.PropertyVetoException
- If a change is vetoed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |