|
||||||||||
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.Composite
org.drools.guvnor.client.widgets.decoratedgrid.DecoratedGridWidget<T>
T
- The type of domain columns represented by the Gridpublic abstract class DecoratedGridWidget<T>
Abstract grid, decorated with DecoratedGridHeaderWidget and DecoratedGridSidebarWidget encapsulating basic operation: keyboard navigation and column resizing.
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 com.google.gwt.user.client.ui.Panel |
bodyPanel
|
protected MergableGridWidget<T> |
gridWidget
|
protected HasSystemControlledColumns |
hasSystemControlledColumns
|
protected DecoratedGridHeaderWidget<T> |
headerWidget
|
protected int |
height
|
protected com.google.gwt.user.client.ui.Panel |
mainPanel
|
protected static DecisionTableResources |
resource
|
protected com.google.gwt.user.client.ui.ScrollPanel |
scrollPanel
|
protected DecoratedGridSidebarWidget<T> |
sidebarWidget
|
protected static DecisionTableResources.DecisionTableStyle |
style
|
protected int |
width
|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
DecoratedGridWidget()
Construct at empty DecoratedGridWidget, without DecoratedGridHeaderWidget or DecoratedGridSidebarWidget These should be set before the grid is displayed using setHeaderWidget and setSidebarWidget respectively. |
Method Summary | |
---|---|
void |
appendColumn(DynamicColumn<T> column,
List<CellValue<? extends Comparable<?>>> columnData,
boolean bRedraw)
Append a column to the end of the column list |
void |
assertDimensions()
Resize the DecoratedGridHeaderWidget and DecoratedGridSidebarWidget when DecoratedGridWidget shows scrollbars |
void |
deleteColumn(DynamicColumn<T> column)
Delete the given column |
void |
deleteRow(DynamicDataRow row)
Delete the given row |
abstract com.google.gwt.user.client.ui.Panel |
getBodyPanel()
Get the DecoratedGridWidget inner panel to which the DecoratedGridHeaderWidget will be added. |
abstract MergableGridWidget<T> |
getGridWidget()
Return the Widget responsible for rendering the DecoratedGridWidget "grid". |
DecoratedGridHeaderWidget<T> |
getHeaderWidget()
Return the Widget responsible for rendering the DecoratedGridWidget "header". |
abstract com.google.gwt.user.client.ui.Panel |
getMainPanel()
Return the DecoratedGridWidget outer most panel to which all child widgets is added. |
abstract com.google.gwt.event.dom.client.ScrollHandler |
getScrollHandler()
Return the ScrollPanel in which the DecoratedGridWidget "grid" is nested. |
DecoratedGridSidebarWidget<T> |
getSidebarWidget()
Return the Widget responsible for rendering the DecoratedGridWidget "sidebar". |
void |
insertColumnBefore(DynamicColumn<T> columnBefore,
DynamicColumn<T> newColumn,
List<CellValue<? extends Comparable<?>>> columnData,
boolean bRedraw)
Insert a column before that specified |
void |
insertRowBefore(DynamicDataRow rowBefore,
List<CellValue<? extends Comparable<?>>> rowData)
Insert a row before that specified |
void |
redrawSystemControlledColumns()
Redraw any columns that have their values programmatically manipulated |
void |
setColumnVisibility(int index,
boolean isVisible)
Set the visibility of a column |
void |
setHasSystemControlledColumns(HasSystemControlledColumns hasSystemControlledColumns)
Some implementations may require the values of cells within the DecoratedGridWidget to be programmatically manipulated (such as "Row Number", which has to be recalculated after a sort operation). |
void |
setHeaderWidget(DecoratedGridHeaderWidget<T> headerWidget)
Set the Header Widget and attach resize handlers to GridWidget to support column resizing and to resize GridWidget's ScrollPanel when header resizes. |
void |
setPixelSize(int width,
int height)
This should be used instead of setHeight(String) and setWidth(String) as various child Widgets of the DecisionTable need to have their sizes set relative to the outermost Widget (i.e. this). |
void |
setSidebarWidget(DecoratedGridSidebarWidget<T> sidebarWidget)
Set the SidebarWidget and attach a ResizeEvent handler to the Sidebar for when the header changes size and the Sidebar needs to be redrawn to align correctly. |
void |
sort()
Sort data based upon information stored in Columns |
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, 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, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected com.google.gwt.user.client.ui.Panel mainPanel
protected com.google.gwt.user.client.ui.Panel bodyPanel
protected com.google.gwt.user.client.ui.ScrollPanel scrollPanel
protected MergableGridWidget<T> gridWidget
protected DecoratedGridHeaderWidget<T> headerWidget
protected DecoratedGridSidebarWidget<T> sidebarWidget
protected HasSystemControlledColumns hasSystemControlledColumns
protected int height
protected int width
protected static final DecisionTableResources resource
protected static final DecisionTableResources.DecisionTableStyle style
Constructor Detail |
---|
public DecoratedGridWidget()
Method Detail |
---|
public void appendColumn(DynamicColumn<T> column, List<CellValue<? extends Comparable<?>>> columnData, boolean bRedraw)
column
- columnData
- bRedraw
- Redraw the grid after the column has been appendedpublic void assertDimensions()
public void deleteColumn(DynamicColumn<T> column)
column
- public void deleteRow(DynamicDataRow row)
row
- public abstract com.google.gwt.user.client.ui.Panel getBodyPanel()
public abstract MergableGridWidget<T> getGridWidget()
public DecoratedGridHeaderWidget<T> getHeaderWidget()
public abstract com.google.gwt.user.client.ui.Panel getMainPanel()
public abstract com.google.gwt.event.dom.client.ScrollHandler getScrollHandler()
public DecoratedGridSidebarWidget<T> getSidebarWidget()
public void insertColumnBefore(DynamicColumn<T> columnBefore, DynamicColumn<T> newColumn, List<CellValue<? extends Comparable<?>>> columnData, boolean bRedraw)
columnBefore
- newColumn
- columnData
- bRedraw
- Redraw the grid after the column has been insertedpublic void insertRowBefore(DynamicDataRow rowBefore, List<CellValue<? extends Comparable<?>>> rowData)
rowBefore
- Row before which the new row will be inserted, or null in
which case the row will be appended to the endrowData
- New row datapublic void redrawSystemControlledColumns()
public void setColumnVisibility(int index, boolean isVisible)
index
- The index of the column to hideisVisible
- true if the column is to be visiblepublic void setHasSystemControlledColumns(HasSystemControlledColumns hasSystemControlledColumns)
hasSystemControlledColumns
- public void setHeaderWidget(DecoratedGridHeaderWidget<T> headerWidget)
headerWidget
- public void setPixelSize(int width, int height)
setPixelSize
in class com.google.gwt.user.client.ui.UIObject
public void setSidebarWidget(DecoratedGridSidebarWidget<T> sidebarWidget)
sidebarWidget
- public void sort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |