org.drools.guvnor.client.widgets.drools.decoratedgrid
Class DynamicColumn<T>
java.lang.Object
org.drools.guvnor.client.widgets.drools.decoratedgrid.DynamicBaseColumn
org.drools.guvnor.client.widgets.drools.decoratedgrid.DynamicColumn<T>
- Type Parameters:
T
- The type of domain columns represented
- All Implemented Interfaces:
- com.google.gwt.cell.client.HasCell<DynamicDataRow,CellValue<? extends Comparable<?>>>, com.google.gwt.event.logical.shared.HasValueChangeHandlers<SortConfiguration>, com.google.gwt.event.shared.HasHandlers
public class DynamicColumn<T>
- extends DynamicBaseColumn
- implements com.google.gwt.event.logical.shared.HasValueChangeHandlers<SortConfiguration>
A column that retrieves it's cell value from an indexed position in a List
holding the row data. Normally the row type is defined as a statically typed
Class and columns retrieve their cell values from discrete members. A
Decision Table's row contains dynamic (i.e. a List) of elements.
Constructor Summary |
DynamicColumn(T modelColumn,
DecoratedGridCellValueAdaptor<? extends Comparable<?>> cell,
com.google.gwt.event.shared.EventBus eventBus)
|
DynamicColumn(T modelColumn,
DecoratedGridCellValueAdaptor<? extends Comparable<?>> cell,
int columnIndex,
boolean isSystemControlled,
boolean isSortable,
com.google.gwt.event.shared.EventBus eventBus)
|
DynamicColumn(T modelColumn,
DecoratedGridCellValueAdaptor<? extends Comparable<?>> cell,
int columnIndex,
com.google.gwt.event.shared.EventBus eventBus)
|
DynamicColumn(T modelColumn,
com.google.gwt.event.shared.EventBus eventBus)
|
DynamicColumn
public DynamicColumn(T modelColumn,
com.google.gwt.event.shared.EventBus eventBus)
DynamicColumn
public DynamicColumn(T modelColumn,
DecoratedGridCellValueAdaptor<? extends Comparable<?>> cell,
com.google.gwt.event.shared.EventBus eventBus)
DynamicColumn
public DynamicColumn(T modelColumn,
DecoratedGridCellValueAdaptor<? extends Comparable<?>> cell,
int columnIndex,
com.google.gwt.event.shared.EventBus eventBus)
DynamicColumn
public DynamicColumn(T modelColumn,
DecoratedGridCellValueAdaptor<? extends Comparable<?>> cell,
int columnIndex,
boolean isSystemControlled,
boolean isSortable,
com.google.gwt.event.shared.EventBus eventBus)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
getColumnIndex
public int getColumnIndex()
getModelColumn
public T getModelColumn()
getSortConfiguration
public SortConfiguration getSortConfiguration()
getSortDirection
public SortDirection getSortDirection()
getSortIndex
public int getSortIndex()
getValue
public CellValue<?> getValue(DynamicDataRow object)
- Description copied from class:
DynamicBaseColumn
- Returns the column value from within the underlying data object.
- Specified by:
getValue
in interface com.google.gwt.cell.client.HasCell<DynamicDataRow,CellValue<? extends Comparable<?>>>
- Specified by:
getValue
in class DynamicBaseColumn
getWidth
public int getWidth()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isSortable
public boolean isSortable()
isSystemControlled
public boolean isSystemControlled()
isVisible
public boolean isVisible()
setColumnIndex
public void setColumnIndex(int columnIndex)
setSortable
public void setSortable(boolean isSortable)
setSortDirection
public void setSortDirection(SortDirection sortDirection)
setSortIndex
public void setSortIndex(int sortIndex)
clearSortIndex
public void clearSortIndex()
setSystemControlled
public void setSystemControlled(boolean isSystemControlled)
setVisible
public void setVisible(boolean isVisible)
setWidth
public void setWidth(int width)
addValueChangeHandler
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<SortConfiguration> handler)
- Specified by:
addValueChangeHandler
in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<SortConfiguration>
fireEvent
public void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
- Specified by:
fireEvent
in interface com.google.gwt.event.shared.HasHandlers
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.