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
,JoinsEditProvider
,OperatorsEditProvider
,OrderEditProvider
,QueryBatchEditProvider
,SourcesEditProvider
,TablesForUpdateEditProvider
,TotalCalculationFieldsEditProvider
,TotalsControlsPointsEditProvider
,TotalsExpressionsEditProvider
public abstract class AbstractQueryWizardEditProvider extends Object
Base query wizard edit provider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractQueryWizardEditProvider.MoveType
Type of move
-
Field Summary
Fields Modifier and Type Field Description protected QueryWizardSource
source
-
Constructor Summary
Constructors Constructor Description AbstractQueryWizardEditProvider(QueryWizardSource source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
add(Object value)
Add new valuevoid
addAll(Object[] values)
Add several valuesprotected void
clearRemoveNodesAdapter(org.eclipse.emf.ecore.EObject eObject)
RemoveINode
adapter for eObject and all it parent eObjectsObject
copy(int index)
Copy value at indexObject
copy(Object value)
Copy valueObject
get(int index)
Get item by indexQueryWizardSource
getSource()
Get query wizard sourceint
indexOf(Object value)
Looking index of valuestatic boolean
isIndexValid(int index, int count)
Check index (index >=0 and index < count)boolean
move(Object value, Object targetValue)
Move itemprotected boolean
move(org.eclipse.emf.common.util.EList<? extends org.eclipse.emf.ecore.EObject> collection, Object value, int inc)
Move itemboolean
moveDown(Object value)
Move item downboolean
moveUp(Object value)
Move item upboolean
remove(int index)
Remove item at indexboolean
remove(Object value)
Remove itemvoid
removeAll()
Remove all itemsboolean
replace(Object oldValue, Object newValue)
Replace valueboolean
set(int index, Object value)
Set value at indexboolean
setItemData(int itemFuture, Object item, Object newValue)
-
-
-
Field Detail
-
source
protected QueryWizardSource source
-
-
Constructor Detail
-
AbstractQueryWizardEditProvider
public AbstractQueryWizardEditProvider(QueryWizardSource source)
- Parameters:
source
- - query wizard source
-
-
Method Detail
-
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
public QueryWizardSource getSource()
Get query wizard source- Returns:
- query wizard source
-
get
public Object get(int index)
Get item by index- Parameters:
index
- - index of item- Returns:
- item
- Throws:
UnsupportedOperationException
-
add
public Object add(Object value)
Add new value- Parameters:
value
- - new value- Returns:
- - new added value
- Throws:
UnsupportedOperationException
-
addAll
public void addAll(Object[] values)
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
public boolean remove(Object value)
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
public boolean set(int index, Object value)
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
public boolean replace(Object oldValue, Object newValue)
Replace value- Parameters:
oldValue
-newValue
-- Returns:
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
move
public boolean move(Object value, Object targetValue)
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
public boolean moveUp(Object value)
Move item up- Parameters:
value
- - value need to be moved- Returns:
- true if successfully else false
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
moveDown
public boolean moveDown(Object value)
Move item down- Parameters:
value
- - value need to be moved- Returns:
- true if successfully else false
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
indexOf
public int indexOf(Object value)
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
public Object copy(int index)
Copy value at index- Parameters:
index
- - index of value- Returns:
- new copied value
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
copy
public Object copy(Object value) throws UnsupportedOperationException
Copy value- Parameters:
value
- copied value- Returns:
- new copied value
- Throws:
UnsupportedOperationException
- if not supported by implementation
-
setItemData
public boolean setItemData(int itemFuture, Object item, Object newValue)
- 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
-
-