|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.as400.util.servlet.ListMetaData
A ListMetaData object can be used to find out information about the columns of a ListRowData object.
ListMetaData objects generate the following events:
| Constructor Summary | |
ListMetaData()
Constructs a default ListMetaData object. |
|
ListMetaData(int columns)
Constructs a ListMetaData object with the specified number of columns. |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds the VetoableChangeListener. |
int |
getColumnCount()
Returns the number of columns. |
int |
getColumnDisplaySize(int columnIndex)
Returns the display size in characters of the column specified by columnIndex. |
java.lang.String |
getColumnLabel(int columnIndex)
Returns the label of the column specified by columnIndex. |
java.lang.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. |
java.lang.String |
getColumnTypeName(int columnIndex)
Returns the data type name of the column specified by columnIndex. |
int |
getPrecision(int columnIndex)
Returns the precision of the column specified by columnIndex. |
int |
getScale(int columnIndex)
Returns the scale of the column specified by columnIndex. |
boolean |
isNumericData(int columnIndex)
Indicates if the data type is numeric data. |
boolean |
isTextData(int columnIndex)
Indicates if the data type is text data. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the PropertyChangeListener from the internal list. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes the VetoableChangeListener from the internal list. |
void |
setColumnDisplaySize(int columnIndex,
int displaySize)
Sets the specified displaySize for the column specified by columnIndex. |
void |
setColumnLabel(int columnIndex,
java.lang.String label)
Sets the specified label for the column specified by columnIndex. |
void |
setColumnName(int columnIndex,
java.lang.String name)
Sets the specified name for the column specified by columnIndex. |
void |
setColumns(int columns)
Sets the number of columns. |
void |
setColumnType(int columnIndex,
int type)
Sets the specified data type for the column specified by columnIndex. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ListMetaData()
public ListMetaData(int columns)
columns - The number of columns.| Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The PropertyChangeListener.removePropertyChangeListener(java.beans.PropertyChangeListener)public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)public int getColumnCount()
getColumnCount in interface RowMetaDatapublic int getColumnDisplaySize(int columnIndex)
getColumnDisplaySize in interface RowMetaDatacolumnIndex - The column index (0-based).public java.lang.String getColumnLabel(int columnIndex)
getColumnLabel in interface RowMetaDatacolumnIndex - The column index (0-based).public java.lang.String getColumnName(int columnIndex)
getColumnName in interface RowMetaDatacolumnIndex - The column index (0-based).public int getColumnType(int columnIndex)
getColumnType in interface RowMetaDatacolumnIndex - The column index (0-based).RowMetaDataTypepublic java.lang.String getColumnTypeName(int columnIndex)
getColumnTypeName in interface RowMetaDatacolumnIndex - The column index (0-based).public int getPrecision(int columnIndex)
getPrecision in interface RowMetaDatacolumnIndex - The column index (0-based).public int getScale(int columnIndex)
getScale in interface RowMetaDatacolumnIndex - The column index (0-based).public boolean isNumericData(int columnIndex)
isNumericData in interface RowMetaDatacolumnIndex - The column index (0-based).public boolean isTextData(int columnIndex)
isTextData in interface RowMetaDatacolumnIndex - The column index (0-based).public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The PropertyChangeListener.addPropertyChangeListener(java.beans.PropertyChangeListener)public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)
public void setColumnDisplaySize(int columnIndex,
int displaySize)
columnIndex - The column index (0-based).displaySize - The column display size in characters.
public void setColumnLabel(int columnIndex,
java.lang.String label)
setColumnLabel in interface RowMetaDatacolumnIndex - The column index (0-based).label - The column label.
public void setColumnName(int columnIndex,
java.lang.String name)
columnIndex - The column index (0-based).name - The column name.
public void setColumns(int columns)
throws java.beans.PropertyVetoException
columns - The number of columns.java.beans.PropertyVetoException - If a change is vetoed.
public void setColumnType(int columnIndex,
int type)
columnIndex - The column index (0-based).type - The RowMetaDataType type.RowMetaDataType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||