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 int
ALIAS
static int
NEW_ALIAS
static int
USE_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 Object
add(Object value)
Add new valueQuerySchemaExpression
findOrAddNestedTable(NestedTableExpression nestedTable)
Find exist nested table in dcs field or add newList<QuerySchemaExpression>
getDcsSelectFields(org.eclipse.emf.ecore.EObject parent)
Get select fields for dcsint
indexOf(Object value)
Looking index of valuestatic boolean
isFieldLink(QueryWizardSource source, FieldsMapping fieldsMapping)
Is field 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
-
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:AbstractQueryWizardEditProvider
Add new value- Overrides:
add
in 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: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
-
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
null
if have no dcs fields collection.
-
-