Class LwtStandardDialogRenderer
java.lang.Object
com._1c.g5.aef2.lwt.LwtDialogRenderer
com._1c.g5.aef2.standard.lwt.renderers.LwtStandardDialogRenderer
- All Implemented Interfaces:
IRenderer<LwtDialogRenderingParameters>
- Direct Known Subclasses:
DtLwtDialogRenderer
,LwtApplicationEditorDialogRenderer
,LwtPropertyPaletteDialogRenderer
Standard LWT dialog renderer base on LWT standard renderer.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new LWT standard dialog renderer.LwtStandardDialogRenderer
(LwtRenderer renderer) Instantiates a new LWT standard dialog renderer with the given renderer. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.core.databinding.observable.value.IObservableValue<?>
createOkButtonEnableObservable
(IDialogViewModel viewModel) Creates theIObservableValue
for enable state of the ok button.protected org.eclipse.swt.graphics.Point
getInitialSize
(IDialogViewModel viewModel) Returns the initial size of the dialog.protected String
getTitle
(IDialogViewModel viewModel) Returns the title of the dialog.protected boolean
isResizable
(IDialogViewModel viewModel) Returns the resizable flag of the dialog.protected void
onContentRendered
(IDialogViewModel viewModel) Performs required modifications of dialog's view model.Methods inherited from class com._1c.g5.aef2.lwt.LwtDialogRenderer
dispose, getParameters, getTreeTransformation, initialize, relayout, render, setTreeTransformation
-
Constructor Details
-
LwtStandardDialogRenderer
Instantiates a new LWT standard dialog renderer with the given renderer.- Parameters:
renderer
- the LWT renderer
-
LwtStandardDialogRenderer
public LwtStandardDialogRenderer()Instantiates a new LWT standard dialog renderer.
-
-
Method Details
-
getInitialSize
Description copied from class:LwtDialogRenderer
Returns the initial size of the dialog.- Specified by:
getInitialSize
in classLwtDialogRenderer
- Parameters:
viewModel
- the view model.- Returns:
- the initial size of the dialog.
-
isResizable
Description copied from class:LwtDialogRenderer
Returns the resizable flag of the dialog.- Overrides:
isResizable
in classLwtDialogRenderer
- Parameters:
viewModel
- the view model.- Returns:
- the resizable flag of the dialog.
-
getTitle
Description copied from class:LwtDialogRenderer
Returns the title of the dialog.- Overrides:
getTitle
in classLwtDialogRenderer
- Parameters:
viewModel
- the view model.- Returns:
- the title of the dialog.
-
createOkButtonEnableObservable
protected org.eclipse.core.databinding.observable.value.IObservableValue<?> createOkButtonEnableObservable(IDialogViewModel viewModel) Description copied from class:LwtDialogRenderer
Creates theIObservableValue
for enable state of the ok button.- Specified by:
createOkButtonEnableObservable
in classLwtDialogRenderer
- Parameters:
viewModel
- the view model.- Returns:
- the newly created
IObservableValue
.
-
onContentRendered
Description copied from class:LwtDialogRenderer
Performs required modifications of dialog's view model. Called after creating the dialog area and rendering its content.- Specified by:
onContentRendered
in classLwtDialogRenderer
- Parameters:
viewModel
- the view model of the dialog
-