Package com.extjs.gxt.ui.client.store

Examples of com.extjs.gxt.ui.client.store.ListStore


          @Override
          public void onSuccess(Object result) {
            fldUser.setEnabled(Boolean.TRUE);
            Map map = (Map) result;
            Collection users = (Collection) map.get(ParamsConst.DATA);
            ListStore listStore = new ListStore();
            Iterator it = users.iterator();
            while (it.hasNext()) {
              Map actual = (Map) it.next();
              listStore.add(getModelData((String)actual.get(ParamsConst.ID), (String)actual.get(ParamsConst.NAME)));
            }
           
            fldUser.setStore(listStore);
            String user = Context.getInstance().getUserID();
            setCombo(fldUser, user);
View Full Code Here


          @Override
          public void onSuccess(Object result) {

            Map map = (Map) result;
            Collection groups = (Collection) map.get(ParamsConst.DATA);
            ListStore listStore = new ListStore();
            Iterator it = groups.iterator();
            while (it.hasNext()) {
              Map actual = (Map) it.next();
              listStore.add(getModelData((String)actual.get(ParamsConst.NAME), (String)actual.get(ParamsConst.NAME)));
            }
           
            fldGroup.setStore(listStore);
          }
View Full Code Here

    }
    if (liveStore != null) {
      liveStore.removeStoreListener(liveStoreListener);
    }
    liveStore = ds;
    super.initData(new ListStore() {
      @Override
      public boolean equals(ModelData model1, ModelData model2) {
        return LiveGridView.this.liveStore.equals(model1, model2);
      }
View Full Code Here

    devis.setFieldLabel(messages.devis());
    devis.setMaxLength(60);
    formPanel.add(devis, new FormData(ANCHOR_SPEC));

    status = new CustomComboBox<SimpleDto>();
    status.setStore(new ListStore());
    status.setName(GestionDto.STATUT);
    status.setFieldLabel(messages.status());
    loadStatusData();
    formPanel.add(status, new FormData(ANCHOR_SPEC));

    TextField<String> label1 = new CustomTextField<String>();
    label1.setMaxLength(MAX_LENGTH_1);
    label1.setName(GestionDto.LABEL);
    formPanel.add(label1, new FormData(ANCHOR_SPEC));
    label1.setFieldLabel(messages.label());

    TextArea comment = new TextArea();
    comment.setName(GestionDto.COMMENT);
    formPanel.add(comment, new FormData(ANCHOR_SPEC));
    comment.setFieldLabel(messages.comment());

    NumberField amount1 = createNumberField(null);
    amount1.setName(GestionDto.AMOUNT);
    formPanel.add(amount1, new FormData(ANCHOR_SPEC));
    amount1.setFieldLabel(messages.amount());
    add(formPanel);

    marche = new CustomComboBox<SimpleDto>();
    marche.setName(GestionDto.MARCHE);
    marche.setStore(new ListStore());
    marche.setFieldLabel(messages.marche());
    loadMarcheData();
    formPanel.add(marche, new FormData(ANCHOR_SPEC));

    NumberField avenants = createNumberField(null);
    avenants.setName(GestionDto.TRAITE);
    formPanel.add(avenants, new FormData(ANCHOR_SPEC));
    avenants.setFieldLabel(messages.avenants());

    NumberField arrete = createNumberField(null);
    arrete.setName(GestionDto.ARRETE);
    formPanel.add(arrete, new FormData(ANCHOR_SPEC));
    arrete.setFieldLabel(messages.arrete());

    NumberField nonArrete = createNumberField(null);
    nonArrete.setName(GestionDto.NON_ARRETE);
    formPanel.add(nonArrete, new FormData(ANCHOR_SPEC));
    nonArrete.setFieldLabel(messages.nonArrete());

    NumberField provision = createNumberField(null);
    provision.setName(GestionDto.PROVISION);
    formPanel.add(provision, new FormData(ANCHOR_SPEC));
    provision.setFieldLabel(messages.provision());

    NumberField devisRefuse = createNumberField(null);
    devisRefuse.setName(GestionDto.DEVIS_REFUSE);
    formPanel.add(devisRefuse, new FormData(ANCHOR_SPEC));
    devisRefuse.setFieldLabel(messages.devisRefuse());

    NumberField reelActivite = createNumberField(null);
    reelActivite.setName(GestionDto.REEL_ACTIVITIVE);
    formPanel.add(reelActivite, new FormData(ANCHOR_SPEC));
    reelActivite.setFieldLabel(messages.reelActivitive());
    reelActivite.setMinValue(0);
    reelActivite.setMaxValue(100);

    type = new CustomComboBox<SimpleDto>();
    type.setStore(new ListStore());
    type.setName(GestionDto.TYPE);
    type.setFieldLabel(messages.type());
    loadTypeData();
    formPanel.add(type, new FormData(ANCHOR_SPEC));
View Full Code Here

public class CustomerHoldingsPanel extends FormPanel {
 
  ListStore holdings;

  public CustomerHoldingsPanel() {
    holdings = new ListStore();
   
//    final NumberFormat currency = NumberFormat.getCurrencyFormat(); 
//      final NumberFormat number = NumberFormat.getFormat("0.00"); 
//      final NumberCellRenderer<Grid<Holding>> numberRenderer = new NumberCellRenderer<Grid<Holding>>(currency); 
//   
View Full Code Here

    }
    if (liveStore != null) {
      liveStore.removeStoreListener(liveStoreListener);
    }
    liveStore = ds;
    super.initData(new ListStore() {
      @Override
      public void sort(String field, SortDir sortDir) {
        LiveGridView.this.liveStore.sort(field, sortDir);
        sortInfo = liveStore.getSortState();
      }
View Full Code Here

    }
    if (liveStore != null) {
      liveStore.removeStoreListener(liveStoreListener);
    }
    liveStore = ds;
    super.initData(new ListStore() {
      @Override
      public boolean equals(ModelData model1, ModelData model2) {
        return LiveGridView.this.liveStore.equals(model1, model2);
      }
View Full Code Here

      r.set("text", getFormat().format(min.asDate()));
      times.add(r);
      min = min.addMinutes(increment);
    }

    ListStore store = new ListStore();
    store.add(times);

    setStore(store);
    setDisplayField("text");
    super.initList();
  }
View Full Code Here

  }

  @Override
  protected void beforeRender() {
    super.beforeRender();
    ListStore<Theme> store = new ListStore();
    store.add(ThemeManager.getThemes());
    setStore(store);

    String theme = GXT.getThemeId();
    if (theme == null) {
      setValue(Theme.BLUE);
    } else {
      for (Theme t : store.getModels()) {
        if (theme.equals(t.getId().toLowerCase())) {
          setValue(t);
        }
      }
    }
View Full Code Here

    }
    if (liveStore != null) {
      liveStore.removeStoreListener(liveStoreListener);
    }
    liveStore = ds;
    super.initData(new ListStore() {
      @Override
      public boolean equals(ModelData model1, ModelData model2) {
        return LiveGridView.this.liveStore.equals(model1, model2);
      }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.store.ListStore

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.