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 int
ALIAS
static int
SET_CONDITION
static int
SET_NEW_SOURCE_ALIAS
static int
USE_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 Object
add(Object value)
Add new valueQuerySchemaExpression
findOrAddNestedTable(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 dcsint
indexOf(Object value)
Looking index of valuestatic boolean
isFieldLink(QueryWizardSource source, QuerySchemaExpression field)
Is expression linkboolean
move(Object value, Object targetValue)
Move itemboolean
moveDown(Object value)
Move item downboolean
moveUp(Object value)
Move item upboolean
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
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:AbstractQueryWizardEditProvider
Add new value- Overrides:
add
in 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: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
-
moveUp
public boolean moveUp(Object value)
Description copied from class:AbstractQueryWizardEditProvider
Move item up- Overrides:
moveUp
in classAbstractQueryWizardEditProvider
- Parameters:
value
- - value need to be moved- Returns:
- true if successfully else false
-
moveDown
public boolean moveDown(Object value)
Description copied from class:AbstractQueryWizardEditProvider
Move item down- Overrides:
moveDown
in classAbstractQueryWizardEditProvider
- Parameters:
value
- - value need to be moved- Returns:
- true if successfully else false
-
indexOf
public int indexOf(Object value)
Description copied from class:AbstractQueryWizardEditProvider
Looking index of value- Overrides:
indexOf
in 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:AbstractQueryWizardEditProvider
Move item- Overrides:
move
in 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:
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
-
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.
-
-