Class ColumnListEditor
- java.lang.Object
-
- org.dashbuilder.client.widgets.dataset.editor.column.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 interfaceColumnListEditor.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>>
-
-
Field Summary
Fields Modifier and Type Field Description ColumnListEditor.Viewview
-
Constructor Summary
Constructors Constructor Description ColumnListEditor(org.jboss.errai.ioc.client.container.SyncBeanManager beanManager, DataColumnDefDriver dataColumnDefDriver, javax.enterprise.event.Event<ColumnsChangedEvent> columnsChangedEvent, ColumnListEditor.View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.user.client.ui.WidgetasWidget()voidclear()org.dashbuilder.dataset.client.editor.DataColumnDefEditorcreateEditorForTraversal()GWT EDITOR CONTRACT METHODS **voidflush()StringgetPathElement(org.dashbuilder.dataset.client.editor.DataColumnDefEditor subEditor)voidinit()voidonPropertyChange(String... paths)voidonValueRestricted(String value)Set the column that cannot be removed from the list, as it's used by the filter.voidonValueUnRestricted(String value)Set the column that can be removed again from the list, as it's no longer used by the filter.voidsetAcceptableValues(List<org.dashbuilder.dataset.def.DataColumnDef> acceptableValues)Set all data set available columns (not only the current used ones)voidsetDelegate(com.google.gwt.editor.client.EditorDelegate<List<org.dashbuilder.dataset.def.DataColumnDef>> delegate)voidsetEditorChain(com.google.gwt.editor.client.CompositeEditor.EditorChain<org.dashbuilder.dataset.def.DataColumnDef,org.dashbuilder.dataset.client.editor.DataColumnDefEditor> chain)voidsetProviderType(org.dashbuilder.dataprovider.DataSetProviderType type)voidsetValue(List<org.dashbuilder.dataset.def.DataColumnDef> value)voidshowErrors(List<com.google.gwt.editor.client.EditorError> errors)
-
-
-
Field Detail
-
view
public ColumnListEditor.View view
-
-
Constructor Detail
-
ColumnListEditor
@Inject public ColumnListEditor(org.jboss.errai.ioc.client.container.SyncBeanManager beanManager, DataColumnDefDriver dataColumnDefDriver, javax.enterprise.event.Event<ColumnsChangedEvent> columnsChangedEvent, ColumnListEditor.View view)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
- Specified by:
asWidgetin interfacecom.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:
setAcceptableValuesin interfaceorg.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:
onValueRestrictedin interfaceorg.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:
onValueUnRestrictedin interfaceorg.dashbuilder.common.client.editor.HasRestrictedValue<String>- Parameters:
value- The column id.
-
setProviderType
public void setProviderType(org.dashbuilder.dataprovider.DataSetProviderType type)
- Specified by:
setProviderTypein interfaceorg.dashbuilder.dataset.client.editor.ColumnListEditor
-
clear
public void clear()
-
createEditorForTraversal
public org.dashbuilder.dataset.client.editor.DataColumnDefEditor createEditorForTraversal()
GWT EDITOR CONTRACT METHODS **- Specified by:
createEditorForTraversalin interfacecom.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:
getPathElementin interfacecom.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:
setEditorChainin interfacecom.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:
setDelegatein interfacecom.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:
showErrorsin interfacecom.google.gwt.editor.client.HasEditorErrors<List<org.dashbuilder.dataset.def.DataColumnDef>>
-
flush
public void flush()
- Specified by:
flushin interfacecom.google.gwt.editor.client.ValueAwareEditor<List<org.dashbuilder.dataset.def.DataColumnDef>>
-
onPropertyChange
public void onPropertyChange(String... paths)
- Specified by:
onPropertyChangein interfacecom.google.gwt.editor.client.ValueAwareEditor<List<org.dashbuilder.dataset.def.DataColumnDef>>
-
-