|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.binding.swingx.adapter.TabularDataMetaData
public class TabularDataMetaData
This class will be going away once the DOMAdapter converts its API to use org.jdesktop.swing.data.MetaData.
Constructor Summary | |
---|---|
TabularDataMetaData()
Creates a new meta data object with 0 columns. |
|
TabularDataMetaData(int columnCount)
Creates a new meta data object with the specified number of columns |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the specified property change listener to this meta data. |
java.lang.Class |
getColumnClass(int columnIndex)
|
Converter |
getColumnConverter(int columnIndex)
|
int |
getColumnCount()
|
int |
getColumnDisplaySize(int columnIndex)
|
int |
getColumnIndex(java.lang.String name)
|
java.lang.String |
getColumnLabel(int columnIndex)
|
java.lang.Object |
getColumnMaximum(int columnIndex)
|
java.lang.Object |
getColumnMinimum(int columnIndex)
|
java.lang.String |
getColumnName(int columnIndex)
|
java.util.Iterator |
getColumnValues(int columnIndex)
|
boolean |
isColumnNullable(int columnIndex)
|
boolean |
isColumnWritable(int columnIndex)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the specified property change listener from this meta data. |
void |
setColumnClass(int columnIndex,
java.lang.Class columnClass)
Sets the column class at the specified index |
void |
setColumnConverter(int columnIndex,
Converter converter)
Sets the converter object to be used when converting values in the column to and from String . |
void |
setColumnCount(int columnCount)
Initializes the number of columns in this meta data object. |
void |
setColumnDisplaySize(int columnIndex,
int numChars)
|
void |
setColumnLabel(int columnIndex,
java.lang.String columnLabel)
Sets the column label at the specified index. |
void |
setColumnMaximum(int columnIndex,
java.lang.Object maximum)
Sets the maximum value for values in the column. |
void |
setColumnMinimum(int columnIndex,
java.lang.Object minimum)
Sets the minimum value for values in the column. |
void |
setColumnName(int columnIndex,
java.lang.String columnName)
Sets the column name at the specified index |
void |
setColumnNullable(int columnIndex,
boolean nullable)
Sets whether or not values in the column may have a null value. |
void |
setColumnValues(int columnIndex,
java.lang.Object[] values)
Sets the set of valid values for this column. |
void |
setColumnWritable(int columnIndex,
boolean writable)
Sets whether or not values in the column at the specified index may be modified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TabularDataMetaData()
public TabularDataMetaData(int columnCount)
columnCount
- integer containing the number of columnsMethod Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- PropertyChangeListener to be notified when meta data changespublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- PropertyChangeListener to be notified when meta data changespublic void setColumnCount(int columnCount)
columnCount
- integer containing the number of columnspublic int getColumnCount()
public int getColumnIndex(java.lang.String name)
public java.lang.String getColumnName(int columnIndex)
columnIndex
- integer index of the column (first is 1, second is 2...)
public void setColumnName(int columnIndex, java.lang.String columnName)
columnIndex
- integer index of the column (first is 1, second is 2...)columnName
- String containing the column name at the specified indepublic java.lang.String getColumnLabel(int columnIndex)
columnIndex
- integer index of the column (first is 1, second is 2...)
public void setColumnLabel(int columnIndex, java.lang.String columnLabel)
columnIndex
- index of the column (first is 1, second is 2...)columnLabel
- the column text to setpublic java.lang.Class getColumnClass(int columnIndex)
columnIndex
- integer index of the column (first is 1, second is 2...)
public void setColumnClass(int columnIndex, java.lang.Class columnClass)
columnIndex
- integer index of the column (first is 1, second is 2...)columnClass
- Class representing the column's typepublic void setColumnDisplaySize(int columnIndex, int numChars)
public int getColumnDisplaySize(int columnIndex)
public boolean isColumnWritable(int columnIndex)
columnIndex
- integer index of the column (first is 1, second is 2...)
public void setColumnWritable(int columnIndex, boolean writable)
columnIndex
- integer index of the column (first is 1, second is 2...)writable
- boolean indicating whether or not values in this column
may be modifiedpublic boolean isColumnNullable(int columnIndex)
columnIndex
- integer index of the column (first is 1, second is 2...)
public void setColumnNullable(int columnIndex, boolean nullable)
columnIndex
- integer index of the column (first is 1, second is 2...)nullable
- boolean indicating whether or not values in the column
may be nullpublic java.lang.Object getColumnMinimum(int columnIndex)
columnIndex
- integer index of the column (first is 1, second is 2...)
public void setColumnMinimum(int columnIndex, java.lang.Object minimum)
columnIndex
- integer index of the column (first is 1, second is 2...)minimum
- Object representing minimum value for values in the column, or null
if no minimum value constraint existspublic java.lang.Object getColumnMaximum(int columnIndex)
columnIndex
- integer index of the column (first is 1, second is 2...)
public void setColumnMaximum(int columnIndex, java.lang.Object maximum)
columnIndex
- integer index of the column (first is 1, second is 2...)maximum
- Object representing maximum value for values in the column,
or null if no maximum value constraint existspublic java.util.Iterator getColumnValues(int columnIndex)
columnIndex
- integer index of the column (first is 1, second is 2...)
public void setColumnValues(int columnIndex, java.lang.Object[] values)
columnIndex
- integer index of the column (first is 1, second is 2...)values
- array containing set of valid values, or null if no value
set constraint existspublic void setColumnConverter(int columnIndex, Converter converter)
String
.
columnIndex
- integer index of the column (first is 1, second is 2...)converter
- DataConverter object used to convert values in column to
and from Stringpublic Converter getColumnConverter(int columnIndex)
columnIndex
- integer index of the column (first is 1, second is 2...)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |