Package com.smartgwt.client.widgets.form.fields.events

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


  public HandlerRegistration addChangedHandler(final ChangedHandler handler) {
    return enabledForm.addItemChangedHandler(new ItemChangedHandler() {

      public void onItemChanged(ItemChangedEvent event) {
        handler.onChanged(new ChangedEvent(EnableToggleFormItem.this.getJsObj()));
      }
    });

  }
View Full Code Here


              throw new IllegalStateException("Unhandled association attribute type " +
                  associationInfo.getType());
          }
        }
      }
      item.fireEvent(new ChangedEvent(item.getJsObj()));
    }
  }
View Full Code Here

            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();
            selectedValue = null;
            item.fireEvent(new ChangedEvent(item.getJsObj()));
            updateButtonState(false);
          }
        }
      }
    });
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.form.fields.events.ChangedEvent

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.