private void initMessage() { apply.setText(constants.Apply()); if (messageType.equals(MessageType.ERROR)) { imageMessage.setResource(images.error()); } else if (messageType.equals(MessageType.INFO)) { imageMessage.setResource(images.information()); } else if (messageType.equals(MessageType.WARNING)) { imageMessage.setResource(images.warning()); } else { imageMessage.setResource(images.information()); } }
/** * Contsructor for MethodList * * @param eBus requires the singleton eventBus from GWT.event.shared * @throws ServiceNotFoundException If the service has not been registered */ public MethodList(HandlerManager eBus) { initWidget(uiBinder.createAndBindUi(this)); this.eventBus = eBus; this._pnlScroll.setAlwaysShowScrollBars(true); methodList = new HashMap<String, pojoMethod>(); try { MethodService service = (MethodService) ServiceRegistry.getService(MonbulkEnums.ServiceNames.Methods); service.getMethodList(this); } catch (ServiceRegistry.ServiceNotFoundException e) { GWT.log("Couldn't find Method service"); } _Newbutton.setText("Add New Method"); }
public ImogFilterPanel() { initWidget(uiBinder.createAndBindUi(this)); filterButton.setText(BaseNLS.constants().button_search()); cancelFilterButton.setText(BaseNLS.constants().button_cancel()); createFilterWidgets(); }
private void initButtons() { cancel.setText(constants.Cancel()); apply.setText(constants.Apply()); clear.setText(constants.Clear()); }
public void setText(String text) { _Newbutton.setText(text); }