Class AbstractQueryWizardEditProvider
java.lang.Object
com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
- Direct Known Subclasses:
AggregatesEditProvider
,AliasesEditProvider
,ConditionsEditProvider
,DcsCharacteristicsEditProvider
,DcsConditionsEditProvider
,DcsFieldsEditProvider
,FieldsEditProvider
,GroupingsEditProvider
,IndexEditProvider
,IndexSetsEditProvider
,JoinsEditProvider
,OperatorsEditProvider
,OrderEditProvider
,QueryBatchEditProvider
,SourcesEditProvider
,TablesForUpdateEditProvider
,TotalCalculationFieldsEditProvider
,TotalsControlsPointsEditProvider
,TotalsExpressionsEditProvider
Base query wizard edit provider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Type of move -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd new valuevoid
Add several valuesprotected void
clearRemoveNodesAdapter
(org.eclipse.emf.ecore.EObject eObject) RemoveINode
adapter for eObject and all it parent eObjectscopy
(int index) Copy value at indexCopy valueget
(int index) Get item by indexGet query wizard sourceint
Looking index of valuestatic boolean
isIndexValid
(int index, int count) Check index (index >=0 and index < count)boolean
Move itemprotected boolean
move
(org.eclipse.emf.common.util.EList<? extends org.eclipse.emf.ecore.EObject> collection, Object value, int inc) Move itemboolean
Move item downboolean
Move item upboolean
remove
(int index) Remove item at indexboolean
Remove itemvoid
Remove all itemsboolean
Replace valueboolean
Set value at indexboolean
setItemData
(int itemFuture, Object item, Object newValue)
-
Field Details
-
source
-
-
Constructor Details
-
AbstractQueryWizardEditProvider
- Parameters:
source
- - query wizard source
-
-
Method Details
-
isIndexValid
public static boolean isIndexValid(int index, int count) Check index (index >=0 and index < count)- Parameters:
index
- - indexcount
- - count of elements- Returns:
- true if index >=0 and < count
-
getSource
Get query wizard source- Returns:
- query wizard source
-
get
Get item by index- Parameters:
index
- - index of item- Returns:
- item
- Throws:
UnsupportedOperationException
-
add
Add new value- Parameters:
value
- - new value- Returns:
- - new added value
- Throws:
UnsupportedOperationException
-
addAll
Add several values- Parameters:
values
- - values need to be added- Throws:
UnsupportedOperationException
-
remove
public boolean remove(int index) Remove item at index- Parameters:
index
- - index of item- Returns:
- true if successfully else false
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
remove
Remove item- Parameters:
value
- - value which need to be removed- Returns:
- true if successfully else false
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
removeAll
public void removeAll()Remove all items- Throws:
UnsupportedOperationException
- if not supported by implementation
-
set
Set value at index- Parameters:
index
- - index of itemvalue
- - new value- Returns:
- true if successfully else false
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
replace
Replace value- Parameters:
oldValue
-newValue
-- Returns:
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
move
Move item- Parameters:
value
- - value need to be movedtargetValue
- - target value- Returns:
- true if successfully else false
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
moveUp
Move item up- Parameters:
value
- - value need to be moved- Returns:
- true if successfully else false
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
moveDown
Move item down- Parameters:
value
- - value need to be moved- Returns:
- true if successfully else false
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
indexOf
Looking index of value- Parameters:
value
- - value- Returns:
- index of value. Return -1 if value not found
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
copy
Copy value at index- Parameters:
index
- - index of value- Returns:
- new copied value
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
copy
Copy value- Parameters:
value
- copied value- Returns:
- new copied value
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
setItemData
- Parameters:
itemFuture
- which item future changeitem
- item at which data need to changednewValue
- new future value- Returns:
- true if future was changed
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
move
protected boolean move(org.eclipse.emf.common.util.EList<? extends org.eclipse.emf.ecore.EObject> collection, Object value, int inc) Move item- Parameters:
collection
- - values collectionvalue
- - value need to be movedinc
- - how many positions to shift element- Returns:
- true if value successfully moved else false
-
clearRemoveNodesAdapter
protected void clearRemoveNodesAdapter(org.eclipse.emf.ecore.EObject eObject) RemoveINode
adapter for eObject and all it parent eObjects- Parameters:
eObject
-EObject
for deletingINode
adapters, cannit benull
-