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 theIObservableValuefor enable state of the ok button.protected org.eclipse.swt.graphics.PointgetInitialSize(IDialogViewModel viewModel) Returns the initial size of the dialog.protected StringgetTitle(IDialogViewModel viewModel) Returns the title of the dialog.protected booleanisResizable(IDialogViewModel viewModel) Returns the resizable flag of the dialog.protected voidonContentRendered(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:LwtDialogRendererReturns the initial size of the dialog.- Specified by:
getInitialSizein classLwtDialogRenderer- Parameters:
viewModel- the view model.- Returns:
- the initial size of the dialog.
-
isResizable
Description copied from class:LwtDialogRendererReturns the resizable flag of the dialog.- Overrides:
isResizablein classLwtDialogRenderer- Parameters:
viewModel- the view model.- Returns:
- the resizable flag of the dialog.
-
getTitle
Description copied from class:LwtDialogRendererReturns the title of the dialog.- Overrides:
getTitlein 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:LwtDialogRendererCreates theIObservableValuefor enable state of the ok button.- Specified by:
createOkButtonEnableObservablein classLwtDialogRenderer- Parameters:
viewModel- the view model.- Returns:
- the newly created
IObservableValue.
-
onContentRendered
Description copied from class:LwtDialogRendererPerforms required modifications of dialog's view model. Called after creating the dialog area and rendering its content.- Specified by:
onContentRenderedin classLwtDialogRenderer- Parameters:
viewModel- the view model of the dialog
-