|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ui.table.TableDescriptor
public class TableDescriptor
Provides a table descriptor for a DescribedTable
. The column
accessor methods ignore invisible columns, with the exception of those
methods named "Absolute".
Constructor Summary | |
---|---|
TableDescriptor(ColumnDescriptor[] columnDescriptors)
Construct this object. |
|
TableDescriptor(Document document)
Construct this object, obtaining the column descriptors from the given URL. |
|
TableDescriptor(File file)
Construct this object, obtaining the column descriptors from the given file. |
|
TableDescriptor(InputStream inputStream)
Construct this object, obtaining the column descriptors from the given input stream. |
|
TableDescriptor(List columnDescriptors)
Construct this object. |
|
TableDescriptor(URL url)
Construct this object, obtaining the column descriptors from the given URL. |
Method Summary | |
---|---|
Class |
getColumnClass(int columnIndex)
Return the class of the given column. |
int |
getColumnCount()
Return the number of visible columns. |
int |
getColumnCountAbsolute()
Return the number of columns regardless of their visibility. |
ColumnDescriptor |
getColumnDescriptor(int columnIndex)
Return the visible column descriptor for the given column. |
ColumnDescriptor |
getColumnDescriptorAbsolute(int columnIndex)
Return the visible column descriptor for the given column. |
String |
getColumnName(int columnIndex)
Return the column name for the given column. |
String |
getColumnPropertyName(int columnIndex)
Return the column property name for the given column. |
boolean |
isColumnEditable(int columnIndex)
Return true if the given column is editable. |
void |
setColumnVisible(int columnIndex,
boolean visible)
Set the column with the given absolute index visible. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableDescriptor(ColumnDescriptor[] columnDescriptors)
columnDescriptors
- The column descriptors.public TableDescriptor(List columnDescriptors)
columnDescriptors
- The column descriptors.public TableDescriptor(InputStream inputStream) throws ParserConfigurationException, SAXException, IOException
inputStream
- The table descriptor XML input stream.
ParserConfigurationException
SAXException
IOException
public TableDescriptor(File file) throws ParserConfigurationException, SAXException, IOException
file
- The table descriptor XML file.
ParserConfigurationException
SAXException
IOException
public TableDescriptor(URL url) throws ParserConfigurationException, SAXException, IOException
url
- The table descriptor XML URL.
ParserConfigurationException
SAXException
IOException
public TableDescriptor(Document document) throws ParserConfigurationException, SAXException
document
- Source XML document.
ParserConfigurationException
SAXException
Method Detail |
---|
public Class getColumnClass(int columnIndex)
columnIndex
- The index of the visible column of interest.public int getColumnCount()
public int getColumnCountAbsolute()
public ColumnDescriptor getColumnDescriptor(int columnIndex)
columnIndex
- The index of the visible column of interest.public ColumnDescriptor getColumnDescriptorAbsolute(int columnIndex)
columnIndex
- The absolute index of the column of interest.public String getColumnName(int columnIndex)
columnIndex
- The index of the visible column of interest.public String getColumnPropertyName(int columnIndex)
columnIndex
- The index of the visible column of interest.public boolean isColumnEditable(int columnIndex)
columnIndex
- The index of the visible column of interest.public void setColumnVisible(int columnIndex, boolean visible)
columnIndex
- The absolute index of the column of interest.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |