Package com.extjs.gxt.ui.client.data

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


    public void setEngine(Component component, String header, ButtonBar buttonsBar, Linker linker) {
        components.add(component);
        bars.add(buttonsBar);
        headers.add(header);
        BaseModelData data = new BaseModelData();
        data.set("header", header);
        list.getStore().add(data);
        cardsContainer.add(component);
    }
View Full Code Here


   * Creates a new record, wrapping a new model data instance.
   *
   * @param properties the initial values
   */
  public Record(Map<String, Object> properties) {
    this(new BaseModelData(properties));
  }
View Full Code Here

   * Creates a new record, wrapping a new model data instance.
   *
   * @param properties the initial values
   */
  public Record(Map<String, Object> properties) {
    this(new BaseModelData(properties));
  }
View Full Code Here

      max = max.clearTime().addMinutes((24 * 60) - 1);
    }

    List times = new ArrayList();
    while (min.before(max)) {
      BaseModelData r = new BaseModelData();
      r.set("text", getFormat().format(min.asDate()));
      times.add(r);
      min = min.addMinutes(increment);
    }

    ListStore store = new ListStore();
View Full Code Here

   * Creates a new record.
   *
   * @param properties the initial values
   */
  public Record(Map<String, Object> properties) {
    this(new BaseModelData(properties));
  }
View Full Code Here

   * Creates a new record, wrapping a new model data instance.
   *
   * @param properties the initial values
   */
  public Record(Map<String, Object> properties) {
    this(new BaseModelData(properties));
  }
View Full Code Here

          @Override
          public void onSuccess(List<FuelTrackEntry> result) {
            List<ModelData> models = new ArrayList<ModelData>();
           
            for (FuelTrackEntry entry : result) {
              BaseModelData model = new BaseModelData();
             
              model.set("date", entry.getDate());
              model.set("odometer", entry.getOdometer());
              model.set("tripMeter", entry.getTripMeter());
              model.set("litres", entry.getLitres());
              model.set("amount", entry.getAmount());
             
              models.add(model);
            }
            callback.onSuccess(new BaseListLoadResult<ModelData>(models));
          }
View Full Code Here

    if (ensureVisibilityOnSizing) {
      List<ModelData> list = new ArrayList<ModelData>();
      Element p = getElement();
      while (p != null && p != XDOM.getBody()) {
        if (fly(p).isStyleAttribute("display", "none")) {
          ModelData b = new BaseModelData();
          b.set("element", p);
          b.set("origd", p.getStyle().getProperty("display"));
          b.set("hasxhideoffset", fly(p).hasStyleName("x-hide-offset"));
          if (!b.<Boolean> get("hasxhideoffset")) {
            fly(p).addStyleName("x-hide-offset");
          }
          p.getStyle().setProperty("display", "block");
          list.add(b);
        }
View Full Code Here

   * Creates a new record, wrapping a new model data instance.
   *
   * @param properties the initial values
   */
  public Record(Map<String, Object> properties) {
    this(new BaseModelData(properties));
  }
View Full Code Here

   * Creates a new record, wrapping a new model data instance.
   *
   * @param properties the initial values
   */
  public Record(Map<String, Object> properties) {
    this(new BaseModelData(properties));
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.data.BaseModelData

Copyright © 2018 www.massapicom. 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.