Class ConsumerFactory
- java.lang.Object
-
- org.drools.workbench.screens.guided.dtable.client.widget.table.columns.ConsumerFactory
-
public class ConsumerFactory extends Object
Factory for common consumers used by the different columns.
-
-
Constructor Summary
Constructors Constructor Description ConsumerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,W extends org.gwtbootstrap3.client.ui.TextBox,E extends SingleValueDOMElement<T,W>,F extends SingleValueSingletonDOMElementFactory<T,W,E>>
Consumer<E>makeOnCreationCallback(F factory, org.uberfire.ext.wires.core.grids.client.model.GridCell<T> cell)Callback to set the value of a TextBox based on the Cells value.static <T,W extends org.gwtbootstrap3.client.ui.ListBox,E extends MultiValueDOMElement<T,W>,F extends MultiValueSingletonDOMElementFactory<T,W,E>>
Consumer<E>makeOnCreationCallback(F factory, org.uberfire.ext.wires.core.grids.client.model.GridCell<T> cell, Map<String,String> enumLookups)Callback to select an item in a ListBox based on the Cells value.static <E extends SingleValueDOMElement<Date,org.uberfire.ext.widgets.common.client.common.DatePicker>>
Consumer<E>makeOnCreationCallback(org.uberfire.ext.wires.core.grids.client.model.GridCell<Date> cell)Callback to set the value of a DatePicker based on the Cells value.static <E extends SingleValueDOMElement<Date,org.uberfire.ext.widgets.common.client.common.DatePicker>>
Consumer<E>makeOnDisplayDatePickerCallback()Callback to set the Focus on the DatePicker.static <T,W extends org.gwtbootstrap3.client.ui.ListBox,E extends MultiValueDOMElement<T,W>>
Consumer<E>makeOnDisplayListBoxCallback()Callback to set the Focus on the ListBox.static <T,W extends org.gwtbootstrap3.client.ui.TextBox,E extends SingleValueDOMElement<T,W>>
Consumer<E>makeOnDisplayTextBoxCallback()Callback to set the Focus on the TextBox.
-
-
-
Method Detail
-
makeOnCreationCallback
public static <T,W extends org.gwtbootstrap3.client.ui.TextBox,E extends SingleValueDOMElement<T,W>,F extends SingleValueSingletonDOMElementFactory<T,W,E>> Consumer<E> makeOnCreationCallback(F factory, org.uberfire.ext.wires.core.grids.client.model.GridCell<T> cell)
Callback to set the value of a TextBox based on the Cells value.- Parameters:
factory- Factory that can convert Cells' values to String.cell- The Cell to be rendered.- Returns:
-
makeOnDisplayTextBoxCallback
public static <T,W extends org.gwtbootstrap3.client.ui.TextBox,E extends SingleValueDOMElement<T,W>> Consumer<E> makeOnDisplayTextBoxCallback()
Callback to set the Focus on the TextBox.- Returns:
-
makeOnCreationCallback
public static <T,W extends org.gwtbootstrap3.client.ui.ListBox,E extends MultiValueDOMElement<T,W>,F extends MultiValueSingletonDOMElementFactory<T,W,E>> Consumer<E> makeOnCreationCallback(F factory, org.uberfire.ext.wires.core.grids.client.model.GridCell<T> cell, Map<String,String> enumLookups)
Callback to select an item in a ListBox based on the Cells value.- Parameters:
factory- Factory that can convert Cells' values to String.cell- The Cell to be rendered.- Returns:
-
makeOnDisplayListBoxCallback
public static <T,W extends org.gwtbootstrap3.client.ui.ListBox,E extends MultiValueDOMElement<T,W>> Consumer<E> makeOnDisplayListBoxCallback()
Callback to set the Focus on the ListBox.- Returns:
-
makeOnCreationCallback
public static <E extends SingleValueDOMElement<Date,org.uberfire.ext.widgets.common.client.common.DatePicker>> Consumer<E> makeOnCreationCallback(org.uberfire.ext.wires.core.grids.client.model.GridCell<Date> cell)
Callback to set the value of a DatePicker based on the Cells value.- Parameters:
cell- The Cell to be rendered.- Returns:
-
makeOnDisplayDatePickerCallback
public static <E extends SingleValueDOMElement<Date,org.uberfire.ext.widgets.common.client.common.DatePicker>> Consumer<E> makeOnDisplayDatePickerCallback()
Callback to set the Focus on the DatePicker.- Returns:
-
-