Modifier and Type | Field and Description |
---|---|
protected boolean |
editableHeaders
flag to know if the headers are editable or not (as in the DMN-scenario case);
true on instantiation |
protected org.drools.scenariosimulation.api.model.FactIdentifier |
factIdentifier
The
FactIdentifier mapped to this column; default to FactIdentifier.EMPTY |
protected ScenarioHeaderMetaData |
informationHeaderMetaData |
protected boolean |
instanceAssigned
flag to know if an instance has been already assigned to this column;
false on instantiation |
protected boolean |
propertyAssigned
flag to know if a property has been already assigned to this column;
false on instantiation |
protected ScenarioHeaderMetaData |
propertyHeaderMetaData |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
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) |
org.drools.scenariosimulation.api.model.FactIdentifier |
getFactIdentifier() |
ScenarioHeaderMetaData |
getInformationHeaderMetaData() |
String |
getPlaceHolder() |
ScenarioHeaderMetaData |
getPropertyHeaderMetaData() |
boolean |
isEditableHeaders() |
boolean |
isInstanceAssigned() |
boolean |
isPropertyAssigned() |
boolean |
isReadOnly()
Dynamically evaluated status to know if the values of the given column are editable or not
|
void |
setEditableHeaders(boolean editableHeaders)
Set to
false to prevent/avoid header editing |
void |
setFactIdentifier(org.drools.scenariosimulation.api.model.FactIdentifier factIdentifier) |
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 editing
DOMElement |
void |
setInstanceAssigned(boolean instanceAssigned)
Set to
true if an instance has been assigned, false otherwise. |
void |
setPlaceHolder(String placeHolder) |
void |
setPropertyAssigned(boolean propertyAssigned)
Set to
true if a property has been assigned, false otherwise. |
String |
toString() |
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
protected final ScenarioHeaderMetaData informationHeaderMetaData
protected final ScenarioHeaderMetaData propertyHeaderMetaData
protected boolean instanceAssigned
false
on instantiationprotected boolean propertyAssigned
false
on instantiationprotected boolean editableHeaders
true
on instantiationprotected org.drools.scenariosimulation.api.model.FactIdentifier factIdentifier
FactIdentifier
mapped to this column; default to FactIdentifier.EMPTY
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)
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)
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)
DOMElement
factory
- public boolean isReadOnly()
public boolean isInstanceAssigned()
public void setInstanceAssigned(boolean instanceAssigned)
true
if an instance has been assigned, false
otherwise.
Setting this to false
automatically set to false
also propertyAssigned
instanceAssigned
- public boolean isPropertyAssigned()
public void setPropertyAssigned(boolean propertyAssigned)
true
if a property has been assigned, false
otherwise.
Setting this to true
automatically set to true
also instanceAssigned
propertyAssigned
- public boolean isEditableHeaders()
public void setEditableHeaders(boolean editableHeaders)
false
to prevent/avoid header editingeditableHeaders
- public void setPlaceHolder(String placeHolder)
setPlaceHolder
in class org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridColumn<String>
public ScenarioHeaderMetaData getInformationHeaderMetaData()
public ScenarioHeaderMetaData getPropertyHeaderMetaData()
public String getPlaceHolder()
getPlaceHolder
in class org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridColumn<String>
public org.drools.scenariosimulation.api.model.FactIdentifier getFactIdentifier()
public void setFactIdentifier(org.drools.scenariosimulation.api.model.FactIdentifier factIdentifier)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.