Package org.geomajas.gwt.client.widget.attribute.AttributeFormFieldRegistry

Examples of org.geomajas.gwt.client.widget.attribute.AttributeFormFieldRegistry.DataSourceFieldFactory


  };

  public Canvas getViewPanel() {
    // @extract-start CustomAttributeFormFieldRegistry, CustomAttributeFormFieldRegistry
    // We define the custom type "myType" in the AttributeFormItemFactory:
    AttributeFormFieldRegistry.registerCustomFormItem("myType", new DataSourceFieldFactory() {

      public DataSourceField create() {
        return new DataSourceIntegerField();
      }
    }, new FormItemFactory() {
View Full Code Here


  };

  public Canvas getViewPanel() {
    // Start out by registering a new type in the AttributeFormFieldRegistry. When an attribute is configured with
    // the 'formInputType' equal to "myTextAre", then this type will be used (a text area):
    AttributeFormFieldRegistry.registerCustomFormItem("myTextArea", new DataSourceFieldFactory() {

      public DataSourceField create() {
        return new DataSourceTextField();
      }
    }, new FormItemFactory() {
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.widget.attribute.AttributeFormFieldRegistry.DataSourceFieldFactory

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.