MenuResources class
Default menu resources.
class MenuResources implements MenuResource { ImageResource _resource; static const String MENU_RESOURCE = "menuBarSubMenuIcon.gif"; static const String MENU_RESOURCE_RTL = "menuBarSubMenuIcon_rtl.gif"; MenuResources(); Source get source { return null; } /** * An image indicating a {@link MenuItem} has an associated submenu. */ ImageResource menuBarSubMenuIcon() { if (_resource == null) { // We must check is left or right based locales we using here. _resource = _getMenuImageResourcePrototype(MENU_RESOURCE); } return _resource; } ImageResourcePrototype _getMenuImageResourcePrototype(String name) { String uri = DWT.getModuleBaseURL() + "resource/images/" + name; ImageResourcePrototype imageResource = new ImageResourcePrototype(name, UriUtils.fromTrustedString(uri), 0, 0, 5, 9, false, false); return imageResource; } }
Implements
Static Properties
const String MENU_RESOURCE #
static const String MENU_RESOURCE = "menuBarSubMenuIcon.gif"
const String MENU_RESOURCE_RTL #
static const String MENU_RESOURCE_RTL = "menuBarSubMenuIcon_rtl.gif"
Constructors
Methods
ImageResource menuBarSubMenuIcon() #
An image indicating a {@link MenuItem} has an associated submenu.
ImageResource menuBarSubMenuIcon() { if (_resource == null) { // We must check is left or right based locales we using here. _resource = _getMenuImageResourcePrototype(MENU_RESOURCE); } return _resource; }