org.drools.guvnor.client.widgets.decoratedgrid
Class DecoratedGridSidebarWidget<T>

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.Composite
              extended by org.drools.guvnor.client.widgets.decoratedgrid.DecoratedGridSidebarWidget<T>
Type Parameters:
T - The type of domain columns represented by the Header
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
VerticalDecoratedGridSidebarWidget

public abstract class DecoratedGridSidebarWidget<T>
extends com.google.gwt.user.client.ui.Composite

An abstract "Sidebar" widget to decorate a DecoratedGridWidget


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
 
Field Summary
protected  DecoratedGridWidget<T> grid
           
protected  HasRows hasRows
           
protected static DecisionTableResources resource
           
protected static DecisionTableResources.DecisionTableStyle style
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
DecoratedGridSidebarWidget(DecoratedGridWidget<T> grid, HasRows hasRows)
          Construct a "Sidebar" for the provided DecoratedGridWidget.
 
Method Summary
abstract  void deleteSelector(DynamicDataRow row)
          Delete a Selector for the given row.
abstract  void insertSelector(DynamicDataRow row)
          Insert a Selector for the given row.
abstract  void redraw()
          Redraw the sidebar, this involves clearing any content before calling to addSelector for each row in the grid's data
abstract  void resizeSidebar(int height)
          Resize the sidebar.
abstract  void setScrollPosition(int position)
          Set scroll position to enable some degree of synchronisation between DecisionTable and DecisionTableSidebar
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
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, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

grid

protected DecoratedGridWidget<T> grid

hasRows

protected HasRows hasRows

resource

protected static final DecisionTableResources resource

style

protected static final DecisionTableResources.DecisionTableStyle style
Constructor Detail

DecoratedGridSidebarWidget

public DecoratedGridSidebarWidget(DecoratedGridWidget<T> grid,
                                  HasRows hasRows)
Construct a "Sidebar" for the provided DecoratedGridWidget. The sidebar will call upon the HasRows to facilitate addition and removal of rows.

Parameters:
grid -
hasRows -
Method Detail

deleteSelector

public abstract void deleteSelector(DynamicDataRow row)
Delete a Selector for the given row.

Parameters:
row -

insertSelector

public abstract void insertSelector(DynamicDataRow row)
Insert a Selector for the given row.

Parameters:
row - The row for which the selector will be added

redraw

public abstract void redraw()
Redraw the sidebar, this involves clearing any content before calling to addSelector for each row in the grid's data


resizeSidebar

public abstract void resizeSidebar(int height)
Resize the sidebar.

Parameters:
height -

setScrollPosition

public abstract void setScrollPosition(int position)
Set scroll position to enable some degree of synchronisation between DecisionTable and DecisionTableSidebar

Parameters:
position -


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.