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
Answertopia.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.fieldassist
Class FieldAssistColors


java.lang.Object
  extended by 
org.eclipse.jface.fieldassist.FieldAssistColors

Deprecated. As of 3.3, this class is no longer necessary.

public class FieldAssistColors
extends Object

FieldAssistColors defines protocol for retrieving colors that can be used to provide visual cues with fields. For consistency with JFace dialogs and wizards, it is recommended that FieldAssistColors is used when colors are used to annotate fields.

Color resources that are returned using methods in this class are maintained in the JFace color registries, or by SWT. Users of any color resources provided by this class are not responsible for the lifecycle of the color. Colors provided by this class should never be disposed by clients. In some cases, clients are provided information, such as RGB values, in order to create their own color resources. In these cases, the client should manage the lifecycle of any created resource.

Since:
3.2

Constructor Summary
FieldAssistColors ()
          Deprecated.  
 
Method Summary
static  RGB computeErrorFieldBackgroundRGB ( Control control)
          Deprecated. Compute the RGB of the color that should be used for the background of a control to indicate that the control has an error.
static  Color getRequiredFieldBackgroundColor ( Control control)
          Deprecated. Return the color that should be used for the background of a control to indicate that the control is a required field and does not have content.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldAssistColors

public FieldAssistColors()
Deprecated. 
Method Detail

computeErrorFieldBackgroundRGB

public static 
RGB computeErrorFieldBackgroundRGB(
Control control)
Deprecated. 
Compute the RGB of the color that should be used for the background of a control to indicate that the control has an error. Because the color suitable for indicating an error depends on the colors set into the control, this color is always computed dynamically and provided as an RGB value. Clients who use this RGB to create a Color resource are responsible for managing the life cycle of the color.

This color is computed dynamically each time that it is queried. Clients should typically call this method once, create a color from the RGB provided, and dispose of the color when finished using it.

Parameters:
control - the control for which the background color should be computed.
Returns:
the RGB value indicating a background color appropriate for indicating an error in the control.

getRequiredFieldBackgroundColor

public static 
Color getRequiredFieldBackgroundColor(
Control control)
Deprecated. 
Return the color that should be used for the background of a control to indicate that the control is a required field and does not have content.

This color is managed by FieldAssistResources and should never be disposed by clients.

Parameters:
control - the control on which the background color will be used.
Returns:
the color used to indicate that a field is required.

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