Package com._1c.g5.v8.dt.form.ui.editor
Interface IFormEditorPage
-
- All Known Implementing Classes:
FormEditorPage
public interface IFormEditorPage
Interface of a form page in aIFormEditor
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IBmModel
getBmModel()
Returns the BM model instance for the form model object, opened on this page.IBmEditingContext
getEditingContext()
Returns the BM editing context.MappingController
getMappingController()
Returns the mapping model controller.Form
getModel()
Returns the form model object, opened on this page.org.eclipse.swt.widgets.Shell
getShell()
Returns SWT shell.FormEditorStateSwitcher
getStateSwitcher()
Returns the swither of form editor state.boolean
isReadOnly()
Tells whether form page is in read-only mode, i.e.void
refresh(FormEditorComponent component)
Refreshes the form editor UI component.void
setActiveComponent(FormEditorComponent component)
Sets the active component.void
setSelection(FormEditorComponent component, boolean setFocus, Object... selection)
Selects the provided objects in the provided form editor UI component.
-
-
-
Method Detail
-
refresh
void refresh(FormEditorComponent component)
Refreshes the form editor UI component.- Parameters:
component
- the form editor UI component to refresh, cannot benull
-
setSelection
void setSelection(FormEditorComponent component, boolean setFocus, Object... selection)
Selects the provided objects in the provided form editor UI component.- Parameters:
component
- the form editor UI component to select objects in, cannot benull
setFocus
-true
if also need to set focus on the component,false
otherwiseselection
- the objects to select, cannot benull
or empty
-
setActiveComponent
void setActiveComponent(FormEditorComponent component)
Sets the active component.- Parameters:
component
- the component which should be activated, cannot benull
-
getMappingController
MappingController getMappingController()
Returns the mapping model controller.- Returns:
- the mapping controller with mapping model for the form, never
null
-
getStateSwitcher
FormEditorStateSwitcher getStateSwitcher()
Returns the swither of form editor state.- Returns:
- the form editor state switcher, never
null
-
getModel
Form getModel()
Returns the form model object, opened on this page.- Returns:
- current form model object, never
null
-
getBmModel
IBmModel getBmModel()
Returns the BM model instance for the form model object, opened on this page.- Returns:
- the BM model instance, never
null
-
getEditingContext
IBmEditingContext getEditingContext()
Returns the BM editing context.- Returns:
- the BM editing context, never
null
-
getShell
org.eclipse.swt.widgets.Shell getShell()
Returns SWT shell.- Returns:
- the SWT shell, never
null
-
isReadOnly
boolean isReadOnly()
Tells whether form page is in read-only mode, i.e. it is impossible to change anything for a user.- Returns:
true
if read-only mode enabled,false
otherwise
-
-