Examples of ModelChangeEvent


Examples of com.tll.client.model.ModelChangeEvent

        mop = ModelChangeOp.DELETED;
        break;
      default:
        throw new IllegalStateException("Unhandled crud op: " + crudOp);
      }
      source.fireEvent(new ModelChangeEvent(mop, result.getModel(), result.getRef(), result.getStatus()));
    }
  }
View Full Code Here

Examples of com.tll.client.model.ModelChangeEvent

  protected void handleSuccess(AuxDataPayload result) {
    // cache the results
    AuxDataCacheHelper.cache(result);
    super.handleSuccess(result);
    if(source != null)
      source.fireEvent(new ModelChangeEvent(ModelChangeOp.AUXDATA_READY, null, null, result.getStatus()));
  }
View Full Code Here

Examples of org.beryl.gui.model.ModelChangeEvent

public abstract class AbstractView implements View {
  private MapDataModel model = null;

  public void setDataModel(MapDataModel newModel) throws GUIException {
    ModelChangeEvent event = new ModelChangeEvent(this, newModel);
    if (model != null)
      model.removeView(this);
    model = newModel;
    model.addView(this);
    modelChanged(event);
View Full Code Here

Examples of org.beryl.gui.model.ModelChangeEvent

      super.setProperty(name, value);
    }
  }

  public void setListDataModel(ListDataModel listDataModel) throws GUIException {
    ModelChangeEvent event = new ModelChangeEvent(this, listDataModel);
    this.listDataModel = listDataModel;
    sendEvents = false;
    try {
      list.setModel(new ListDataModelAdapter(listDataModel));
    } finally {
View Full Code Here

Examples of org.beryl.gui.model.ModelChangeEvent

      model.setValue(Table.this, valueKey, rows);
    }
  }

  public void setTableDataModel(TableDataModel tableDataModel) throws GUIException {
    ModelChangeEvent event = new ModelChangeEvent(this, tableDataModel);
    this.tableDataModel = tableDataModel;
    try {
      sendEvents = false;
      table.editingStopped(null); /* This is necessary to ensure the changes won't be discarded */
      TableDataModelAdapter adapter = new TableDataModelAdapter(tableDataModel);
View Full Code Here

Examples of org.beryl.gui.model.ModelChangeEvent

      super.setProperty(name, value);
    }
  }

  public void setListDataModel(ListDataModel listDataModel) throws GUIException {
    ModelChangeEvent event = new ModelChangeEvent(this, listDataModel);
    this.listDataModel = listDataModel;
    sendEvents = false;
    try {
      comboBox.setModel(new ComboBoxDataModelAdapter(listDataModel));
    } finally {
View Full Code Here

Examples of org.beryl.gui.model.ModelChangeEvent

      throw new GUIException("There are no static items to remove");
    }
  }

  public void setListDataModel(ListDataModel listDataModel) throws GUIException {
    ModelChangeEvent event = new ModelChangeEvent(this, listDataModel);
    this.listDataModel = listDataModel;
    sendEvents = false;
    try {
      iconView.setModel(new List.ListDataModelAdapter(listDataModel));
    } finally {
View Full Code Here

Examples of org.fusesource.restygwt.example.client.event.ModelChangeEvent

                JSONValue jsonValue = JSONParser.parseStrict(modelChangeIdentifier);
                JSONArray jsonArray = jsonValue.isArray();

                if (jsonArray != null) {
                    for (int i = 0; i < jsonArray.size(); ++i) {
                        ModelChangeEvent e = new ModelChangeEvent(
                                jsonArray.get(i).isString().stringValue());

                        if (getLogger() != null) {
                            getLogger().info("fire event \"" + e + "\" ...");
                        }
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.