Class ColumnListEditor

  • All Implemented Interfaces:
    com.google.gwt.editor.client.CompositeEditor<List<org.dashbuilder.dataset.def.DataColumnDef>,​org.dashbuilder.dataset.def.DataColumnDef,​org.dashbuilder.dataset.client.editor.DataColumnDefEditor>, com.google.gwt.editor.client.Editor<List<org.dashbuilder.dataset.def.DataColumnDef>>, com.google.gwt.editor.client.HasEditorDelegate<List<org.dashbuilder.dataset.def.DataColumnDef>>, com.google.gwt.editor.client.HasEditorErrors<List<org.dashbuilder.dataset.def.DataColumnDef>>, com.google.gwt.editor.client.ValueAwareEditor<List<org.dashbuilder.dataset.def.DataColumnDef>>, com.google.gwt.user.client.ui.IsWidget, org.dashbuilder.common.client.editor.HasConstrainedValue<List<org.dashbuilder.dataset.def.DataColumnDef>>, org.dashbuilder.common.client.editor.HasRestrictedValue<String>, org.dashbuilder.dataset.client.editor.ColumnListEditor

    @Dependent
    public class ColumnListEditor
    extends Object
    implements com.google.gwt.user.client.ui.IsWidget, org.dashbuilder.dataset.client.editor.ColumnListEditor

    Data Set column list editor presenter.

    Since:
    0.4.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  ColumnListEditor.View  
      • Nested classes/interfaces inherited from interface com.google.gwt.editor.client.CompositeEditor

        com.google.gwt.editor.client.CompositeEditor.EditorChain<C extends Object,​E extends com.google.gwt.editor.client.Editor<? super C>>
      • Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor

        com.google.gwt.editor.client.Editor.Ignore, com.google.gwt.editor.client.Editor.Path
    • Method Detail

      • asWidget

        public com.google.gwt.user.client.ui.Widget asWidget()
        Specified by:
        asWidget in interface com.google.gwt.user.client.ui.IsWidget
      • setAcceptableValues

        public void setAcceptableValues​(List<org.dashbuilder.dataset.def.DataColumnDef> acceptableValues)
        Set all data set available columns (not only the current used ones)
        Specified by:
        setAcceptableValues in interface org.dashbuilder.common.client.editor.HasConstrainedValue<List<org.dashbuilder.dataset.def.DataColumnDef>>
        Parameters:
        acceptableValues - Acceptable values for the editor.
      • onValueRestricted

        public void onValueRestricted​(String value)
        Set the column that cannot be removed from the list, as it's used by the filter.
        Specified by:
        onValueRestricted in interface org.dashbuilder.common.client.editor.HasRestrictedValue<String>
        Parameters:
        value - The column id.
      • onValueUnRestricted

        public void onValueUnRestricted​(String value)
        Set the column that can be removed again from the list, as it's no longer used by the filter.
        Specified by:
        onValueUnRestricted in interface org.dashbuilder.common.client.editor.HasRestrictedValue<String>
        Parameters:
        value - The column id.
      • setProviderType

        public void setProviderType​(org.dashbuilder.dataprovider.DataSetProviderType type)
        Specified by:
        setProviderType in interface org.dashbuilder.dataset.client.editor.ColumnListEditor
      • clear

        public void clear()
      • createEditorForTraversal

        public org.dashbuilder.dataset.client.editor.DataColumnDefEditor createEditorForTraversal()
        GWT EDITOR CONTRACT METHODS **
        Specified by:
        createEditorForTraversal in interface com.google.gwt.editor.client.CompositeEditor<List<org.dashbuilder.dataset.def.DataColumnDef>,​org.dashbuilder.dataset.def.DataColumnDef,​org.dashbuilder.dataset.client.editor.DataColumnDefEditor>
      • getPathElement

        public String getPathElement​(org.dashbuilder.dataset.client.editor.DataColumnDefEditor subEditor)
        Specified by:
        getPathElement in interface com.google.gwt.editor.client.CompositeEditor<List<org.dashbuilder.dataset.def.DataColumnDef>,​org.dashbuilder.dataset.def.DataColumnDef,​org.dashbuilder.dataset.client.editor.DataColumnDefEditor>
      • setEditorChain

        public void setEditorChain​(com.google.gwt.editor.client.CompositeEditor.EditorChain<org.dashbuilder.dataset.def.DataColumnDef,​org.dashbuilder.dataset.client.editor.DataColumnDefEditor> chain)
        Specified by:
        setEditorChain in interface com.google.gwt.editor.client.CompositeEditor<List<org.dashbuilder.dataset.def.DataColumnDef>,​org.dashbuilder.dataset.def.DataColumnDef,​org.dashbuilder.dataset.client.editor.DataColumnDefEditor>
      • setDelegate

        public void setDelegate​(com.google.gwt.editor.client.EditorDelegate<List<org.dashbuilder.dataset.def.DataColumnDef>> delegate)
        Specified by:
        setDelegate in interface com.google.gwt.editor.client.HasEditorDelegate<List<org.dashbuilder.dataset.def.DataColumnDef>>
      • showErrors

        public void showErrors​(List<com.google.gwt.editor.client.EditorError> errors)
        Specified by:
        showErrors in interface com.google.gwt.editor.client.HasEditorErrors<List<org.dashbuilder.dataset.def.DataColumnDef>>
      • flush

        public void flush()
        Specified by:
        flush in interface com.google.gwt.editor.client.ValueAwareEditor<List<org.dashbuilder.dataset.def.DataColumnDef>>
      • onPropertyChange

        public void onPropertyChange​(String... paths)
        Specified by:
        onPropertyChange in interface com.google.gwt.editor.client.ValueAwareEditor<List<org.dashbuilder.dataset.def.DataColumnDef>>
      • setValue

        public void setValue​(List<org.dashbuilder.dataset.def.DataColumnDef> value)
        Specified by:
        setValue in interface com.google.gwt.editor.client.ValueAwareEditor<List<org.dashbuilder.dataset.def.DataColumnDef>>