Examples of BaseModel


Examples of com.extjs.gxt.ui.client.data.BaseModel

   * @param key
   * @param value
   * @return
   */
  protected BaseModel getModelData(String key, String value) {
    BaseModel baseModel = new BaseModel();
    baseModel.set("id", key);
    baseModel.set("name", value);
    return baseModel;
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BaseModel

    grid.getSelectionModel().setSelection(selection);
  }

  public String getActual(Object object){
    if (object instanceof BaseModel) {
      BaseModel model = (BaseModel) object;
      return model.get(ParamsConst.ID);
    }
    return (String) object;
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BaseModel

   * @param key
   * @param value
   * @return
   */
  protected BaseModel getModelData(String key, String value) {
    BaseModel baseModel = new BaseModel();
    baseModel.set("id", key);
    baseModel.set("name", value);
    return baseModel;
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BaseModel

    Collection ids = new ArrayList();
    List seleccionados = grid.getSelectionModel().getSelectedItems();
    Boolean validNoAsignada = Boolean.TRUE;
    Iterator it = seleccionados.iterator();
    while (it.hasNext()) {
      BaseModel model = (BaseModel) it.next();
      ids.add(model.get(ParamsConst.ID));
      if (validNoAsignada){
        validNoAsignada = ((Context.getInstance().getUsuario().get(ParamsConst.ID).equals(model.get(ParamsConst.ID_USUARIO))) ||
            (!(Context.getInstance().getUsuario().get(ParamsConst.ID).equals(model.get(ParamsConst.ID_USUARIO)))
                && Context.getInstance().isAvaiable(PermissionsConst.OBJETIVOS_NO_ASIGNADOS)));
      } else {
        break;
      }
    }
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BaseModel

    List seleccionados = grid.getSelectionModel().getSelectedItems();
    Map<Object,Object> actual = null;
    if (seleccionados.size() == 1) {
      Iterator it = seleccionados.iterator();
      if (it.hasNext()) {
        BaseModel model = (BaseModel) it.next();
        actual = grid.search(ParamsConst.ID, model.get(ParamsConst.ID));
      }
    }
    if ((Context.getInstance().getUsuario().get(ParamsConst.ID).equals(actual.get(ParamsConst.ID_USUARIO))) ||
        (!(Context.getInstance().getUsuario().get(ParamsConst.ID).equals(actual.get(ParamsConst.ID_USUARIO)))
            && Context.getInstance().isAvaiable(PermissionsConst.OBJETIVOS_NO_ASIGNADOS))){
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BaseModel

  protected void setId(Map params) {
    List seleccionados = eventWindow.getGrid().getSelectionModel().getSelection();
    if (seleccionados.size() == 1) {
      Iterator it = seleccionados.iterator();
      if (it.hasNext()) {
        BaseModel baseModel = (BaseModel) it.next();
        params.put(ParamsConst.ID, baseModel.get(ParamsConst.ID));
      }
    }

  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BaseModel

  @Override
  public void onSave() {
  }
 
  public void addDetailExecution(Date date, String detail){
    BaseModel baseModel = new BaseModel();
    baseModel.set(ParamsConst.DATE, date.toString());
    baseModel.set(ParamsConst.DETAIL, detail);
    store.add(baseModel);
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BaseModel

    Collection ids = new ArrayList();
    List seleccionados = grid.getSelectionModel()
        .getSelectedItems();
    Iterator it = seleccionados.iterator();
    while (it.hasNext()) {
      BaseModel model = (BaseModel) it.next();
      ids.add(model.get(ParamsConst.ID));
    }
    Map params = new HashMap<String, String>();
    params.put(ParamsConst.IDS, ids);
    params.put(ServiceNameConst.SERVICIO, ServiceNameConst.DELETE_RELATION);
    DispatcherUtil.getDispatcher().execute(params,
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BaseModel

          public void handleEvent(BaseEvent be) {
            List seleccionados = treeGrid.getSelectionModel().getSelection();
            if (seleccionados.size() == 1) {
              Iterator it = seleccionados.iterator();
              if (it.hasNext()) {
                BaseModel actual = (BaseModel) it.next();
                fieldValueReturn.setValue(actual.get(ParamsConst.PATH));
                close();
              }
            }
          }
        });
View Full Code Here

Examples of com.extjs.gxt.ui.client.data.BaseModel

    Collection ids = new ArrayList();
    List seleccionados = grid.getSelectionModel()
        .getSelectedItems();
    Iterator it = seleccionados.iterator();
    while (it.hasNext()) {
      BaseModel model = (BaseModel) it.next();
      ids.add(model.get(ParamsConst.ID));
    }
    Map params = new HashMap<String, String>();
    params.put(ParamsConst.IDS, ids);
    params.put(ServiceNameConst.SERVICIO, ServiceNameConst.DELETE_PROFILE);
    DispatcherUtil.getDispatcher().execute(params,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.