com.tensegrity.palowebviewer.modules.widgets.client.section
Class BasicSection

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.HTMLTable
                  extended by com.google.gwt.user.client.ui.Grid
                      extended by com.tensegrity.palowebviewer.modules.widgets.client.section.BasicSection
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.SourcesTableEvents
Direct Known Subclasses:
HorizontalSection, VerticalSection

public abstract class BasicSection
extends com.google.gwt.user.client.ui.Grid

Basic expandeble section

CSS Style Rules


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.HTMLTable
com.google.gwt.user.client.ui.HTMLTable.CellFormatter, com.google.gwt.user.client.ui.HTMLTable.ColumnFormatter, com.google.gwt.user.client.ui.HTMLTable.RowFormatter
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.Grid
numColumns, numRows
 
Constructor Summary
BasicSection(java.lang.String title, boolean expanded, com.google.gwt.user.client.ui.Widget widget)
           
 
Method Summary
protected abstract  void collapse()
          Callback for collapse section
protected abstract  void expand()
          Callback for expand section
protected  com.google.gwt.user.client.ui.ClickListener getClickListener()
           
protected  com.google.gwt.user.client.ui.Widget getIconWidget()
           
protected  java.lang.String getSectionIconCollapsedStyle()
           
protected  java.lang.String getSectionIconExpandedStyle()
           
protected  java.lang.String getSectionIconStyle()
           
protected  java.lang.String getSectionStyle()
           
protected  java.lang.String getSectionTitleStyle()
           
 java.lang.String getTitle()
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
 boolean isExpanded()
           
 void setExpanded(boolean expanded)
          Make the section expanded or collapsed
 void setTitle(java.lang.String title)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Grid
clearCell, createCell, getCellCount, getColumnCount, getRowCount, prepareCell, prepareColumn, prepareRow, resize, resizeColumns, resizeRows
 
Methods inherited from class com.google.gwt.user.client.ui.HTMLTable
addTableListener, checkCellBounds, checkRowBounds, clear, getBodyElement, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMCellCount, getDOMRowCount, getDOMRowCount, getEventTargetCell, getHTML, getRowFormatter, getText, getWidget, insertCell, insertCells, insertRow, internalClearCell, isCellPresent, iterator, onBrowserEvent, remove, removeCell, removeRow, removeTableListener, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setColumnFormatter, setHTML, setRowFormatter, setText, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onAttach, onDetach, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, 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

BasicSection

public BasicSection(java.lang.String title,
                    boolean expanded,
                    com.google.gwt.user.client.ui.Widget widget)
Method Detail

expand

protected abstract void expand()
Callback for expand section


collapse

protected abstract void collapse()
Callback for collapse section


getIconWidget

protected com.google.gwt.user.client.ui.Widget getIconWidget()
Returns:
Widget - the expand/collapse icon widget

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()
Returns:
Widget - the nested widget

getClickListener

protected com.google.gwt.user.client.ui.ClickListener getClickListener()
Returns:
ClickListener - listener for expand/collapse elements

setExpanded

public void setExpanded(boolean expanded)
Make the section expanded or collapsed

Parameters:
expanded - true==expanded, false==collapsed

getTitle

public java.lang.String getTitle()
Overrides:
getTitle in class com.google.gwt.user.client.ui.UIObject

setTitle

public void setTitle(java.lang.String title)
Overrides:
setTitle in class com.google.gwt.user.client.ui.UIObject

isExpanded

public boolean isExpanded()

getSectionStyle

protected java.lang.String getSectionStyle()

getSectionTitleStyle

protected java.lang.String getSectionTitleStyle()

getSectionIconStyle

protected java.lang.String getSectionIconStyle()

getSectionIconExpandedStyle

protected java.lang.String getSectionIconExpandedStyle()

getSectionIconCollapsedStyle

protected java.lang.String getSectionIconCollapsedStyle()