Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.dialogs
Class SystemControlEnableState

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.dialogs.SystemControlEnableState

public class SystemControlEnableState
extends Object

Helper class to save the enable/disable state of a control including all its descendent controls.


Field Summary
static String Copyright
           
 
Constructor Summary
protected SystemControlEnableState(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 SystemControlEnableState(Control w, List 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 Summary
static SystemControlEnableState 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 SystemControlEnableState disable(Control w, List 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

SystemControlEnableState

protected SystemControlEnableState(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.

Parameters:
w - the control

SystemControlEnableState

protected SystemControlEnableState(Control w,
                                   List 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.

Parameters:
w - the control
exceptions - the list of controls to not disable (element type: Control), or null if none
Method Detail

disable

public static SystemControlEnableState 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.

Parameters:
w - the control
Returns:
an object capturing the enable/disable state

disable

public static SystemControlEnableState disable(Control w,
                                               List 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.

Parameters:
w - the control
exceptions - the list of controls to not disable (element type: Control)
Returns:
an object capturing the enable/disable state

restore

public void restore()
Restores the window enable state saved in this object.


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.