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.StringBUNDLE_NAMEBundle name constantstatic java.lang.StringPaginationRenderer_itemsPerPagestatic java.lang.StringPaginationRenderer_nextstatic java.lang.StringPaginationRenderer_pagestatic java.lang.StringPaginationRenderer_previousstatic java.lang.StringPaginationRenderer_resultsstatic java.lang.StringPaginationRenderer_separatorstatic java.lang.StringTHREE_DOT -
Constructor Summary
Constructors Constructor Description Resources() -
Method Summary
Modifier and Type Method Description static org.eclipse.swt.graphics.ColorgetColor(org.eclipse.swt.graphics.RGB rgb)Create or get instance of SWTColorfrom the givenRGB.static java.lang.StringgetText(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 SWTColorfrom the givenRGB.- Parameters:
rgb-- Returns:
-