Package com.google.gwt.event.dom.client

Examples of com.google.gwt.event.dom.client.ChangeHandler


                }
                j++;
            }
        }

        box.addChangeHandler( new ChangeHandler() {

            public void onChange(ChangeEvent event) {
                field.setValue( box.getItemText( box.getSelectedIndex() ) );
                changed.valueChanged( field.getValue() );
            }
View Full Code Here


    @Override
    protected void init() {
        super.init();

        getWidget().fu.addChangeHandler(new ChangeHandler() {
            @Override
            public void onChange(ChangeEvent event) {
                if (hasEventListener(EventId.CHANGE)) {
                    getRpcProxy(UploadServerRpc.class).change(
                            getWidget().fu.getFilename());
View Full Code Here

   
    //VALORES ESPECIALIDAD
   
    listBoxEspecialidad.setSelectedIndex(0);
    listBoxEspecialidad.addItem("Sin Valor","0");
    listBoxEspecialidad.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
//        Window.alert(listBoxEspecialidad.getValue(listBoxEspecialidad.getSelectedIndex()));
        findPoliclinico(Integer.parseInt(listBoxEspecialidad.getValue(listBoxEspecialidad.getSelectedIndex())));
        InstanciaGrilla.find("0");
      }
    });
   
    flexTable.setWidget(2, 1, listBoxEspecialidad);
    flexTable.getCellFormatter().setWidth(2, 1, "100px");
    flexTable.getCellFormatter().setHeight(2, 1, "15px");
    flexTable.getCellFormatter().setStyleName(2, 1, "celdas-no-destacada");
   
   
    /*
     *
     */
    Label labelPoliclinico = new Label("PoliCl\u00EDnico");
    flexTable.setWidget(3, 0, labelPoliclinico);
   
    flexTable.getCellFormatter().setWidth(3, 0, "150px");
    flexTable.getCellFormatter().setHeight(3, 0, "15px");
    flexTable.getCellFormatter().setStyleName(3, 0, "celdas-destacadas");
    listBoxPoliclinico.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
        if(Integer.parseInt(listBoxPoliclinico.getValue(listBoxPoliclinico.getSelectedIndex( )))==0){
          InstanciaGrilla.find("0");
        }
        else{
View Full Code Here

        try {
        menu.close();
        } catch (Exception x) { }
    }
    });
    editor.addChangeHandler(new ChangeHandler() {
    @Override
    public void onChange(ChangeEvent event) {
        CommandEvent.fire(new CurrentDocumentChangedCommand());
    }
    });
View Full Code Here

    zoneTypes = new ListBox();
    zoneTypes.addItem("Residential", ZoneListing.ZONETYPE_RESIDENTIAL);
    zoneTypes.addItem("Commercial", ZoneListing.ZONETYPE_COMMERCIAL);
    zoneTypes.addItem("Industrial", ZoneListing.ZONETYPE_INDUSTRIAL);
    zoneTypes.setSelectedIndex(0);
    zoneTypes.addChangeHandler(new ChangeHandler() {
      @Override
      public void onChange(ChangeEvent event) {
        updateGPSTaggingTolerance();
      }
    });
View Full Code Here

    actionListBox = new ListBox();
    for (OverlayDemos od : OverlayDemos.values()) {
      actionListBox.addItem(od.valueOf());
    }
    actionListBox.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
        displayOverlay();
      }
    });
View Full Code Here

    // The drop down lists for setting the style
    final ListBox opacityBox = new ListBox();
    for (int i = 100; i > 0; i -= 10) {
      opacityBox.addItem(i + "%");
    }
    opacityBox.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
        String val = opacityBox.getItemText(opacityBox.getSelectedIndex());
        opacity = Double.parseDouble(val.replace("%", "")) / 100.0;
      }
    });
    grid.setWidget(1, 0, opacityBox);

    grid.setHTML(0, 1, "<b>Weight</b>");
    final ListBox weightBox = new ListBox();
    weightBox.addItem("1 pixel");
    weightBox.addItem("2 pixels");
    weightBox.addItem("3 pixels");
    weightBox.addItem("5 pixels");
    weightBox.addItem("10 pixels");
    weightBox.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
        String val = weightBox.getItemText(weightBox.getSelectedIndex());
        val = val.replace(" pixel", "");
        val = val.replace("s", "");
        weight = Integer.parseInt(val);
      }
    });
    grid.setWidget(1, 1, weightBox);

    grid.setHTML(0, 2, "<b>Color</b>");
    final ListBox colorBox = new ListBox();
    colorBox.addItem("#FF0000 red");
    colorBox.addItem("#FFFF00 yellow");
    colorBox.addItem("#00FF00 green");
    colorBox.addItem("#00FFFF cyan");
    colorBox.addItem("#0000FF blue");
    colorBox.addItem("#FF00FF violet");
    colorBox.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
        color = colorBox.getItemText(colorBox.getSelectedIndex()).substring(0,
            7);
      }
    });
View Full Code Here

    actionListBox.addItem(TEST_TABS);
    actionListBox.addItem(TEST_MAX_CONTENT);
    actionListBox.addItem(TEST_MAX_TITLE_CONTENT_WIDGET);
    actionListBox.addItem(TEST_MAP_BLOWUP);

    actionListBox.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
        displayInfoWindow();
      }
    });
View Full Code Here

      initListByMapType("Moon: ", MapType.getMoonMapTypes());
      initListByMapType("Mars: ", MapType.getMarsMapTypes());
      initListByMapType("Sky: ", MapType.getSkyMapTypes());
      initListByMapType("Mapmaker: ", MapType.getMapmakerMapTypes());

      lb.addChangeHandler(new ChangeHandler() {
        public void onChange(ChangeEvent event) {
          String selection = lb.getItemText(lb.getSelectedIndex());
          MapType mt = mapTypes.get(selection);
          if (mt != null) {
            map.setCurrentMapType(mt);
View Full Code Here

  private ArrayList<MapsDemoInfo> sinks = new ArrayList<MapsDemoInfo>();

  public DemoList() {
    initWidget(list);
    list.setVisibleItemCount(1);
    list.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
        History.newItem(list.getItemText(list.getSelectedIndex()));
      }
    });
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.event.dom.client.ChangeHandler

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.