public final class SWTValidationHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static SWTValidationHelper |
INSTANCE
The instance of the SWTValidationHelper.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.graphics.Color |
getValidationBackgroundColor(int severity)
Returns the background color for a control with the given validation severity.
|
org.eclipse.swt.graphics.Color |
getValidationBackgroundColor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
Returns the background color for a control with the given validation severity, VElement
and view model context, if applicable.
|
String |
getValidationColorHEX(int severity,
VElement vElement,
ViewModelContext viewModelContext)
Returns the hex color for a control with the given validation severity, VElement
and view model context, if applicable.
|
org.eclipse.swt.graphics.Color |
getValidationForegroundColor(int severity)
Returns the foreground color for a control with the given validation severity.
|
org.eclipse.swt.graphics.Color |
getValidationForegroundColor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
Returns the foreground color for a control with the given validation severity, VElement
and view model context, if applicable.
|
org.eclipse.swt.graphics.Image |
getValidationIcon(int severity)
Returns the validation icon matching the given severity.
|
org.eclipse.swt.graphics.Image |
getValidationIcon(int severity,
VElement vElement,
ViewModelContext viewModelContext)
Returns the validation icon matching the given severity, VElement
and view model context, if applicable.
|
org.eclipse.jface.resource.ImageDescriptor |
getValidationOverlayDescriptor(int severity)
Returns an image descriptor which can be used as an overlay for validation icons.
|
org.eclipse.jface.resource.ImageDescriptor |
getValidationOverlayDescriptor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
Returns the validation overlay icon matching the given severity, VElement
and view model context, if applicable.
|
public static final SWTValidationHelper INSTANCE
public org.eclipse.swt.graphics.Color getValidationBackgroundColor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
severity - severity the severity of the DiagnosticvElement - The VElement that is being renderedviewModelContext - The corresponding ViewModelContextpublic org.eclipse.swt.graphics.Color getValidationForegroundColor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
severity - severity the severity of the DiagnosticvElement - The VElement that is being renderedviewModelContext - The corresponding ViewModelContextpublic org.eclipse.swt.graphics.Color getValidationBackgroundColor(int severity)
severity - severity the severity of the Diagnosticpublic org.eclipse.swt.graphics.Color getValidationForegroundColor(int severity)
severity - severity the severity of the Diagnosticpublic String getValidationColorHEX(int severity, VElement vElement, ViewModelContext viewModelContext)
severity - severity the severity of the DiagnosticvElement - The VElement that is being renderedviewModelContext - The corresponding ViewModelContextpublic org.eclipse.swt.graphics.Image getValidationIcon(int severity,
VElement vElement,
ViewModelContext viewModelContext)
severity - the severity of the DiagnosticvElement - The VElement that is being renderedviewModelContext - The corresponding ViewModelContextnull when no icon is to be displayedpublic org.eclipse.swt.graphics.Image getValidationIcon(int severity)
severity - the severity of the Diagnosticnull when no icon is to be displayedpublic org.eclipse.jface.resource.ImageDescriptor getValidationOverlayDescriptor(int severity,
VElement vElement,
ViewModelContext viewModelContext)
severity - the severity of the DiagnosticvElement - The VElement that is being renderedviewModelContext - The corresponding ViewModelContextnull when no icon is to be displayedpublic org.eclipse.jface.resource.ImageDescriptor getValidationOverlayDescriptor(int severity)
severity - the severity of the validationCopyright © 2017. All rights reserved.