Class MultiValueSingletonDOMElementFactory<T,​W extends org.gwtbootstrap3.client.ui.ListBox,​E extends MultiValueDOMElement<T,​W>>

  • All Implemented Interfaces:
    org.uberfire.ext.wires.core.grids.client.widget.dom.DOMElementFactory<W,​E>, org.uberfire.ext.wires.core.grids.client.widget.dom.HasDOMElementResources, org.uberfire.ext.wires.core.grids.client.widget.dom.single.HasSingletonDOMElementResource, org.uberfire.ext.wires.core.grids.client.widget.dom.single.SingletonDOMElementFactory<W,​E>
    Direct Known Subclasses:
    ListBoxSingletonDOMElementFactory

    public abstract class MultiValueSingletonDOMElementFactory<T,​W extends org.gwtbootstrap3.client.ui.ListBox,​E extends MultiValueDOMElement<T,​W>>
    extends org.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory<T,​W,​E>
    A DOMElement Factory for single-instance multi-value DOMElements.
    • Field Summary

      • Fields inherited from class org.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory

        e, gridLayer, gridPanel, gridWidget, widget
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiValueSingletonDOMElementFactory​(org.uberfire.ext.wires.core.grids.client.widget.layer.impl.GridLienzoPanel gridPanel, org.uberfire.ext.wires.core.grids.client.widget.layer.GridLayer gridLayer, GuidedDecisionTableView gridWidget)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract T convert​(String value)
      Convert from the given String to a typed value
      abstract String convert​(T value)
      Convert from the given typed value to a String
      T fromWidget​(W widget)  
      void toWidget​(org.uberfire.ext.wires.core.grids.client.model.GridCell<T> cell, W widget)  
      • Methods inherited from class org.uberfire.ext.wires.core.grids.client.widget.dom.single.impl.BaseSingletonDOMElementFactory

        attachDomElement, createDomElement, createDomElementInternal, destroyOrFlushKeyDownHandler, destroyResources, flush, getValue, registerHandlers
      • Methods inherited from interface org.uberfire.ext.wires.core.grids.client.widget.dom.DOMElementFactory

        createWidget
    • Constructor Detail

      • MultiValueSingletonDOMElementFactory

        public MultiValueSingletonDOMElementFactory​(org.uberfire.ext.wires.core.grids.client.widget.layer.impl.GridLienzoPanel gridPanel,
                                                    org.uberfire.ext.wires.core.grids.client.widget.layer.GridLayer gridLayer,
                                                    GuidedDecisionTableView gridWidget)
    • Method Detail

      • toWidget

        public void toWidget​(org.uberfire.ext.wires.core.grids.client.model.GridCell<T> cell,
                             W widget)
      • fromWidget

        public T fromWidget​(W widget)
      • convert

        public abstract String convert​(T value)
        Convert from the given typed value to a String
        Parameters:
        value - The value to be converted
        Returns:
        A String representing the type
      • convert

        public abstract T convert​(String value)
        Convert from the given String to a typed value
        Parameters:
        value - The String to be converted
        Returns:
        A typed value