private Image imageCancel1;
private Image imageCancel;
public ToolbarResource(Display display, String resource, Class<?> clazz) {
ImageLoader imgResources = new ImageLoader();
ClientRM txtResources = new ClientRM(resource);
textBack = txtResources.getLabel(clazz.getName()+".backTip");
if(XPWidgetTheme.isPlatform()) {
imageBack1 = imgResources.load(display, "xBack1.png");
imageBack = imgResources.load(display, "xBack.png");
} else {
imageBack1 = imgResources.load(display, "back1.png");
imageBack = imgResources.load(display, "back.png");
}
textForward = txtResources.getLabel(clazz.getName()+".forwardTip");
if(XPWidgetTheme.isPlatform()) {
imageForward1 = imgResources.load(display, "xForward1.png");
imageForward = imgResources.load(display, "xForward.png");
} else {
imageForward1 = imgResources.load(display, "forward1.png");
imageForward = imgResources.load(display, "forward.png");
}
textRefesh = txtResources.getLabel(clazz.getName()+".refreshTip");
if(XPWidgetTheme.isPlatform()) {
imageRefesh1 = imgResources.load(display, "xRefresh1.png");
imageRefesh = imgResources.load(display, "xRefresh.png");
} else {
imageRefesh1 = imgResources.load(display, "refresh1.png");
imageRefesh = imgResources.load(display, "refresh.png");
}
textGo = txtResources.getLabel(clazz.getName()+".goTip");
imageGo = imgResources.load(display, "godom.png");
imageGo1 = imgResources.load(display, "godom1.png");
textStop = txtResources.getLabel(clazz.getName()+".stopTip");
imageStop1 = imgResources.load(display, "stop1.png");
imageStop = imgResources.load(display, "stop.png");
imageCancel1 = imgResources.load(display, "xgocancel1.png");
imageCancel = imgResources.load(display, "xgocancel.png");
}