Class FieldsEditProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
-
- com._1c.g5.v8.dt.qw.ui.editproviders.FieldsEditProvider
-
public class FieldsEditProvider extends AbstractQueryWizardEditProvider
Edit provider for select fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldsEditProvider.ExpressionParts
Expression parts Contain text expression, nested table and text expression for nested field-
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
SET_EXPRESSION
static int
SET_NEW_SOURCE_ALIAS
-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
source
-
-
Constructor Summary
Constructors Constructor Description FieldsEditProvider(QueryWizardSource source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QuerySchemaExpression
add(DbViewElement field, String expression)
Add expression by DbViewFieldQuerySchemaExpression
add(NestedTableExpression nestedTable, String expression)
Add nested tableQuerySchemaExpression
add(QuerySchemaExpression expression)
Add expressionQuerySchemaExpression
add(QuerySchemaExpression expression, NestedTableExpression nestedTable)
Add expressionvoid
add(QuerySchemaSource source)
Add all fields from sourceQuerySchemaExpression
add(Object value)
Adding new fields.QuerySchemaExpression
add(String sourceAlias, DbViewElement field)
Add new expressionQuerySchemaExpression
findAndAddNestedTable(DbViewElement nestedTableView, String expression)
Find nested table, if not found added new nested tablestatic FieldsEditProvider.ExpressionParts
getTreeItemExpression(org.eclipse.swt.widgets.TreeItem item)
Get expression parts for tree item received from sources treeboolean
remove(QuerySchemaExpression field)
boolean
remove(Object value)
Remove itemvoid
removeAll()
Remove all itemsboolean
setItemData(int itemFuture, Object item, Object newValue)
-
-
-
Field Detail
-
SET_EXPRESSION
public static final int SET_EXPRESSION
- See Also:
- Constant Field Values
-
SET_NEW_SOURCE_ALIAS
public static final int SET_NEW_SOURCE_ALIAS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FieldsEditProvider
public FieldsEditProvider(QueryWizardSource source)
- Parameters:
source
- - query wizard source
-
-
Method Detail
-
getTreeItemExpression
public static FieldsEditProvider.ExpressionParts getTreeItemExpression(org.eclipse.swt.widgets.TreeItem item)
Get expression parts for tree item received from sources tree- Parameters:
item
- tree item- Returns:
- expression parts
-
add
public QuerySchemaExpression add(Object value)
Adding new fields. If adding new field form sources, value mast be instance of TreeItem If adding new field form available tables, value must be instance of DbViewElement.- Overrides:
add
in classAbstractQueryWizardEditProvider
- Parameters:
value
- - new value- Returns:
- - new added value
-
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
-
remove
public boolean remove(QuerySchemaExpression field)
-
removeAll
public void removeAll()
Description copied from class:AbstractQueryWizardEditProvider
Remove all items- Overrides:
removeAll
in classAbstractQueryWizardEditProvider
-
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
-
add
public QuerySchemaExpression add(QuerySchemaExpression expression)
Add expression- Parameters:
expression
- new expression- Returns:
- new expression
-
add
public QuerySchemaExpression add(QuerySchemaExpression expression, NestedTableExpression nestedTable)
Add expression- Parameters:
expression
- new expressionnestedTable
- parent nested table- Returns:
- new expression
-
add
public QuerySchemaExpression add(DbViewElement field, String expression)
Add expression by DbViewField- Parameters:
field
- DbViewFieldexpression
- string expression- Returns:
- new expression
-
add
public QuerySchemaExpression add(NestedTableExpression nestedTable, String expression)
Add nested table- Parameters:
nestedTable
- nested tableexpression
- text expression for nested table- Returns:
- nested table
-
add
public void add(QuerySchemaSource source)
Add all fields from source- Parameters:
source
- - query schema source
-
add
public QuerySchemaExpression add(String sourceAlias, DbViewElement field)
Add new expression- Parameters:
sourceAlias
- - parent source aliasfield
- - field DbView- Returns:
- new expression
-
findAndAddNestedTable
public QuerySchemaExpression findAndAddNestedTable(DbViewElement nestedTableView, String expression)
Find nested table, if not found added new nested table- Parameters:
nestedTableView
- nested tableexpression
- text expression for nested table- Returns:
- nested table
-
-