Class Resources
java.lang.Object
org.eclipse.nebula.widgets.pagination.Resources
public class Resources
extends java.lang.Object
Resources helper used to messages resources from bundle and SWT
Color
.-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BUNDLE_NAME
Bundle name constantstatic java.lang.String
PaginationRenderer_itemsPerPage
static java.lang.String
PaginationRenderer_next
static java.lang.String
PaginationRenderer_page
static java.lang.String
PaginationRenderer_previous
static java.lang.String
PaginationRenderer_results
static java.lang.String
PaginationRenderer_separator
static java.lang.String
THREE_DOT
-
Constructor Summary
Constructors Constructor Description Resources()
-
Method Summary
Modifier and Type Method Description static org.eclipse.swt.graphics.Color
getColor(org.eclipse.swt.graphics.RGB rgb)
Create or get instance of SWTColor
from the givenRGB
.static java.lang.String
getText(java.lang.String messageKey, java.util.Locale locale)
Returns the text of the given messageKey according the given locale.
-
Field Details
-
BUNDLE_NAME
public static final java.lang.String BUNDLE_NAMEBundle name constant- See Also:
- Constant Field Values
-
PaginationRenderer_results
public static final java.lang.String PaginationRenderer_results- See Also:
- Constant Field Values
-
PaginationRenderer_previous
public static final java.lang.String PaginationRenderer_previous- See Also:
- Constant Field Values
-
PaginationRenderer_next
public static final java.lang.String PaginationRenderer_next- See Also:
- Constant Field Values
-
PaginationRenderer_separator
public static final java.lang.String PaginationRenderer_separator- See Also:
- Constant Field Values
-
PaginationRenderer_itemsPerPage
public static final java.lang.String PaginationRenderer_itemsPerPage- See Also:
- Constant Field Values
-
PaginationRenderer_page
public static final java.lang.String PaginationRenderer_page- See Also:
- Constant Field Values
-
THREE_DOT
public static final java.lang.String THREE_DOT- See Also:
- Constant Field Values
-
-
Constructor Details
-
Resources
public Resources()
-
-
Method Details
-
getText
public static java.lang.String getText(java.lang.String messageKey, java.util.Locale locale)Returns the text of the given messageKey according the given locale.- Parameters:
messageKey
- the message key.locale
- the locale.- Returns:
-
getColor
public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)Create or get instance of SWTColor
from the givenRGB
.- Parameters:
rgb
-- Returns:
-