Java Code Examples for com.smartgwt.client.data.fields.DataSourceIntegerField#setHidden()

The following examples show how to use com.smartgwt.client.data.fields.DataSourceIntegerField#setHidden() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AttributeOptionsDS.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
public AttributeOptionsDS(long setId, String attribute, boolean withEmpty) {
	setRecordXPath("/list/option");
	DataSourceTextField id = new DataSourceTextField("id");
	id.setPrimaryKey(true);
	id.setHidden(true);
	id.setRequired(true);
	DataSourceTextField _attribute = new DataSourceTextField("attribute");
	_attribute.setHidden(true);

	DataSourceTextField value = new DataSourceTextField("value");

	DataSourceIntegerField position = new DataSourceIntegerField("position");
	position.setHidden(true);

	DataSourceTextField _templateId = new DataSourceTextField("templateId");
	_templateId.setHidden(true);

	setFields(id, _attribute, value, position, _templateId);
	setClientOnly(true);

	setDataURL("data/attributeoptions.xml?setId=" + setId + "&" + "attribute=" + attribute + "&withempty="
			+ withEmpty);
}
 
Example 2
Source File: BookmarksDS.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
public BookmarksDS() {
	setTitleField("name");
	setRecordXPath("/list/bookmark");
	DataSourceTextField name = new DataSourceTextField("name");
	DataSourceTextField id = new DataSourceTextField("id");
	id.setPrimaryKey(true);
	id.setHidden(true);
	id.setRequired(true);
	DataSourceImageField icon = new DataSourceImageField("icon");
	DataSourceTextField description = new DataSourceTextField("description");
	DataSourceIntegerField position = new DataSourceIntegerField("position");
	DataSourceTextField userId = new DataSourceTextField("userId");
	DataSourceTextField targetId = new DataSourceTextField("targetId");
	DataSourceTextField folderId = new DataSourceTextField("folderId");
	DataSourceIntegerField type = new DataSourceIntegerField("type");
	type.setHidden(true);

	setFields(id, name, description, icon, userId, targetId, position, folderId, type);
	setClientOnly(true);
	setDataURL("data/bookmarks.xml");
}
 
Example 3
Source File: UserDataSource.java    From SensorWebClient with GNU General Public License v2.0 6 votes vote down vote up
public UserDataSource() {

        DataSourceIntegerField id = new DataSourceIntegerField("parameterId", "ID");
        id.setPrimaryKey(true);
        id.setHidden(true);

        DataSourceTextField userName = new DataSourceTextField("userName", i18n.userName());
        DataSourceTextField name = new DataSourceTextField("name", i18n.name());
        DataSourceTextField password = new DataSourceTextField("password", i18n.password());
        DataSourceTextField eMail = new DataSourceTextField("eMail", i18n.emailAddress());
        DataSourceTextField handy = new DataSourceTextField("handy", i18n.handyNumber());
        DataSourceTextField role = new DataSourceTextField("role", i18n.role());

        setFields(id, userName, name, password, eMail, handy, role);

        setClientOnly(true);
    }
 
Example 4
Source File: SOSDataSource.java    From SensorWebClient with GNU General Public License v2.0 6 votes vote down vote up
public SOSDataSource(String id) {
	setID(id);
	setRecordXPath("/instances/instance");
	DataSourceIntegerField pkField = new DataSourceIntegerField("itemID");
       pkField.setPrimaryKey(true);  
	pkField.setHidden(true);

	DataSourceTextField sosURLField = new DataSourceTextField("url");
	DataSourceTextField sosVersionField = new DataSourceTextField("version");
	DataSourceBooleanField cachedField = new DataSourceBooleanField("cached");
	DataSourceTextField sosItemNameField = new DataSourceTextField("itemName");
	DataSourceBooleanField waterMLField = new DataSourceBooleanField("waterML");
	DataSourceFloatField llEastingField = new DataSourceFloatField("llEasting");
	DataSourceFloatField urEastingField = new DataSourceFloatField("urEasting");
	DataSourceFloatField llNorthingField = new DataSourceFloatField("llNorthing");
	DataSourceFloatField urNorthingField = new DataSourceFloatField("urNorthing");
	DataSourceIntegerField defaultZoomField = new DataSourceIntegerField("defaultZoom");
	DataSourceIntegerField requestChunkField = new DataSourceIntegerField("requestChunk");
	
	setFields(pkField, sosItemNameField, sosVersionField, sosURLField, waterMLField, cachedField, llEastingField, llNorthingField, urEastingField, urNorthingField, defaultZoomField, requestChunkField);
	setDataURL(SOS_INSTANCES_DATA_SOURCE);
}
 
