Package org.eclipse.jface.dialogs
Class ControlEnableState
java.lang.Object
org.eclipse.jface.dialogs.ControlEnableState
Helper class to save the enable/disable state of a control including all its
 descendent controls.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreates a new object and saves in it the current enable/disable state of the given control and its descendents; the controls that are saved are also disabled.protectedControlEnableState(Control w, List<Control> exceptions) Creates a new object and saves in it the current enable/disable state of the given control and its descendents except for the given list of exception cases; the controls that are saved are also disabled.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ControlEnableStateSaves the current enable/disable state of the given control and its descendents in the returned object; the controls are all disabled.static ControlEnableStateSaves the current enable/disable state of the given control and its descendents in the returned object except for the given list of exception cases; the controls that are saved are also disabled.voidrestore()Restores the window enable state saved in this object.
- 
Constructor Details- 
ControlEnableStateCreates a new object and saves in it the current enable/disable state of the given control and its descendents; the controls that are saved are also disabled.- Parameters:
- w- the control
 
- 
ControlEnableStateCreates a new object and saves in it the current enable/disable state of the given control and its descendents except for the given list of exception cases; the controls that are saved are also disabled.- Parameters:
- w- the control
- exceptions- the list of controls to not disable (element type:- Control), or- nullif none
 
 
- 
- 
Method Details- 
disableSaves the current enable/disable state of the given control and its descendents in the returned object; the controls are all disabled.- Parameters:
- w- the control
- Returns:
- an object capturing the enable/disable state
 
- 
disableSaves the current enable/disable state of the given control and its descendents in the returned object except for the given list of exception cases; the controls that are saved are also disabled.- Parameters:
- w- the control
- exceptions- the list of controls to not disable (element type:- Control)
- Returns:
- an object capturing the enable/disable state
 
- 
restorepublic void restore()Restores the window enable state saved in this object.
 
-