SPT RWT Application API

com.sptci.rwt.webui.model
Class TableTypeDataView

java.lang.Object
  extended by nextapp.echo2.app.Component
      extended by nextapp.echo2.app.Column
          extended by com.sptci.rwt.webui.model.TableTypeDataView
All Implemented Interfaces:
com.sptci.echo2.View, Serializable, RenderIdSupport

public class TableTypeDataView
extends Column
implements com.sptci.echo2.View

A view Component for displaying the data contained in a table.

© Copyright 2007 Sans Pareil Technologies, Inc.

Since:
Version 1.3
Version:
$Id: TableTypeDataView.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-11-13
See Also:
Serialized Form

Field Summary
private  TableTypeMetaData metaData
          The meta data object whose data is being displayed.
private  SortableRowTableModel model
          The TableModel used to build the Table in which the data is displayed.
 
Fields inherited from class nextapp.echo2.app.Column
PROPERTY_BORDER, PROPERTY_CELL_SPACING, PROPERTY_INSETS
 
Fields inherited from class nextapp.echo2.app.Component
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
TableTypeDataView(TableTypeMetaData metaData)
          Create a new instance for the specified meta data.
TableTypeDataView(TableTypeMetaData metaData, SortableRowTableModel model)
          Create a new instance for the specified meta data.
 
Method Summary
protected  void createNavigation()
          Create a TableNavigation for the specified SortableRowTable if necessary.
protected  void createTitle()
          Create a title for the component.
protected  void display()
          Add the appropriate components to this view to display the data encapsulated in model.
 void init()
          Builds the display.
 void setModel(SortableRowTableModel model)
          Set the model for the table displayed in this view.
 
Methods inherited from class nextapp.echo2.app.Column
getBorder, getCellSpacing, getInsets, setBorder, setCellSpacing, setInsets
 
Methods inherited from class nextapp.echo2.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metaData

private final TableTypeMetaData metaData
The meta data object whose data is being displayed.


model

private SortableRowTableModel model
The TableModel used to build the Table in which the data is displayed.

Constructor Detail

TableTypeDataView

public TableTypeDataView(TableTypeMetaData metaData)
Create a new instance for the specified meta data.

Parameters:
metaData - The metaData to use.

TableTypeDataView

public TableTypeDataView(TableTypeMetaData metaData,
                         SortableRowTableModel model)
Create a new instance for the specified meta data.

Parameters:
metaData - The metaData to use.
Method Detail

init

public void init()
Builds the display. Assumes that model has been initialised.

Overrides:
init in class Component
See Also:
setModel(com.sptci.rwt.webui.SortableRowTableModel), display()

display

protected void display()
Add the appropriate components to this view to display the data encapsulated in model.

See Also:
createTitle(), createNavigation()

createTitle

protected void createTitle()
Create a title for the component.


createNavigation

protected void createNavigation()
Create a TableNavigation for the specified SortableRowTable if necessary.


setModel

public void setModel(SortableRowTableModel model)
Set the model for the table displayed in this view. Use to update the contents of the table.


SPT RWT Application API