|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.Column
com.sptci.rwt.webui.model.AbstractView
com.sptci.rwt.webui.model.TableView
public class TableView
A view component used to display the information contained in
TableMetaData.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private TableMetaData |
metaData
The meta data object whose details are to be displayed. |
| Fields inherited from class nextapp.echo2.app.Column |
|---|
PROPERTY_BORDER, PROPERTY_CELL_SPACING, PROPERTY_INSETS |
| Constructor Summary | |
|---|---|
TableView(TableMetaData metaData)
Create a new instance of the view using the specified model object. |
|
| Method Summary | |
|---|---|
protected void |
addCatalogue(Collection<ForeignKeyMetaData> collection,
Component parent)
Add the catalogue names in the collection to the component |
protected void |
addColumn(Collection<ForeignKeyMetaData> collection,
Component parent)
Add the column names in the collection to the component |
protected void |
addDeferrability(Collection<ForeignKeyMetaData> collection,
Component parent)
Add the update rules in the collection to the component |
protected void |
addDeleteRule(Collection<ForeignKeyMetaData> collection,
Component parent)
Add the update rules in the collection to the component |
protected void |
addForeignKeyName(Collection<ForeignKeyMetaData> collection,
Component parent)
Add the foreign key names in the collection to the component |
protected void |
addReferencingColumn(Collection<ForeignKeyMetaData> collection,
Component parent)
Add the referencing column names in the collection to the component |
protected void |
addSchema(Collection<ForeignKeyMetaData> collection,
Component parent)
Add the schema names in the collection to the component |
protected void |
addTable(Collection<ForeignKeyMetaData> collection,
Component parent)
Add the table names in the collection to the component |
protected void |
addUpdateRule(Collection<ForeignKeyMetaData> collection,
Component parent)
Add the update rules in the collection to the component |
protected Component |
createDetails()
Create the component used to display the details for the table. |
protected void |
createLabels(String name,
MetaData metaData,
Component parent)
Create standard Label components that
represent the name of the specified field and the value in the
specified model. |
protected void |
createNumberOfRows(Component parent)
Create the component used to display the total number of rows in the table. |
protected Component |
createReferences()
Create the component used to display the foreign key references to this table. |
void |
init()
Lifecycle method used to initialise component when added to a container hierarchy. |
| Methods inherited from class com.sptci.rwt.webui.model.AbstractView |
|---|
processFatalException |
| Methods inherited from class nextapp.echo2.app.Column |
|---|
getBorder, getCellSpacing, getInsets, setBorder, setCellSpacing, setInsets |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final TableMetaData metaData
| Constructor Detail |
|---|
public TableView(TableMetaData metaData)
metaData - The metaData model object to use.| Method Detail |
|---|
public void init()
init in class ComponentcreateDetails(),
createReferences()protected Component createDetails()
createLabels(java.lang.String, com.sptci.rwt.MetaData, nextapp.echo2.app.Component),
createNumberOfRows(nextapp.echo2.app.Component)protected void createNumberOfRows(Component parent)
parent - The container component to which the components are
to be added.protected Component createReferences()
addColumn(java.util.Collection, nextapp.echo2.app.Component) ,
addCatalogue(java.util.Collection, nextapp.echo2.app.Component) ,
addSchema(java.util.Collection, nextapp.echo2.app.Component) ,
addTable(java.util.Collection, nextapp.echo2.app.Component) ,
addReferencingColumn(java.util.Collection, nextapp.echo2.app.Component) ,
addForeignKeyName(java.util.Collection, nextapp.echo2.app.Component) ,
addUpdateRule(java.util.Collection, nextapp.echo2.app.Component) ,
addDeleteRule(java.util.Collection, nextapp.echo2.app.Component) ,
addDeferrability(java.util.Collection, nextapp.echo2.app.Component)
protected void createLabels(String name,
MetaData metaData,
Component parent)
Label components that
represent the name of the specified field and the value in the
specified model. Over-ridden to invoke the Collection.size() method instead of just the accessor in
the model.
createLabels in class AbstractViewname - The name of the field.metaData - The model object.parent - The container component to which the labels are to
be added.
protected void addColumn(Collection<ForeignKeyMetaData> collection,
Component parent)
collection - The collection of ForeignKeyMetaData values.parent - The parent component to which the details are to be
added.
protected void addCatalogue(Collection<ForeignKeyMetaData> collection,
Component parent)
collection - The collection of ForeignKeyMetaData values.parent - The parent component to which the details are to be
added.
protected void addSchema(Collection<ForeignKeyMetaData> collection,
Component parent)
collection - The collection of ForeignKeyMetaData values.parent - The parent component to which the details are to be
added.
protected void addTable(Collection<ForeignKeyMetaData> collection,
Component parent)
collection - The collection of ForeignKeyMetaData values.parent - The parent component to which the details are to be
added.
protected void addReferencingColumn(Collection<ForeignKeyMetaData> collection,
Component parent)
collection - The collection of ForeignKeyMetaData values.parent - The parent component to which the details are to be
added.
protected void addForeignKeyName(Collection<ForeignKeyMetaData> collection,
Component parent)
collection - The collection of ForeignKeyMetaData values.parent - The parent component to which the details are to be
added.
protected void addUpdateRule(Collection<ForeignKeyMetaData> collection,
Component parent)
collection - The collection of ForeignKeyMetaData values.parent - The parent component to which the details are to be
added.
protected void addDeleteRule(Collection<ForeignKeyMetaData> collection,
Component parent)
collection - The collection of ForeignKeyMetaData values.parent - The parent component to which the details are to be
added.
protected void addDeferrability(Collection<ForeignKeyMetaData> collection,
Component parent)
collection - The collection of ForeignKeyMetaData values.parent - The parent component to which the details are to be
added.
|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||