|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.fieldassist.FieldAssistColors
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.
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 |
public FieldAssistColors()
Method Detail |
public static RGB computeErrorFieldBackgroundRGB(Control control)
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.
control
- the control for which the background color should be computed.
public static Color getRequiredFieldBackgroundColor(Control control)
This color is managed by FieldAssistResources and should never be disposed by clients.
control
- the control on which the background color will be used.
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.