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.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 Diagnostic
vElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
public org.eclipse.swt.graphics.Color getValidationBackgroundColor(int severity)
severity
- severity the severity of the Diagnostic
public String getValidationColorHEX(int severity, VElement vElement, ViewModelContext viewModelContext)
severity
- severity the severity of the Diagnostic
vElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
public org.eclipse.swt.graphics.Image getValidationIcon(int severity, VElement vElement, ViewModelContext viewModelContext)
severity
- the severity of the Diagnostic
vElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
null
when no icon is to be displayedpublic org.eclipse.swt.graphics.Image getValidationIcon(int severity)
severity
- the severity of the Diagnostic
null
when no icon is to be displayedpublic org.eclipse.jface.resource.ImageDescriptor getValidationOverlayDescriptor(int severity, VElement vElement, ViewModelContext viewModelContext)
severity
- the severity of the Diagnostic
vElement
- The VElement
that is being renderedviewModelContext
- The corresponding ViewModelContext
null
when no icon is to be displayedpublic org.eclipse.jface.resource.ImageDescriptor getValidationOverlayDescriptor(int severity)
severity
- the severity of the validationCopyright © 2016. All rights reserved.