Exemple #1
0
  public void refreshList() {

    try {
      MethodService service =
          (MethodService) ServiceRegistry.getService(MonbulkEnums.ServiceNames.Methods);
      this._searchPanel.clear();
      this._MenuStack.clear();
      this._MenuStack.removeAllRows();
      service.getMethodList(this);
    } catch (ServiceRegistry.ServiceNotFoundException e) {
      GWT.log("Couldn't find Method service");
    }
  }
Exemple #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");
  }
Exemple #3
0
  /**
   * In case you want to set the StylenNames for the menu - you can construct as follows
   *
   * @param tmpEvent
   * @param menuClassName
   * @param activeClassName
   * @param pClassName
   * @deprecated We no longer use the Menu class but a stack instead
   */
  public MethodList(
      HandlerManager tmpEvent, String menuClassName, String activeClassName, String pClassName) {
    initWidget(uiBinder.createAndBindUi(this));
    this.eventBus = tmpEvent;
    // this._MethodList.setStyleName(menuClassName);
    this.ActiveClassName = activeClassName;
    this.PassiveClassName = pClassName;
    try {
      MethodService service =
          (MethodService) ServiceRegistry.getService(MonbulkEnums.ServiceNames.Methods);
      service.getMethodList(this);
    } catch (ServiceRegistry.ServiceNotFoundException e) {
      GWT.log("Couldn't find metadata service");
    }
    // this._MethodList.setSize("137px", "400px");

  }