Class GroupingsEditProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
-
- com._1c.g5.v8.dt.qw.ui.editproviders.GroupingsEditProvider
-
public class GroupingsEditProvider extends AbstractQueryWizardEditProvider
Edit provider for groupings
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
AbstractQueryWizardEditProvider.MoveType
-
-
Field Summary
Fields Modifier and Type Field Description static int
SET_NEW_SOURCE_ALIAS
-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
source
-
-
Constructor Summary
Constructors Constructor Description GroupingsEditProvider(QueryWizardSource source)
Default constructorGroupingsEditProvider(QueryWizardSource source, QuerySchemaGroupingSets currentGroupingSets)
Constructor with actualQuerySchemaGroupingSets
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
add(Object value)
Add new valuevoid
addAll(Object[] values)
Add several valuesstatic QuerySchemaExpression
isCollectionContainExpression(QuerySchemaExpression expression, org.eclipse.emf.common.util.EList<QuerySchemaExpression> groupings, QueryWizardSource source)
Is grouping contain expressionboolean
remove(Object value)
Remove itemvoid
removeAll()
Remove all itemsboolean
setItemData(int itemFuture, Object item, Object newValue)
-
Methods inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
clearRemoveNodesAdapter, copy, copy, get, getSource, indexOf, isIndexValid, move, move, moveDown, moveUp, remove, replace, set
-
-
-
-
Field Detail
-
SET_NEW_SOURCE_ALIAS
public static final int SET_NEW_SOURCE_ALIAS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GroupingsEditProvider
public GroupingsEditProvider(QueryWizardSource source)
Default constructor- Parameters:
source
- query wizard source for getting query model, cannot benull
-
GroupingsEditProvider
public GroupingsEditProvider(QueryWizardSource source, QuerySchemaGroupingSets currentGroupingSets)
Constructor with actualQuerySchemaGroupingSets
- Parameters:
source
- query wizard source for getting query model, cannot benull
currentGroupingSets
- currentQuerySchemaGroupingSets
, can benull
if there is not grouping sets
-
-
Method Detail
-
isCollectionContainExpression
public static QuerySchemaExpression isCollectionContainExpression(QuerySchemaExpression expression, org.eclipse.emf.common.util.EList<QuerySchemaExpression> groupings, QueryWizardSource source)
Is grouping contain expression- Parameters:
expression
- query wizard expressiongroupings
- groupings expressions list- Returns:
- null if not contained otherwise expression from groupings
-
add
public Object add(Object value)
Description copied from class:AbstractQueryWizardEditProvider
Add new value- Overrides:
add
in classAbstractQueryWizardEditProvider
- Parameters:
value
- - new value- Returns:
- - new added value
-
addAll
public void addAll(Object[] values)
Description copied from class:AbstractQueryWizardEditProvider
Add several values- Overrides:
addAll
in classAbstractQueryWizardEditProvider
- Parameters:
values
- - values need to be added
-
remove
public boolean remove(Object value)
Description copied from class:AbstractQueryWizardEditProvider
Remove item- Overrides:
remove
in classAbstractQueryWizardEditProvider
- Parameters:
value
- - value which need to be removed- Returns:
- true if successfully else false
-
removeAll
public void removeAll()
Description copied from class:AbstractQueryWizardEditProvider
Remove all items- Overrides:
removeAll
in classAbstractQueryWizardEditProvider
-
setItemData
public boolean setItemData(int itemFuture, Object item, Object newValue)
- Overrides:
setItemData
in classAbstractQueryWizardEditProvider
- Parameters:
itemFuture
- which item future changeitem
- item at which data need to changednewValue
- new future value- Returns:
- true if future was changed
-
-