Package com.smartgwt.client.data.fields

Examples of com.smartgwt.client.data.fields.DataSourceIntegerField


        setID(id);
        setTitleField("employeeName");
        setRecordXPath("/List/teamMember");

        DataSourceIntegerField syntheticField = new DataSourceIntegerField("uniqueSeq");
        syntheticField.setHidden(true);
        syntheticField.setPrimaryKey(true);

        DataSourceTextField nameField = new DataSourceTextField("employeeName", "Name", 128);

        DataSourceIntegerField employeeIdField = new DataSourceIntegerField("employeeId", "Employee ID");
        employeeIdField.setForeignKey("employeesDS.EmployeeId");
       
        DataSourceTextField projectCodeField = new DataSourceTextField("projectCode", "Project Code", 30);

        setFields(syntheticField, nameField, employeeIdField, projectCodeField);
View Full Code Here


    super();
    setPreventHTTPCaching( true );
    setCanMultiSort( false );
    for (MessageListFields fieldDef : MessageListFields.values()) {
      DataSourceField field = new DataSourceIntegerField( fieldDef.name() );
      if ( MessageListFields.ID.equals( fieldDef ) ) {
        field.setRequired( true );
        field.setPrimaryKey( true );
      }
      addField( field );
    }
  }
View Full Code Here

TOP

Related Classes of com.smartgwt.client.data.fields.DataSourceIntegerField

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.