public class ControlEnableState extends Object
Modifier | Constructor and Description |
---|---|
protected |
ControlEnableState(Control w)
Creates 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.
|
protected |
ControlEnableState(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.
|
Modifier and Type | Method and Description |
---|---|
static ControlEnableState |
disable(Control w)
Saves the current enable/disable state of the given control and its
descendents in the returned object; the controls are all disabled.
|
static ControlEnableState |
disable(Control w,
List<Control> exceptions)
Saves 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.
|
void |
restore()
Restores the window enable state saved in this object.
|
protected ControlEnableState(Control w)
w
- the controlprotected ControlEnableState(Control w, List<Control> exceptions)
w
- the controlexceptions
- the list of controls to not disable (element type:
Control
), or null
if nonepublic static ControlEnableState disable(Control w)
w
- the controlpublic static ControlEnableState disable(Control w, List<Control> exceptions)
w
- the controlexceptions
- the list of controls to not disable (element type:
Control
)public void restore()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.