Package com._1c.g5.v8.dt.common.ui
Class EnablementService
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ui.EnablementService
-
public class EnablementService extends Object
Service to disable/enable SWT controls including their children, enablement state of child controls is preserved.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnablementService
getInstance()
void
setEnabled(org.eclipse.swt.widgets.Control control, boolean enabled)
Sets the enablement state for a givencontrol
and its children.
-
-
-
Method Detail
-
getInstance
public static EnablementService getInstance()
- Returns:
- global shared instance of the
EnablementService
.
-
setEnabled
public void setEnabled(org.eclipse.swt.widgets.Control control, boolean enabled)
Sets the enablement state for a givencontrol
and its children. Enablement state is preserved for children if control is being disabled and will be restored if control will enabled later.- Parameters:
control
- control to set enablement state of.enabled
-true
to enable the control,false
to disable the control.
-
-