Class ScenarioGridColumn
- java.lang.Object
-
- org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridColumn<String>
-
- org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGridColumn
-
-
Field Summary
Fields Modifier and Type Field Description protected booleaneditableHeadersflag to know if the headers are editable or not (as in the DMN-scenario case);trueon instantiationprotected org.drools.scenariosimulation.api.model.FactIdentifierfactIdentifierTheFactIdentifiermapped to this column; default toFactIdentifier.EMPTYprotected ScenarioHeaderMetaDatainformationHeaderMetaDataprotected booleaninstanceAssignedflag to know if an instance has been already assigned to this column;falseon instantiationprotected booleanpropertyAssignedflag to know if a property has been already assigned to this column;falseon instantiationprotected ScenarioHeaderMetaDatapropertyHeaderMetaData
-
Constructor Summary
Constructors Constructor Description ScenarioGridColumn(List<org.uberfire.ext.wires.core.grids.client.model.GridColumn.HeaderMetaData> headerMetaData, org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.columns.GridColumnRenderer<String> columnRenderer, double width, boolean isMovable, org.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,? extends com.google.gwt.user.client.ui.Widget,? extends org.uberfire.ext.wires.core.grids.client.widget.dom.impl.BaseDOMElement<String,? extends com.google.gwt.user.client.ui.Widget>> factory, String placeHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidedit(org.uberfire.ext.wires.core.grids.client.model.GridCell<String> cell, org.uberfire.ext.wires.core.grids.client.widget.context.GridBodyCellRenderContext context, Consumer<org.uberfire.ext.wires.core.grids.client.model.GridCellValue<String>> callback)org.drools.scenariosimulation.api.model.FactIdentifiergetFactIdentifier()ScenarioHeaderMetaDatagetInformationHeaderMetaData()StringgetPlaceHolder()ScenarioHeaderMetaDatagetPropertyHeaderMetaData()booleanisEditableHeaders()booleanisInstanceAssigned()booleanisPropertyAssigned()booleanisReadOnly()Dynamically evaluated status to know if the values of the given column are editable or notvoidsetEditableHeaders(boolean editableHeaders)Set tofalseto prevent/avoid header editingvoidsetFactIdentifier(org.drools.scenariosimulation.api.model.FactIdentifier factIdentifier)voidsetFactory(org.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,? extends com.google.gwt.user.client.ui.Widget,? extends org.uberfire.ext.wires.core.grids.client.widget.dom.impl.BaseDOMElement<String,? extends com.google.gwt.user.client.ui.Widget>> factory)Set the factory used for creation of the editingDOMElementvoidsetInstanceAssigned(boolean instanceAssigned)Set totrueif an instance has been assigned,falseotherwise.voidsetPlaceHolder(String placeHolder)voidsetPropertyAssigned(boolean propertyAssigned)Set totrueif a property has been assigned,falseotherwise.StringtoString()-
Methods inherited from class org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridColumn
equals, getColumnRenderer, getColumnWidthMode, getHeaderMetaData, getIndex, getLink, getMaximumWidth, getMinimumWidth, getWidth, hashCode, isFloatable, isLinked, isMovable, isResizable, isVisible, setColumnWidthMode, setFloatable, setIndex, setLink, setMaximumWidth, setMinimumWidth, setMovable, setResizable, setVisible, setWidth
-
-
-
-
Field Detail
-
informationHeaderMetaData
protected final ScenarioHeaderMetaData informationHeaderMetaData
-
propertyHeaderMetaData
protected final ScenarioHeaderMetaData propertyHeaderMetaData
-
instanceAssigned
protected boolean instanceAssigned
flag to know if an instance has been already assigned to this column;falseon instantiation
-
propertyAssigned
protected boolean propertyAssigned
flag to know if a property has been already assigned to this column;falseon instantiation
-
editableHeaders
protected boolean editableHeaders
flag to know if the headers are editable or not (as in the DMN-scenario case);trueon instantiation
-
factIdentifier
protected org.drools.scenariosimulation.api.model.FactIdentifier factIdentifier
TheFactIdentifiermapped to this column; default toFactIdentifier.EMPTY
-
-
Constructor Detail
-
ScenarioGridColumn
public ScenarioGridColumn(List<org.uberfire.ext.wires.core.grids.client.model.GridColumn.HeaderMetaData> headerMetaData, org.uberfire.ext.wires.core.grids.client.widget.grid.renderers.columns.GridColumnRenderer<String> columnRenderer, double width, boolean isMovable, org.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,? extends com.google.gwt.user.client.ui.Widget,? extends org.uberfire.ext.wires.core.grids.client.widget.dom.impl.BaseDOMElement<String,? extends com.google.gwt.user.client.ui.Widget>> factory, String placeHolder)
-
-
Method Detail
-
edit
public void edit(org.uberfire.ext.wires.core.grids.client.model.GridCell<String> cell, org.uberfire.ext.wires.core.grids.client.widget.context.GridBodyCellRenderContext context, Consumer<org.uberfire.ext.wires.core.grids.client.model.GridCellValue<String>> callback)
-
setFactory
public void setFactory(org.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<String,? extends com.google.gwt.user.client.ui.Widget,? extends org.uberfire.ext.wires.core.grids.client.widget.dom.impl.BaseDOMElement<String,? extends com.google.gwt.user.client.ui.Widget>> factory)
Set the factory used for creation of the editingDOMElement- Parameters:
factory-
-
isReadOnly
public boolean isReadOnly()
Dynamically evaluated status to know if the values of the given column are editable or not- Returns:
-
isInstanceAssigned
public boolean isInstanceAssigned()
-
setInstanceAssigned
public void setInstanceAssigned(boolean instanceAssigned)
Set totrueif an instance has been assigned,falseotherwise. Setting this tofalseautomatically set tofalsealsopropertyAssigned- Parameters:
instanceAssigned-
-
isPropertyAssigned
public boolean isPropertyAssigned()
-
setPropertyAssigned
public void setPropertyAssigned(boolean propertyAssigned)
Set totrueif a property has been assigned,falseotherwise. Setting this totrueautomatically set totruealsoinstanceAssigned- Parameters:
propertyAssigned-
-
isEditableHeaders
public boolean isEditableHeaders()
-
setEditableHeaders
public void setEditableHeaders(boolean editableHeaders)
Set tofalseto prevent/avoid header editing- Parameters:
editableHeaders-
-
setPlaceHolder
public void setPlaceHolder(String placeHolder)
- Overrides:
setPlaceHolderin classorg.uberfire.ext.wires.core.grids.client.model.impl.BaseGridColumn<String>
-
getInformationHeaderMetaData
public ScenarioHeaderMetaData getInformationHeaderMetaData()
-
getPropertyHeaderMetaData
public ScenarioHeaderMetaData getPropertyHeaderMetaData()
-
getPlaceHolder
public String getPlaceHolder()
- Overrides:
getPlaceHolderin classorg.uberfire.ext.wires.core.grids.client.model.impl.BaseGridColumn<String>
-
getFactIdentifier
public org.drools.scenariosimulation.api.model.FactIdentifier getFactIdentifier()
-
setFactIdentifier
public void setFactIdentifier(org.drools.scenariosimulation.api.model.FactIdentifier factIdentifier)
-
-