Example 5
Source File: StreamProfileDataSource.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
public StreamProfileDataSource() {
    setID(ID);
    setDataURL(RestConfig.URL_DIGOBJECT_STREAMPROFILE);

    DataSourceTextField fieldId = new DataSourceTextField(FIELD_ID);
    fieldId.setPrimaryKey(Boolean.TRUE);

    DataSourceTextField fieldMime = new DataSourceTextField(FIELD_MIME);
    DataSourceTextField fieldLabel = new DataSourceTextField(FIELD_LABEL);
    DataSourceIntegerField fieldOrder = new DataSourceIntegerField(FIELD_ORDER);
    fieldOrder.setHidden(true);
    setFields(fieldId, fieldMime, fieldLabel, fieldOrder);
    setRequestProperties(RestConfig.createRestRequest(getDataFormat()));
}
 
Example 6
Source File: UserDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public UserDataSource() {
    setID(ID);

    ClientMessages i18n = GWT.create(ClientMessages.class);

    setDataURL(RestConfig.URL_USER);

    DataSourceIntegerField userId = new DataSourceIntegerField(FIELD_ID);
    userId.setPrimaryKey(true);
    userId.setCanEdit(false);
    userId.setHidden(true);
    userId.setTitle(i18n.UsersView_ListHeader_Id_Title());

    DataSourceTextField userName = new DataSourceTextField(FIELD_USERNAME);
    userName.setCanEdit(false);
    userName.setRequired(true);
    userName.setReadOnlyEditorProperties(new StaticTextItem());
    userName.setTitle(i18n.UsersView_ListHeader_Username_Title());
    userName.setPrompt(i18n.UsersView_ListHeader_Username_Hint());

    DataSourcePasswordField passwd = new DataSourcePasswordField(FIELD_PASSWORD);
    passwd.setHidden(true);
    passwd.setTitle(i18n.UsersView_ListHeader_Password_Title());

    DataSourceTextField surname = new DataSourceTextField(UserResourceApi.USER_SURNAME);
    surname.setRequired(true);
    surname.setTitle(i18n.UsersView_ListHeader_Surname_Title());

    DataSourceTextField forename = new DataSourceTextField(UserResourceApi.USER_FORENAME);
    forename.setTitle(i18n.UsersView_ListHeader_Forename_Title());

    DataSourceTextField organization = new DataSourceTextField(UserResourceApi.USER_ORGANIZATION);
    organization.setTitle(i18n.UsersView_ListHeader_Organization_Title());
    organization.setValueMap(Organization.getMap());
    organization.setReadOnlyEditorProperties(new StaticTextItem());

    DataSourceTextField role = new DataSourceTextField(UserResourceApi.USER_ROLE);
    role.setTitle(i18n.UsersView_ListHeader_Role_Title());
    role.setValueMap(UserRole.getMap());
    role.setReadOnlyEditorProperties(new StaticTextItem());

    DataSourceTextField email = new DataSourceTextField(UserResourceApi.USER_EMAIL);
    email.setTitle(i18n.UsersView_ListHeader_Email_Title());

    DataSourceTextField home = new DataSourceTextField(UserResourceApi.USER_HOME);
    home.setCanEdit(false);
    home.setReadOnlyEditorProperties(new StaticTextItem());
    home.setHidden(true);
    home.setTitle(i18n.UsersView_ListHeader_Home_Title());

    DataSourceDateTimeField created = new DataSourceDateTimeField(UserResourceApi.USER_CREATED);
    created.setCanEdit(false);
    created.setTitle(i18n.UsersView_ListHeader_Created_Title());
    created.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATETIME);

    DataSourceTextField remoteName = new DataSourceTextField(UserResourceApi.USER_REMOTENAME);
    remoteName.setTitle(i18n.UsersView_ListHeader_RemoteName_Title());
    remoteName.setCanEdit(false);
    remoteName.setHidden(true);

    DataSourceTextField remoteType = new DataSourceTextField(UserResourceApi.USER_REMOTETYPE);
    remoteType.setTitle(i18n.UsersView_ListHeader_RemoteType_Title());
    remoteType.setCanEdit(false);
    remoteType.setHidden(true);

    setFields(userId, userName, passwd, surname, forename, organization, role, email, created, remoteName, remoteType, home);

    setOperationBindings(RestConfig.createAddOperation(), RestConfig.createUpdateOperation());
    setRequestProperties(RestConfig.createRestRequest(getDataFormat()));
}