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
,SwtPropertyPaletteDialogRenderer
public class SwtStandardDialogRenderer extends SwtDialogRenderer
Standard SWT dialog renderer base on SWT standard renderer.- See Also:
SwtStandardRenderer
-
-
Constructor Summary
Constructors Constructor Description SwtStandardDialogRenderer()
Instantiates a new SWT standard dialog renderer.SwtStandardDialogRenderer(SwtRenderer renderer)
Instantiates a new SWT standard dialog renderer with the given renderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
SwtStandardDialogRenderer
public SwtStandardDialogRenderer(SwtRenderer renderer)
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 Detail
-
getInitialSize
protected org.eclipse.swt.graphics.Point getInitialSize(IDialogViewModel viewModel)
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
protected boolean isResizable(IDialogViewModel viewModel)
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
protected String getTitle(IDialogViewModel viewModel)
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
.
-
-