Class DcsFieldsEditProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
-
- com._1c.g5.v8.dt.qw.ui.editproviders.DcsFieldsEditProvider
-
public class DcsFieldsEditProvider extends AbstractQueryWizardEditProvider
Edit provider for dcs fields
-
-
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 intALIASstatic intNEW_ALIASstatic intUSE_CHILD-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
source
-
-
Constructor Summary
Constructors Constructor Description DcsFieldsEditProvider(QueryWizardSource source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectadd(Object value)Add new valueQuerySchemaExpressionfindOrAddNestedTable(NestedTableExpression nestedTable)Find exist nested table in dcs field or add newList<QuerySchemaExpression>getDcsSelectFields(org.eclipse.emf.ecore.EObject parent)Get select fields for dcsintindexOf(Object value)Looking index of valuestatic booleanisFieldLink(QueryWizardSource source, FieldsMapping fieldsMapping)Is field expression linkbooleanmove(Object value, Object targetValue)Move itembooleanmoveDown(Object value)Move item downbooleanmoveUp(Object value)Move item upbooleanremove(Object value)Remove itemvoidremoveAll()Remove all itemsbooleansetItemData(int itemFuture, Object item, Object newValue)-
Methods inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
addAll, clearRemoveNodesAdapter, copy, copy, get, getSource, isIndexValid, move, remove, replace, set
-
-
-
-
Field Detail
-
NEW_ALIAS
public static final int NEW_ALIAS
- See Also:
- Constant Field Values
-
USE_CHILD
public static final int USE_CHILD
- See Also:
- Constant Field Values
-
ALIAS
public static final int ALIAS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DcsFieldsEditProvider
public DcsFieldsEditProvider(QueryWizardSource source)
- Parameters:
source- - query wizard source
-
-
Method Detail
-
isFieldLink
public static boolean isFieldLink(QueryWizardSource source, FieldsMapping fieldsMapping)
Is field expression link- Parameters:
source- - query wizard sourcefieldsMapping- - fields mapping for field- Returns:
- true if field is link
-
add
public Object add(Object value)
Description copied from class:AbstractQueryWizardEditProviderAdd new value- Overrides:
addin classAbstractQueryWizardEditProvider- Parameters:
value- - new value- Returns:
- - new added value
-
findOrAddNestedTable
public QuerySchemaExpression findOrAddNestedTable(NestedTableExpression nestedTable)
Find exist nested table in dcs field or add new- Parameters:
nestedTable- - nested table expression, cannot benull- Returns:
- nested table, nerver
null
-
remove
public boolean remove(Object value)
Description copied from class:AbstractQueryWizardEditProviderRemove item- Overrides:
removein classAbstractQueryWizardEditProvider- Parameters:
value- - value which need to be removed- Returns:
- true if successfully else false
-
removeAll
public void removeAll()
Description copied from class:AbstractQueryWizardEditProviderRemove all items- Overrides:
removeAllin classAbstractQueryWizardEditProvider
-
moveUp
public boolean moveUp(Object value)
Description copied from class:AbstractQueryWizardEditProviderMove item up- Overrides:
moveUpin classAbstractQueryWizardEditProvider- Parameters:
value- - value need to be moved- Returns:
- true if successfully else false
-
moveDown
public boolean moveDown(Object value)
Description copied from class:AbstractQueryWizardEditProviderMove item down- Overrides:
moveDownin classAbstractQueryWizardEditProvider- Parameters:
value- - value need to be moved- Returns:
- true if successfully else false
-
indexOf
public int indexOf(Object value)
Description copied from class:AbstractQueryWizardEditProviderLooking index of value- Overrides:
indexOfin classAbstractQueryWizardEditProvider- Parameters:
value- - value- Returns:
- index of value. Return -1 if value not found
-
move
public boolean move(Object value, Object targetValue)
Description copied from class:AbstractQueryWizardEditProviderMove item- Overrides:
movein classAbstractQueryWizardEditProvider- Parameters:
value- - value need to be movedtargetValue- - target value- Returns:
- true if successfully else false
-
setItemData
public boolean setItemData(int itemFuture, Object item, Object newValue)- Overrides:
setItemDatain classAbstractQueryWizardEditProvider- Parameters:
itemFuture- which item future changeitem- item at which data need to changednewValue- new future value- Returns:
- true if future was changed
-
getDcsSelectFields
public List<QuerySchemaExpression> getDcsSelectFields(org.eclipse.emf.ecore.EObject parent)
Get select fields for dcs- Parameters:
parent- - parent nested table- Returns:
- fields collection. Return
nullif have no dcs fields collection.
-
-