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

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


    verticalPanel.add(getFieldHorizontalLine(fldType, "Tipo de Evento", FIELD_WIDTH, LABEL_WIDTH));
    fldType.setAllowBlank(Boolean.FALSE);
    registerField(fldType);

    ListStore listStore = new ListStore();
    //listStore.add(getModelData(EventWindowOption.LDAP, "LDAP"));
    listStore.add(getModelData(EventWindowOption.LOGS, "Patron en logs"));
    listStore.add(getModelData(EventWindowOption.FILES, "Archivos"));
    listStore.add(getModelData(EventWindowOption.SERVICES, "Servicios"));
    fldType.setStore(listStore);
    fldType.setEditable(Boolean.FALSE);
    fldType.setTypeAhead(true)
    fldType.setTriggerAction(TriggerAction.ALL);
   
View Full Code Here


          @Override
          public void onSuccess(Object result) {

            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);
          }
View Full Code Here

    VerticalPanel bodyCaption = new VerticalPanel();
    caption.add(bodyCaption);
   
    bodyCaption.add(getFieldHorizontalLine(fldControlType, "Tipo de Control", FIELD_WIDTH, LABEL_WIDTH));
    fldControlType.setAllowBlank(Boolean.FALSE);
    ListStore listStore = new ListStore();
    listStore.add(getModelData("1", "Creacion"));
    listStore.add(getModelData("2", "Modificacion"));
    fldControlType.setStore(listStore);
    fldControlType.setEditable(Boolean.FALSE);
    fldControlType.setTypeAhead(true)
    fldControlType.setTriggerAction(TriggerAction.ALL);
View Full Code Here

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

    fldStatus.setStore(new ListStore<ModelData>());
    fldStatus.setEditable(Boolean.FALSE);
    fldStatus.setTypeAhead(true);
    fldStatus.setTriggerAction(TriggerAction.ALL);

    ListStore listStore = new ListStore();
    listStore
        .add(getModelData(StatusConst.PENDIENTE, StatusConst.PENDIENTE));
    listStore.add(getModelData(StatusConst.EN_CURSO, StatusConst.EN_CURSO));
    listStore.add(getModelData(StatusConst.FINALIZADA,
        StatusConst.FINALIZADA));
    listStore.add(getModelData(StatusConst.SUSPENDIDA,
        StatusConst.SUSPENDIDA));

    fldStatus.setStore(listStore);

    taskPanel.add(fldStatus);
View Full Code Here

                PermissionsConst.REASIGNAR_TAREAS))))) {
          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);
View Full Code Here

            PermissionsConst.RELACIONAR_CON_OBJETIVO)) {
          fldObjective.setEnabled(Boolean.TRUE);
        }
        Map map = (Map) result;
        Collection objectives = (Collection) map.get(ParamsConst.DATA);
        ListStore listStore = new ListStore();
        Iterator it = objectives.iterator();
        while (it.hasNext()) {
          Map actual = (Map) it.next();
          Context.getInstance().addDetailExecution(
              "Agregando "
                  + actual.get(ParamsConst.ID).toString()
                  + "-"
                  + actual.get(ParamsConst.NOMBRE_OBJETIVO));
          listStore.add(getModelData(actual.get(ParamsConst.ID)
              .toString(), (String) actual
              .get(ParamsConst.NOMBRE_OBJETIVO)));
        }

        fldObjective.setStore(listStore);
View Full Code Here

    registerField(fldEventType);
    verticalPanel.add(getFieldHorizontalLine(fldEvent, "Evento", FIELD_WIDTH, LABEL_WIDTH));
    fldEvent.setAllowBlank(Boolean.FALSE);
    registerField(fldEvent);
   
    ListStore listStoreEventType = new ListStore();
    //listStoreEventType.add(getModelData(ServiceNameConst.LIST_EVENT_LDAP, "LDAP"));
    listStoreEventType.add(getModelData(ServiceNameConst.LIST_EVENT_LOGS, "Patron en logs"));
    listStoreEventType.add(getModelData(ServiceNameConst.LIST_EVENT_FILES, "Archivos"));
    listStoreEventType.add(getModelData(ServiceNameConst.LIST_EVENT_SERVICES, "Servicios"));
    fldEventType.setStore(listStoreEventType);
    fldEventType.setEditable(Boolean.FALSE);
    fldEventType.setTypeAhead(true)
    fldEventType.setTriggerAction(TriggerAction.ALL);
   
    ListStore listStoreEvent = new ListStore();
    fldEvent.setStore(listStoreEvent);
    fldEvent.setEditable(Boolean.FALSE);
    fldEvent.setTypeAhead(true)
    fldEvent.setTriggerAction(TriggerAction.ALL);
   
    fldEventType.addSelectionChangedListener(new SelectionChangedListener() {

      @Override
      public void selectionChanged(SelectionChangedEvent se) {
        ModelData modelData = se.getSelectedItem();
        UpdateFldEvent(modelData, null);
      }
    });
   
   
    verticalPanel.add(getFieldHorizontalLine(fldAction, "Accion", FIELD_WIDTH, LABEL_WIDTH));
    fldAction.setAllowBlank(Boolean.FALSE);
    registerField(fldAction);

    ListStore listStore = new ListStore();
    listStore.add(getModelData(RelationWindowOption.CREATE_TASK, "Crear Tarea"));
    listStore.add(getModelData(RelationWindowOption.MODIFY_STATE, "Modificar Estado"));
    fldAction.setStore(listStore);
    fldAction.setEditable(Boolean.FALSE);
    fldAction.setTypeAhead(true)
    fldAction.setTriggerAction(TriggerAction.ALL);
   
View Full Code Here

            }

            @Override
            public void onSuccess(Object result) {
              fldEvent.clear();
              ListStore listStoreEvent = new ListStore();
              Map mapResult = (Map) result;
              Collection data = (Collection) mapResult.get(ParamsConst.DATA);
              for (Iterator iterator = data.iterator(); iterator.hasNext();) {
                Map event = (Map) iterator.next();
                listStoreEvent.add(getModelData(event.get(ParamsConst.ID).toString(), (String)event.get(ParamsConst.NAME)));
              }
              fldEvent.setStore(listStoreEvent);
              if (eventListener!=null){
                eventListener.execute();
              }
View Full Code Here

    CaptionPanel caption = new CaptionPanel("Modificar Estado");
    vPanel.add(caption);
    caption.setSize(ESPECIFIC_PANEL_WIDTH.toString(), ESPECIFIC_PANEL_HEIGTH.toString());

    ListStore listStoreState = new ListStore();
    listStoreState.add(getModelData(StatusConst.PENDIENTE, StatusConst.PENDIENTE));
    listStoreState.add(getModelData(StatusConst.EN_CURSO, StatusConst.EN_CURSO));
    listStoreState.add(getModelData(StatusConst.FINALIZADA, StatusConst.FINALIZADA));
    listStoreState.add(getModelData(StatusConst.SUSPENDIDA, StatusConst.SUSPENDIDA));
   

    VerticalPanel bodyCaption = new VerticalPanel();
    bodyCaption.add(getFieldHorizontalLine(fldFromState, "Estado inicial", FIELD_WIDTH, LABEL_WIDTH));
    fldFromState.setAllowBlank(Boolean.FALSE);
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.