|
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.SourceView
com.sptci.rwt.webui.model.ViewView
public class ViewView
A view component used to display the information contained in
ViewMetaData.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private ViewMetaData |
metaData
The meta data object whose details are to be displayed. |
| Fields inherited from class com.sptci.rwt.webui.model.SourceView |
|---|
KEYWORDS, PATTERNS |
| Fields inherited from class nextapp.echo2.app.Column |
|---|
PROPERTY_BORDER, PROPERTY_CELL_SPACING, PROPERTY_INSETS |
| Constructor Summary | |
|---|---|
ViewView(ViewMetaData metaData)
Create a new instance of the view using the specified model object. |
|
| Method Summary | |
|---|---|
protected Component |
createDefinition()
Create the component used to display the SQL statement that was executed to create the view. |
protected Component |
createDetails()
Create the component used to display the default limits enforced by the database engine. |
protected void |
createLabels(String name,
MetaData metaData,
Component component)
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. |
void |
init()
Lifecycle method used to initialise component when added to a container hierarchy. |
protected void |
initMetaData()
Perform additional initialisation of the metaData object. |
| Methods inherited from class com.sptci.rwt.webui.model.SourceView |
|---|
syntaxHighlight, toHtml |
| 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 ViewMetaData metaData
| Constructor Detail |
|---|
public ViewView(ViewMetaData metaData)
metaData - The metaData model object to use.initMetaData()| Method Detail |
|---|
public void init()
init in class ComponentcreateDetails(),
createDefinition()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 void createLabels(String name,
MetaData metaData,
Component component)
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.component - The container component to which the labels are to
be added.protected Component createDefinition()
SourceView.toHtml(java.lang.String),
SourceView.syntaxHighlight(java.lang.String)protected void initMetaData()
metaData object.
ViewAnalyser.getAdditionalAttributes(com.sptci.rwt.ViewMetaData)
|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||