Examples of ModelData


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

    }
    tree.refresh(node.m);
  }

  public void expand(TreeNode node) {
    ModelData p = node.m;
    List<ModelData> children = treeStore.getChildren(p);
    int idx = ds.indexOf(p);

    ds.insert(children, idx + 1);
View Full Code Here

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

  @Override
  protected void insertRows(ListStore<ModelData> store, int firstRow, int lastRow, boolean isUpdate) {
    super.insertRows(store, firstRow, lastRow, isUpdate);
    if (GXT.isAriaEnabled()) {
      for (int i = firstRow; i <= lastRow; i++) {
        ModelData m = store.getAt(i);
        getRow(i).setAttribute("aria-level", "" + treeStore.getDepth(m));
      }
    }
  }
View Full Code Here

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

    String gid = null;

    List<GroupColumnData> groups = new ArrayList<GroupColumnData>();

    for (int j = 0; j < rows.size(); j++) {
      ModelData model = (ModelData) rows.get(j);

      int rowIndex = (j + startRow);

      // the value for the group field
      Object gvalue = model.get(groupField);

      // the rendered group value
      String g = getGroup(gvalue, model, rowIndex, colIndex, ds);

      if (curGroup == null || !curGroup.group.equals(g)) {
View Full Code Here

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

    this.selected = new ArrayList<ModelData>(selected);
  }

  protected void onCheckChange(MenuEvent be) {
    CheckMenuItem item = (CheckMenuItem) be.getItem();
    ModelData m = (ModelData) item.getData("model");
    if (be.isChecked()) {
      if (!selected.contains(m)) {
        selected.add(m);
      }
    } else {
View Full Code Here

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

  protected void onShow() {
    super.onShow();

    removeAll(true);
    for (int i = 0; i < store.getCount(); i++) {
      ModelData m = store.getAt(i);
      CheckMenuItem item = new CheckMenuItem();
      Object v = m.get(filter.getDisplayProperty());
      item.setText(v == null ? "" : v.toString());
      item.setChecked(selected.contains(m));
      item.setHideOnClick(false);
      item.setData("model", m);
      item.addListener(Events.CheckChange, checkListener);
View Full Code Here

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

    String tstyle = "width:" + getTotalWidth() + "px;";

    StringBuilder buf = new StringBuilder();

    for (int j = 0; j < rows.size(); j++) {
      ModelData model = (ModelData) rows.get(j);

      model = prepareData(model);

      Record r = ds.hasRecord(model) ? ds.getRecord(model) : null;
View Full Code Here

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

      if (model instanceof BaseModel) {
        silent = ((BaseModel) model).isSilent();
        ((BaseModel) model).setSilent(true);
      }

      ModelData m = grid.getModelProcessor().prepareData(model);

      if (model instanceof BaseModel) {
        ((BaseModel) model).setSilent(silent);
      }
View Full Code Here

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

  }

  @SuppressWarnings("unchecked")
  protected void refreshRow(int row) {
    if (grid != null && grid.isViewReady()) {
      ModelData m = ds.getAt(row);
      if (m != null) {
        // do not change focus on refresh
        // handles situation with changing cell value with field binding
        focusEnabled = false;
View Full Code Here

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

      }

    });
    tree.setDisplayProperty("name");

    ModelData m = newItem("Family", null);
    store.add(m, false);
    tree.setExpanded(m, true);

    store.add(m, newItem("Darrell", "user"), false);
    store.add(m, newItem("Maro", "user-girl"), false);
View Full Code Here

Examples of com.google.speedtracer.client.timeline.ModelData

  private final JsIntegerMap<String> typesEncountered = JsIntegerMap.create().cast();

  public SluggishnessModel(DataDispatcher dataDispatcher) {
    this.dataDispatcher = dataDispatcher;

    graphModel = GraphModel.createGraphModel(new ModelData(), "", "ms", "",
        "%", false);

    sluggishness = new UiThreadUtilization(graphModel,
        defaultSluggishnessYScale);
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.