Class ScenarioGridColumn

  • All Implemented Interfaces:
    org.uberfire.ext.wires.core.grids.client.model.GridColumn<String>

    public class ScenarioGridColumn
    extends org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridColumn<String>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.uberfire.ext.wires.core.grids.client.model.GridColumn

        org.uberfire.ext.wires.core.grids.client.model.GridColumn.ColumnWidthMode, org.uberfire.ext.wires.core.grids.client.model.GridColumn.HeaderMetaData
    • Field Summary

      Fields 
      Modifier and Type Field 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  
      • Fields inherited from class org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridColumn

        placeHolder
    • 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
      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()  
      • 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
      • Methods inherited from interface org.uberfire.ext.wires.core.grids.client.model.GridColumn

        edit
    • Field Detail

      • instanceAssigned

        protected boolean instanceAssigned
        flag to know if an instance has been already assigned to this column; false on instantiation
      • propertyAssigned

        protected boolean propertyAssigned
        flag to know if a property has been already assigned to this column; false on instantiation
      • editableHeaders

        protected boolean editableHeaders
        flag to know if the headers are editable or not (as in the DMN-scenario case); true on instantiation
      • factIdentifier

        protected org.drools.scenariosimulation.api.model.FactIdentifier factIdentifier
        The FactIdentifier mapped to this column; default to FactIdentifier.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 editing DOMElement
        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 to true if an instance has been assigned, false otherwise. Setting this to false automatically set to false also propertyAssigned
        Parameters:
        instanceAssigned -
      • isPropertyAssigned

        public boolean isPropertyAssigned()
      • setPropertyAssigned

        public void setPropertyAssigned​(boolean propertyAssigned)
        Set to true if a property has been assigned, false otherwise. Setting this to true automatically set to true also instanceAssigned
        Parameters:
        propertyAssigned -
      • isEditableHeaders

        public boolean isEditableHeaders()
      • setEditableHeaders

        public void setEditableHeaders​(boolean editableHeaders)
        Set to false to prevent/avoid header editing
        Parameters:
        editableHeaders -
      • setPlaceHolder

        public void setPlaceHolder​(String placeHolder)
        Overrides:
        setPlaceHolder in class org.uberfire.ext.wires.core.grids.client.model.impl.BaseGridColumn<String>
      • getPlaceHolder

        public String getPlaceHolder()
        Overrides:
        getPlaceHolder in class org.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)