Class SwtStandardDialogRenderer
java.lang.Object
com._1c.g5.aef2.swt.renderers.SwtDialogRenderer
com._1c.g5.aef2.standard.swt.renderers.SwtStandardDialogRenderer
- All Implemented Interfaces:
IRenderer<SwtDialogRenderingParameters>
- Direct Known Subclasses:
DtSwtDialogRenderer
,SwtApplicationEditorDialogRenderer
,SwtPropertyPaletteDialogRenderer
Standard SWT dialog renderer base on SWT standard renderer.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new SWT standard dialog renderer.SwtStandardDialogRenderer
(SwtRenderer renderer) Instantiates a new SWT 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.Methods inherited from class com._1c.g5.aef2.swt.renderers.SwtDialogRenderer
dispose, getParameters, getTreeTransformation, initialize, relayout, render, setTreeTransformation
-
Constructor Details
-
SwtStandardDialogRenderer
Instantiates a new SWT standard dialog renderer with the given renderer.- Parameters:
renderer
- the SWT renderer
-
SwtStandardDialogRenderer
public SwtStandardDialogRenderer()Instantiates a new SWT standard dialog renderer.
-
-
Method Details
-
getInitialSize
Description copied from class:SwtDialogRenderer
Returns the initial size of the dialog.- Specified by:
getInitialSize
in classSwtDialogRenderer
- Parameters:
viewModel
- the view model.- Returns:
- the initial size of the dialog.
-
isResizable
Description copied from class:SwtDialogRenderer
Returns the resizable flag of the dialog.- Overrides:
isResizable
in classSwtDialogRenderer
- Parameters:
viewModel
- the view model.- Returns:
- the resizable flag of the dialog.
-
getTitle
Description copied from class:SwtDialogRenderer
Returns the title of the dialog.- Overrides:
getTitle
in classSwtDialogRenderer
- 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:SwtDialogRenderer
Creates theIObservableValue
for enable state of the ok button.- Specified by:
createOkButtonEnableObservable
in classSwtDialogRenderer
- Parameters:
viewModel
- the view model.- Returns:
- the newly created
IObservableValue
.
-