SPT RWT Application API

com.sptci.rwt.webui
Class MainView

java.lang.Object
  extended by nextapp.echo2.app.Component
      extended by nextapp.echo2.app.ContentPane
          extended by com.sptci.rwt.webui.MainView
All Implemented Interfaces:
com.sptci.echo2.View, Serializable, Pane, PaneContainer, RenderIdSupport

public class MainView
extends ContentPane
implements com.sptci.echo2.View

The primary ContentPane for the application.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: MainView.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-09-29
See Also:
Serialized Form

Field Summary
private  MainController controller
          The controller for this view component.
private  Component left
          container used to hold the metadata objects (tree).
private  MenuComponent menuComponent
          The component used to display the menu for the application.
private  Component right
          The container used to hold all the information displayed in the detail view area (right side).
private  MetaDataTree tree
          The component used to display the database object hierarchy.
 
Fields inherited from class nextapp.echo2.app.ContentPane
PROPERTY_BACKGROUND_IMAGE, PROPERTY_HORIZONTAL_SCROLL, PROPERTY_INSETS, PROPERTY_VERTICAL_SCROLL
 
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
MainView()
          Create a new instance of the pane.
 
Method Summary
private  Component createLeft()
          Create the left navigation area.
private  Component createRight()
          Create the right area that holds the main content.
private  Component createTop()
          Create the component that displays header and menu.
private  MetaDataTree createTree()
          Create the component that displays the database metadata objects in a tree.
 MainController getController()
          Returns controller.
 MenuComponent getMenuComponent()
          Returns menuComponent.
private  void layout()
          Layout the content pane to accomodate top menu, database object navigation (left) and detail content (right).
 void rebuildMenu()
          Rebuilds the menuComponent.
(package private)  void refresh()
          Refreshes the view.
(package private)  void setContent(Component component)
          Set the content of the right using the specified component.
 
Methods inherited from class nextapp.echo2.app.ContentPane
getBackgroundImage, getHorizontalScroll, getInsets, getVerticalScroll, isValidChild, isValidParent, processInput, setBackgroundImage, setHorizontalScroll, setInsets, setVerticalScroll
 
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, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, 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

controller

private final MainController controller
The controller for this view component.


menuComponent

private MenuComponent menuComponent
The component used to display the menu for the application.


tree

private MetaDataTree tree
The component used to display the database object hierarchy.


left

private Component left
container used to hold the metadata objects (tree).


right

private Component right
The container used to hold all the information displayed in the detail view area (right side).

Constructor Detail

MainView

public MainView()
Create a new instance of the pane.

See Also:
layout(), createLeft(), createRight()
Method Detail

refresh

void refresh()
Refreshes the view. Usually used to initiate a new connection.


setContent

void setContent(Component component)
Set the content of the right using the specified component.

Parameters:
component - The component that is to be displayed in the right container component.

layout

private void layout()
Layout the content pane to accomodate top menu, database object navigation (left) and detail content (right).

See Also:
createTop(), createLeft(), createRight()

createTop

private Component createTop()
Create the component that displays header and menu.

See Also:
Header, MenuComponent

createLeft

private Component createLeft()
Create the left navigation area.


createRight

private Component createRight()
Create the right area that holds the main content.


createTree

private MetaDataTree createTree()
Create the component that displays the database metadata objects in a tree.

Returns:
The tree component.

getController

public MainController getController()
Returns controller.

Returns:
The value/reference of/to controller.

getMenuComponent

public MenuComponent getMenuComponent()
Returns menuComponent.

Returns:
The value/reference of/to menuComponent.

rebuildMenu

public void rebuildMenu()
Rebuilds the menuComponent.


SPT RWT Application API