Betty v1.1.0

christophedelory.betty.admin.gwt
Class AbstractDefaultPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.CellPanel
                      extended by com.google.gwt.user.client.ui.VerticalPanel
                          extended by christophedelory.betty.admin.gwt.AbstractBettyPanel
                              extended by christophedelory.betty.admin.gwt.AbstractDefaultPanel
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasAlignment, com.google.gwt.user.client.ui.HasHorizontalAlignment, com.google.gwt.user.client.ui.HasVerticalAlignment, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, Iterable<com.google.gwt.user.client.ui.Widget>
Direct Known Subclasses:
ChampionshipsPanel, LocationsPanel, PlayersPanel, ResourcesPanel, UsersPanel

public abstract class AbstractDefaultPanel
extends AbstractBettyPanel

The base default panel.

Since:
1.0.0
Version:
$Revision: 60 $
Author:
Christophe Delory

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant
 
Field Summary
 
Fields inherited from class christophedelory.betty.admin.gwt.AbstractBettyPanel
_application, _treeItem
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT
 
Fields inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP
 
Constructor Summary
protected AbstractDefaultPanel(com.google.gwt.user.client.ui.TreeItem treeItem, Betty application)
          Creates an empty default panel.
 
Method Summary
protected abstract  void addDetails(String id)
          Builds the new content panel describing the element identified by the specified string.
 void build()
          Populates this content panel.
protected abstract  String getDescription()
          Returns the text describing the item displayed.
 
Methods inherited from class com.google.gwt.user.client.ui.VerticalPanel
add, getHorizontalAlignment, getVerticalAlignment, insert, onEnsureDebugId, remove, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from class com.google.gwt.user.client.ui.CellPanel
getBody, getSpacing, getTable, setBorderWidth, setCellHeight, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellVerticalAlignment, setCellVerticalAlignment, setCellWidth, setSpacing
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onAttach, onBrowserEvent, onDetach, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDefaultPanel

protected AbstractDefaultPanel(com.google.gwt.user.client.ui.TreeItem treeItem,
                               Betty application)
Creates an empty default panel.

Parameters:
treeItem - the associated tree item. Shall not be null.
application - the parent application. Shall not be null.
Throws:
NullPointerException - if treeItem is null.
NullPointerException - if application is null.
See Also:
AbstractBettyPanel.AbstractBettyPanel(TreeItem,Betty)
Method Detail

build

public final void build()
Description copied from class: AbstractBettyPanel
Populates this content panel.

Specified by:
build in class AbstractBettyPanel

getDescription

protected abstract String getDescription()
Returns the text describing the item displayed. Example: "championship".

Returns:
a description text. Shall not be null.

addDetails

protected abstract void addDetails(String id)
Builds the new content panel describing the element identified by the specified string.

Parameters:
id - the new element identifier. Shall not be null.
Throws:
NullPointerException - if id is null.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.