Class DcsConditionsEditProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
-
- com._1c.g5.v8.dt.qw.ui.editproviders.DcsConditionsEditProvider
-
public class DcsConditionsEditProvider extends AbstractQueryWizardEditProvider
Edit provider for dcs conditions
-
-
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 intSET_CONDITIONstatic intSET_NEW_SOURCE_ALIASstatic intUSE_CHILD-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
source
-
-
Constructor Summary
Constructors Constructor Description DcsConditionsEditProvider(QueryWizardSource source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectadd(Object value)Add new valueQuerySchemaExpressionfindOrAddNestedTable(String nestedTableExpressionText)Find nested table in dcs conditions, or add new of not foundList<QuerySchemaExpression>getDcsConditions(org.eclipse.emf.ecore.EObject parent)Get select fields for dcsintindexOf(Object value)Looking index of valuestatic booleanisFieldLink(QueryWizardSource source, QuerySchemaExpression field)Is 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
-
SET_CONDITION
public static final int SET_CONDITION
- See Also:
- Constant Field Values
-
ALIAS
public static final int ALIAS
- See Also:
- Constant Field Values
-
USE_CHILD
public static final int USE_CHILD
- See Also:
- Constant Field Values
-
SET_NEW_SOURCE_ALIAS
public static final int SET_NEW_SOURCE_ALIAS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DcsConditionsEditProvider
public DcsConditionsEditProvider(QueryWizardSource source)
- Parameters:
source- - query wizard source
-
-
Method Detail
-
isFieldLink
public static boolean isFieldLink(QueryWizardSource source, QuerySchemaExpression field)
Is expression link- Parameters:
source- - query wizard sourcefield- - expression- 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(String nestedTableExpressionText)
Find nested table in dcs conditions, or add new of not found- Parameters:
nestedTableExpressionText- - nested table name, 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
-
getDcsConditions
public List<QuerySchemaExpression> getDcsConditions(org.eclipse.emf.ecore.EObject parent)
Get select fields for dcs- Parameters:
parent- - parent nested table- Returns:
- dcs fields collection. Return null if have no dcs fields collection.
-
-