Example #1
0
 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());
   }
 }
Example #2
0
  /**
   * 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");
  }
Example #3
0
 public ImogFilterPanel() {
   initWidget(uiBinder.createAndBindUi(this));
   filterButton.setText(BaseNLS.constants().button_search());
   cancelFilterButton.setText(BaseNLS.constants().button_cancel());
   createFilterWidgets();
 }
Example #4
0
 private void initButtons() {
   cancel.setText(constants.Cancel());
   apply.setText(constants.Apply());
   clear.setText(constants.Clear());
 }
Example #5
0
 public void setText(String text) {
   _Newbutton.setText(text);
 }