|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.CellPanel
org.drools.guvnor.client.widgets.decoratedgrid.DecoratedGridHeaderWidget<T>
T
- The type of domain columns represented by the Headerpublic abstract class DecoratedGridHeaderWidget<T>
An abstract "Header" widget to decorate a DecoratedGridWidget
Nested Class Summary | |
---|---|
class |
DecoratedGridHeaderWidget.ResizerInformation
Container class for information relating to re-size operations |
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.IndexedPanel |
---|
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
Field Summary | |
---|---|
protected static Constants |
constants
|
protected DecoratedGridWidget<T> |
grid
|
protected com.google.gwt.user.client.ui.Panel |
panel
|
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 | |
---|---|
DecoratedGridHeaderWidget(DecoratedGridWidget<T> grid)
Construct a "Header" for the provided DecoratedGridWidget |
Method Summary | |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addColumnResizeHandler(ColumnResizeHandler handler)
Adds a ColumnResizeEvent handler. |
com.google.gwt.event.shared.HandlerRegistration |
addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler)
|
protected abstract com.google.gwt.user.client.ui.Widget |
getHeaderWidget()
Get the Widget that should be wrapped by the scroll panel and resize handlers. |
protected abstract DecoratedGridHeaderWidget.ResizerInformation |
getResizerInformation(int mx)
Given the X-coordinate check whether resizing of any column should be enabled. |
abstract void |
redraw()
Redraw entire header |
protected abstract void |
resizeColumn(DynamicColumn<T> resizeColumn,
int resizeColumnWidth)
Resize the Header column |
abstract void |
setScrollPosition(int position)
Set scroll position to enable some degree of synchronisation between DecisionTable and DecisionTableHeader |
void |
setWidth(String width)
|
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, getWidgetIndex, insert, insert, iterator, remove, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
add, add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Field Detail |
---|
protected com.google.gwt.user.client.ui.Panel panel
protected DecoratedGridWidget<T> grid
protected static final DecisionTableResources resource
protected static final DecisionTableResources.DecisionTableStyle style
protected static final Constants constants
Constructor Detail |
---|
public DecoratedGridHeaderWidget(DecoratedGridWidget<T> grid)
grid
- Method Detail |
---|
public com.google.gwt.event.shared.HandlerRegistration addColumnResizeHandler(ColumnResizeHandler handler)
HasColumnResizeHandlers
ColumnResizeEvent
handler.
addColumnResizeHandler
in interface HasColumnResizeHandlers
handler
- the handler
public com.google.gwt.event.shared.HandlerRegistration addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler)
addResizeHandler
in interface com.google.gwt.event.logical.shared.HasResizeHandlers
public abstract void redraw()
public abstract void setScrollPosition(int position)
position
- public void setWidth(String width)
setWidth
in class com.google.gwt.user.client.ui.UIObject
protected abstract com.google.gwt.user.client.ui.Widget getHeaderWidget()
protected abstract DecoratedGridHeaderWidget.ResizerInformation getResizerInformation(int mx)
mx
- the MouseMoveEvent.event.getClientX() coordinate
protected abstract void resizeColumn(DynamicColumn<T> resizeColumn, int resizeColumnWidth)
resizeColumn
- resizeColumnWidth
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |