Package com._1c.g5.v8.dt.dcs.ui.settings
Class Settings
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.swt.widgets.Control
-
- org.eclipse.swt.widgets.Scrollable
-
- org.eclipse.swt.widgets.Composite
-
- com._1c.g5.v8.dt.dcs.ui.EditorPageBase
-
- com._1c.g5.v8.dt.dcs.ui.settings.Settings
-
- All Implemented Interfaces:
EditorPage
,IDcsEnvironmentProvider
,IDcsListener
,IDcsSettingsProvider
,org.eclipse.swt.graphics.Drawable
public class Settings extends EditorPageBase implements IDcsSettingsProvider
Вкладка "Настройки"
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.dcs.ui.settings.IDcsSettingsProvider
IDcsSettingsProvider.TabKind
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLONE_CMD
static String
CUSTOM_SETTINGS_CMD
static String
EDIT_CMD
static String
MARK_ALL_CMD
static String
MOVE_DOWN_CMD
static String
MOVE_UP_CMD
static String
REMOVE_CMD
static String
SET_TITLE_CMD
static String
UNMARK_ALL_CMD
-
Fields inherited from class com._1c.g5.v8.dt.dcs.ui.EditorPageBase
context, listeners, schema, v8project
-
-
Constructor Summary
Constructors Constructor Description Settings(DataCompositionSchemaControlContext context, org.eclipse.swt.widgets.Composite parent, int style)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DcsAvailableSettingsSourceForSchema
getAvailableFieldsSource()
Get source of available fieldsDcsAvailableSettingsSourceForSchema.FieldUse
getAvailableFieldsUse()
Get available fields variant (Filter, Order, etc.)ConditionalAppearance
getConditionalAppearance()
Returns conditional appearance control.Object
getCurrentObject()
Get current object.CollectionParametersData
getCurrentParametersData()
Get current parameters data objectIDcsSettingsProvider.TabKind
getCurrentTabKind()
Get current tab kindObject
getDestinationForAvailableField()
Get parent destination object in main viewer for available fieldIBmEditingContext
getEditingContext()
Returns the BM editing context.DcsAvailableSettingsSourceForSchema.FieldUse
getExpressionsFieldsUse()
Get expressions fields variantString
getFieldTitle(DataCompositionField field)
Get title for fieldFilter
getFilter()
Returns filter control.GroupingFields
getGroupingFields()
Returns grouping fields control.Filter
getGroupingFilter()
Returns grouping filter control.String
getNestedSchemaName()
Get nested schema nameOrder
getOrder()
Returns order control.Output
getOutput()
Returns output control.Parameters
getParameters()
Returns parameters control.DataCompositionSchema
getSchema()
Получить схемуList<DcsAvailableFieldInfo>
getSelectedAvailableFields()
Get info of selected available fields in current folderObject
getSelectedObject()
Get selected object (selected node in structure tree or main object).List<Object>
getSelectedViewerNodes()
Get selected objects in main viewer (destination)SelectedFields
getSelectFields()
Returns select fields control.DataCompositionSettings
getSettings()
GetDataCompositionSettings
model objectStructure
getStructure()
Returns structure control.UserFields
getUserFields()
Returns user fields control.Variants
getVariants()
Returns variants control.boolean
isUserFieldsAvailable()
Check whether user fields is availablevoid
notify(DcsEvent event)
Сообщить о событииvoid
setExpressionsFieldsUse(DcsAvailableSettingsSourceForSchema.FieldUse fieldUse)
Set expressions fields variantvoid
updateAvailableFieldsSource()
Update source of available fields-
Methods inherited from class com._1c.g5.v8.dt.dcs.ui.EditorPageBase
addListener, addModelChangedListener, dispose, getAlias, getBmModel, getContext, getContributorClass, getCoreEditingContext, getCurrentLanguageCode, getEmbeddedEditor, getV8project, getVersion, removeModelChangedNotifier
-
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toString
-
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
-
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
-
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.dcs.ui.IDcsEnvironmentProvider
getBmModel, getCurrentLanguageCode, getV8project, getVersion
-
-
-
-
Field Detail
-
CLONE_CMD
public static final String CLONE_CMD
- See Also:
- Constant Field Values
-
EDIT_CMD
public static final String EDIT_CMD
- See Also:
- Constant Field Values
-
REMOVE_CMD
public static final String REMOVE_CMD
- See Also:
- Constant Field Values
-
MOVE_UP_CMD
public static final String MOVE_UP_CMD
- See Also:
- Constant Field Values
-
MOVE_DOWN_CMD
public static final String MOVE_DOWN_CMD
- See Also:
- Constant Field Values
-
MARK_ALL_CMD
public static final String MARK_ALL_CMD
- See Also:
- Constant Field Values
-
UNMARK_ALL_CMD
public static final String UNMARK_ALL_CMD
- See Also:
- Constant Field Values
-
SET_TITLE_CMD
public static final String SET_TITLE_CMD
- See Also:
- Constant Field Values
-
CUSTOM_SETTINGS_CMD
public static final String CUSTOM_SETTINGS_CMD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Settings
public Settings(DataCompositionSchemaControlContext context, org.eclipse.swt.widgets.Composite parent, int style)
Constructor- Parameters:
context
- contains data for creating editor, integrating editor with other Data composition editors, cannot benull
parent
- parent composite for creating editor, cannot benull
style
- editor SWT style
-
-
Method Detail
-
getEditingContext
public IBmEditingContext getEditingContext()
Description copied from interface:IDcsEnvironmentProvider
Returns the BM editing context.- Specified by:
getEditingContext
in interfaceIDcsEnvironmentProvider
- Overrides:
getEditingContext
in classEditorPageBase
- Returns:
- the BM editing context, never
null
.
-
notify
public void notify(DcsEvent event)
Description copied from interface:IDcsListener
Сообщить о событии- Specified by:
notify
in interfaceIDcsListener
- Overrides:
notify
in classEditorPageBase
- Parameters:
event
- событие
-
getSchema
public DataCompositionSchema getSchema()
Description copied from interface:EditorPage
Получить схему- Specified by:
getSchema
in interfaceEditorPage
- Specified by:
getSchema
in interfaceIDcsSettingsProvider
- Overrides:
getSchema
in classEditorPageBase
- Returns:
- схема
-
getSettings
public DataCompositionSettings getSettings()
Description copied from interface:IDcsSettingsProvider
GetDataCompositionSettings
model object- Specified by:
getSettings
in interfaceIDcsSettingsProvider
- Returns:
DataCompositionSettings
model object
-
getAvailableFieldsSource
public DcsAvailableSettingsSourceForSchema getAvailableFieldsSource()
Description copied from interface:IDcsSettingsProvider
Get source of available fields- Specified by:
getAvailableFieldsSource
in interfaceIDcsSettingsProvider
- Returns:
DcsAvailableSettingsSourceForSchema
object
-
updateAvailableFieldsSource
public void updateAvailableFieldsSource()
Description copied from interface:IDcsSettingsProvider
Update source of available fields- Specified by:
updateAvailableFieldsSource
in interfaceIDcsSettingsProvider
-
getSelectedAvailableFields
public List<DcsAvailableFieldInfo> getSelectedAvailableFields()
Description copied from interface:IDcsSettingsProvider
Get info of selected available fields in current folder- Specified by:
getSelectedAvailableFields
in interfaceIDcsSettingsProvider
- Returns:
- list of
DcsAvailableFieldInfo
objects, never null
-
getSelectedViewerNodes
public List<Object> getSelectedViewerNodes()
Description copied from interface:IDcsSettingsProvider
Get selected objects in main viewer (destination)- Specified by:
getSelectedViewerNodes
in interfaceIDcsSettingsProvider
- Returns:
- list of selected objects, never null
-
getDestinationForAvailableField
public Object getDestinationForAvailableField()
Description copied from interface:IDcsSettingsProvider
Get parent destination object in main viewer for available field- Specified by:
getDestinationForAvailableField
in interfaceIDcsSettingsProvider
- Returns:
- parent destination object
-
getAvailableFieldsUse
public DcsAvailableSettingsSourceForSchema.FieldUse getAvailableFieldsUse()
Description copied from interface:IDcsSettingsProvider
Get available fields variant (Filter, Order, etc.)- Specified by:
getAvailableFieldsUse
in interfaceIDcsSettingsProvider
- Returns:
- available fields variant
-
getSelectedObject
public Object getSelectedObject()
Description copied from interface:IDcsSettingsProvider
Get selected object (selected node in structure tree or main object). Object can be one ofDataCompositionSettings
,StructureItem
,DataCompositionTableGroup
,DataCompositionChartGroup
- Specified by:
getSelectedObject
in interfaceIDcsSettingsProvider
- Returns:
- selected object, never null
-
getCurrentObject
public Object getCurrentObject()
Description copied from interface:IDcsSettingsProvider
Get current object. Object can be one ofDataCompositionSettings
,StructureItem
,DataCompositionTableGroup
,DataCompositionChartGroup
- Specified by:
getCurrentObject
in interfaceIDcsSettingsProvider
- Returns:
- current object, never null
-
getExpressionsFieldsUse
public DcsAvailableSettingsSourceForSchema.FieldUse getExpressionsFieldsUse()
Description copied from interface:IDcsSettingsProvider
Get expressions fields variant- Specified by:
getExpressionsFieldsUse
in interfaceIDcsSettingsProvider
- Returns:
- expressions fields variant
-
setExpressionsFieldsUse
public void setExpressionsFieldsUse(DcsAvailableSettingsSourceForSchema.FieldUse fieldUse)
Description copied from interface:IDcsSettingsProvider
Set expressions fields variant- Specified by:
setExpressionsFieldsUse
in interfaceIDcsSettingsProvider
- Parameters:
fieldUse
- expressions fields variant
-
isUserFieldsAvailable
public boolean isUserFieldsAvailable()
Description copied from interface:IDcsSettingsProvider
Check whether user fields is available- Specified by:
isUserFieldsAvailable
in interfaceIDcsSettingsProvider
- Returns:
- whether user fields is available
-
getFieldTitle
public String getFieldTitle(DataCompositionField field)
Description copied from interface:IDcsSettingsProvider
Get title for field- Specified by:
getFieldTitle
in interfaceIDcsSettingsProvider
- Parameters:
field
- field, can't be null- Returns:
- title, never null
-
getCurrentTabKind
public IDcsSettingsProvider.TabKind getCurrentTabKind()
Description copied from interface:IDcsSettingsProvider
Get current tab kind- Specified by:
getCurrentTabKind
in interfaceIDcsSettingsProvider
- Returns:
IDcsSettingsProvider.TabKind
value, never null
-
getNestedSchemaName
public String getNestedSchemaName()
Description copied from interface:IDcsSettingsProvider
Get nested schema name- Specified by:
getNestedSchemaName
in interfaceIDcsSettingsProvider
- Returns:
- nested schema name, never null (empty for the main schema)
-
getCurrentParametersData
public CollectionParametersData getCurrentParametersData()
Get current parameters data object- Returns:
- current parameters data object for Parameters folder or Output folder or null otherwise
-
getVariants
public Variants getVariants()
Returns variants control.- Returns:
- variants control. Cannot return
null
.
-
getStructure
public Structure getStructure()
Returns structure control.- Returns:
- structure control. Cannot return
null
.
-
getParameters
public Parameters getParameters()
Returns parameters control.- Returns:
- parameters control. Cannot return
null
.
-
getSelectFields
public SelectedFields getSelectFields()
Returns select fields control.- Returns:
- select fields control. Cannot return
null
.
-
getFilter
public Filter getFilter()
Returns filter control.- Returns:
- filter control. Cannot return
null
.
-
getGroupingFilter
public Filter getGroupingFilter()
Returns grouping filter control.- Returns:
- grouping filter control. Cannot return
null
.
-
getOrder
public Order getOrder()
Returns order control.- Returns:
- order control. Cannot return
null
.
-
getConditionalAppearance
public ConditionalAppearance getConditionalAppearance()
Returns conditional appearance control.- Returns:
- conditional appearance control. Cannot return
null
.
-
getUserFields
public UserFields getUserFields()
Returns user fields control.- Returns:
- user fields control. Cannot return
null
.
-
getOutput
public Output getOutput()
Returns output control.- Returns:
- output control. Cannot return
null
.
-
getGroupingFields
public GroupingFields getGroupingFields()
Returns grouping fields control.- Returns:
- grouping fields control. Cannot return
null
.
-
-