Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.dialogs
Class ControlEnableState

java.lang.Object
  extended by 
org.eclipse.jface.dialogs.ControlEnableState

public class ControlEnableState
extends Object

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


Constructor Summary
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 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  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 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
 

Constructor Detail

ControlEnableState

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.

Parameters:
w - the control

ControlEnableState

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

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

disable

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


Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire