Examples of ClickHandler


Examples of com.smartgwt.client.widgets.events.ClickHandler

      setIconSize(LAYER_TREE_BUTTON_SIZE - 8);
      setIcon(action.getIcon());
      setTooltip(action.getTooltip());
      setActionType(SelectionType.BUTTON);
      setShowDisabledIcon(false);
      addClickHandler(new ClickHandler() {

        public void onClick(ClickEvent event) {
          try {
            action.onClick(tree.getSelectedLayerTreeNode().getLayer());
            update();
View Full Code Here

Examples of com.smartgwt.client.widgets.events.ClickHandler

      setIcon(modalAction.getDeselectedIcon());
      setActionType(SelectionType.CHECKBOX);
      setTooltip(modalAction.getDeselectedTooltip());
      setShowDisabledIcon(false);

      this.addClickHandler(new ClickHandler() {

        public void onClick(ClickEvent event) {
          LayerTreeTreeNode selectedLayerNode = tree.getSelectedLayerTreeNode();
          if (LayerTreeModalButton.this.isSelected()) {
            modalAction.onSelect(selectedLayerNode.getLayer());
View Full Code Here

Examples of com.smartgwt.client.widgets.events.ClickHandler

    detailForm.getWidget().setGroupTitle("Edit");
    layout.addMember(detailForm.getWidget());

    applyButton = new IButton(I18nProvider.getAttribute().btnApplyTitle());
    applyButton.setTooltip(I18nProvider.getAttribute().btnApplyTooltip());
    applyButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        if (detailForm.validate() && selectedValue != null) {
          for (Map.Entry<String, Attribute<?>> entry : selectedValue.getAllAttributes().entrySet()) {
            detailForm.fromForm(entry.getKey(), entry.getValue());
            masterGrid.updateValue(selectedValue);
          }
          masterGrid.saveOrUpdateValue(selectedValue);
          masterGrid.selectValue(selectedValue);
          item.fireEvent(new ChangedEvent(item.getJsObj()));
          updateButtonState(false);
        }
      }
    });

    newButton = new IButton(I18nProvider.getAttribute().btnNewTitle());
    newButton.setTooltip(I18nProvider.getAttribute().btnNewTooltip());
    newButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        selectedValue = createInstance();
        detailForm.clear();
        for (AttributeInfo info : featureInfo.getAttributes()) {
          detailForm.toForm(info.getName(), selectedValue.getAllAttributes().get(info.getName()));
        }
        updateButtonState(false);
      }
    });

    deleteButton = new IButton(I18nProvider.getAttribute().btnDeleteTitle());
    deleteButton.setTooltip(I18nProvider.getAttribute().btnDeleteTooltip());
    deleteButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        if (selectedValue != null) {
          if (masterGrid.deleteValue(selectedValue)) {
            detailForm.clear();
View Full Code Here

Examples of com.smartgwt.client.widgets.events.ClickHandler

    buttonLayout.setMembersMargin(5);
    buttonLayout.setHeight(25);

    // Create a button to show the "roads" objects into a FeatureGrid:
    IButton button1a = new IButton("Show roads");
    button1a.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        VectorLayer layer = (VectorLayer) getMap().getMapModel().getLayer("roadsLayer");
        table.setLayer(layer);
        layer.getFeatureStore().getFeatures(GeomajasConstant.FEATURE_INCLUDE_ALL, new LazyLoadCallback() {
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.events.ClickHandler

       
    ButtonItem load = new ButtonItem("load","Load");
    load.setStartRow(false);
    load.setEndRow(false);
    load.setWidth("*");
    load.addClickHandler(new ClickHandler(){
      /* (non-Javadoc)
       * @see com.smartgwt.client.widgets.form.fields.events.ClickHandler#onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent)
       */
      public void onClick(ClickEvent event){
        request((String) URL.getValue(), Integer.valueOf((String) depth.getValue()));
      }
    });
       
    ButtonItem centre = new ButtonItem("centre","Centre");
    centre.setStartRow(false);
    centre.setEndRow(false);
    centre.setWidth("*");
    centre.addClickHandler(new ClickHandler(){
      /* (non-Javadoc)
       * @see com.smartgwt.client.widgets.form.fields.events.ClickHandler#onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent)
       */
      public void onClick(ClickEvent event){
        MindMap.get(MindMap.FOCUS_ID).centre();
      }
    });
   
    ButtonItem local = new ButtonItem("local","Local XML");
    local.setStartRow(false);
    local.setEndRow(false);
    local.setAutoFit(false);
    local.setWidth("*");
    local.addClickHandler(new ClickHandler(){
      /* (non-Javadoc)
       * @see com.smartgwt.client.widgets.form.fields.events.ClickHandler#onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent)
       */
      public void onClick(ClickEvent event){
        try{
View Full Code Here

Examples of com.smartgwt.client.widgets.menu.events.ClickHandler

        content = new HTMLFlow();
        content.setPosition(Positioning.ABSOLUTE);
        injectFunctions(this);
        showDetailsMenu = new Menu();
        MenuItem showDetailsMenuItem = new MenuItem(MSG.view_messageCenter_messageBarShowDetails());
        showDetailsMenuItem.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(MenuItemClickEvent event) {
                MessageCenterView.showDetails(MessageBar.this.currentMessage);
            }
        });

        MenuItem showRootCauseMenuItem = new MenuItem(MSG.view_messageCenter_messageRootCause());
        showRootCauseMenuItem.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(MenuItemClickEvent event) {
                Message msg = MessageBar.this.currentMessage;
                if (msg != null) {
                    String rootCause = msg.getRootCauseMessage();
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.handler.ClickHandler

    public boolean activate() {

        if (this.getMap() != null) {

            if (this.clickHandler == null) {
                this.clickHandler = new ClickHandler(this, this.clickHandlerOptions);
            }

            this.clickHandler.activate();

        }
View Full Code Here

Examples of org.wicketstuff.openlayers3.behavior.ClickHandler

                                // zoom level for the view
                                16)))));

        // click handler to hide popup when someone clicks on the map
        map.add(new ClickHandler() {

            @Override
            public void handleClick(AjaxRequestTarget target, LongLat longLat) {
                popoverPanel.hide(target);
            }
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.