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
,LwtPropertyPaletteDialogRenderer
public class LwtStandardDialogRenderer extends LwtDialogRenderer
Standard LWT dialog renderer base on LWT standard renderer.- See Also:
LwtStandardRenderer
-
-
Constructor Summary
Constructors Constructor Description LwtStandardDialogRenderer()
Instantiates a new LWT standard dialog renderer.LwtStandardDialogRenderer(LwtRenderer renderer)
Instantiates a new LWT 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.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 Detail
-
LwtStandardDialogRenderer
public LwtStandardDialogRenderer(LwtRenderer renderer)
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 Detail
-
getInitialSize
protected org.eclipse.swt.graphics.Point getInitialSize(IDialogViewModel viewModel)
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
protected boolean isResizable(IDialogViewModel viewModel)
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
protected String getTitle(IDialogViewModel viewModel)
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
protected void onContentRendered(IDialogViewModel viewModel)
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
-
-