Java Code Examples for com.smartgwt.client.data.fields.DataSourceTextField#setHidden()
The following examples show how to use
com.smartgwt.client.data.fields.DataSourceTextField#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: DeletedFoldersDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public DeletedFoldersDS(Long userId, Long parentId) { setTitleField("name"); setRecordXPath("/list/folder"); DataSourceTextField name = new DataSourceTextField("name"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceImageField icon = new DataSourceImageField("icon"); DataSourceDateTimeField lastModified = new DataSourceDateTimeField("lastModified"); DataSourceTextField parentIdField = new DataSourceTextField("parentId"); DataSourceImageField deleteUserId = new DataSourceImageField("deleteUserId"); DataSourceTextField deleteUser = new DataSourceTextField("deleteUser"); setFields(id, name, lastModified, icon, parentIdField, deleteUser, deleteUserId); setClientOnly(true); String url = "data/deletedfolders.xml?1=1"; if (userId != null) url += "&userId=" + userId; if (parentId != null) url += "&parentId=" + parentId; setDataURL(url); }
Example 2
Source File: NotesDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
private void prepareFields() { setRecordXPath("/list/post"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceTextField userId = new DataSourceTextField("userId"); userId.setHidden(true); DataSourceTextField docId = new DataSourceTextField("docId"); docId.setHidden(true); DataSourceTextField user = new DataSourceTextField("user"); DataSourceTextField message = new DataSourceTextField("message"); DataSourceTextField page = new DataSourceTextField("page"); DataSourceDateTimeField date = new DataSourceDateTimeField("date"); DataSourceTextField docFilename = new DataSourceTextField("docFilename"); DataSourceTextField color = new DataSourceTextField("color"); DataSourceTextField fileVersion = new DataSourceTextField("fileVersion"); setFields(id, page, userId, user, message, date, docId, docFilename, fileVersion, color); setClientOnly(true); }
Example 3
Source File: ParsersDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
private ParsersDS() { setTitleField("name"); setRecordXPath("/list/parser"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceImageField icon = new DataSourceImageField("icon"); DataSourceTextField extension = new DataSourceTextField("extension"); DataSourceTextField name = new DataSourceTextField("name"); DataSourceTextField aliases = new DataSourceTextField("aliases"); setFields(id, icon, extension, name, aliases); setClientOnly(true); setDataURL("data/parsers.xml"); }
Example 4
Source File: GarbageDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public GarbageDS() { setTitleField("filename"); setRecordXPath("/list/entry"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceImageField icon = new DataSourceImageField("icon"); DataSourceTextField customId = new DataSourceTextField("customId"); DataSourceDateTimeField lastModified = new DataSourceDateTimeField("lastModified"); DataSourceTextField folderId = new DataSourceTextField("folderId"); DataSourceTextField type = new DataSourceTextField("type"); DataSourceTextField fileName = new DataSourceTextField("filename"); setFields(id, fileName, customId, icon, lastModified, folderId, type); setClientOnly(true); setDataURL("data/garbage.xml"); }
Example 5
Source File: IncrementalArchivesDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public IncrementalArchivesDS(int archivesType) { setTitleField("name"); setRecordXPath("/list/archive"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceTextField prefix = new DataSourceTextField("prefix"); DataSourceTextField type = new DataSourceTextField("type"); DataSourceTextField typelabel = new DataSourceTextField("typelabel"); DataSourceIntegerField frequency = new DataSourceIntegerField("frequency"); setFields(id, prefix, type, typelabel, frequency); setClientOnly(true); setDataURL("data/incrementalarchives.xml?locale=" + I18N.getLocale() + "&type=" + archivesType); }
Example 6
Source File: ContactsDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public ContactsDS() { setTitleField("email"); setRecordXPath("/list/contact"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceTextField email = new DataSourceTextField("email"); DataSourceTextField firstName = new DataSourceTextField("firstName"); DataSourceTextField lastName = new DataSourceTextField("lastName"); DataSourceTextField company = new DataSourceTextField("company"); setFields(id, email, firstName, lastName, company); setDataURL("data/contacts.xml?userId=" + Session.get().getUser().getId()); setClientOnly(true); }
Example 7
Source File: DocumentAliasesDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public DocumentAliasesDS(long docId) { setTitleField("filename"); setRecordXPath("/list/alias"); DataSourceImageField icon = new DataSourceImageField("icon"); DataSourceTextField filename = new DataSourceTextField("filename"); DataSourceTextField path = new DataSourceTextField("path"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceTextField folderId = new DataSourceTextField("folderId"); folderId.setHidden(true); setFields(id, icon, filename, path, folderId); setClientOnly(true); setDataURL("data/documentaliases.xml?docId=" + docId); }
Example 8
Source File: FormatConvertersDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public FormatConvertersDS(String converter) { setTitleField("converters"); setRecordXPath("/list/association"); DataSourceTextField id = new DataSourceTextField("id", I18N.message("id")); id.setPrimaryKey(true); id.setHidden(true); DataSourceTextField in = new DataSourceTextField("in", I18N.message("in")); DataSourceTextField out = new DataSourceTextField("out", I18N.message("out")); DataSourceBooleanField selected = new DataSourceBooleanField("selected", I18N.message("selected")); DataSourceBooleanField enabled = new DataSourceBooleanField("eenabled", I18N.message("enabled")); setFields(id, in, out, selected, enabled); setDataURL("data/formatconverters.xml?converter=" + converter); setClientOnly(true); }
Example 9
Source File: AttributesDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public AttributesDS() { setTitleField("attributes"); setRecordXPath("/list/attribute"); DataSourceTextField name = new DataSourceTextField("name"); name.setPrimaryKey(true); DataSourceTextField label = new DataSourceTextField("label"); DataSourceTextField type = new DataSourceTextField("type"); type.setHidden(true); setFields(name, label, type); setTitleField("name"); setDataURL("data/attributes.xml?locale=" + I18N.getLocale()); setClientOnly(true); }
Example 10
Source File: DashletsDS.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public DashletsDS() { setTitleField("title"); setRecordXPath("/list/dashlet"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceTextField name = new DataSourceTextField("name"); DataSourceTextField title = new DataSourceTextField("title"); DataSourceTextField type = new DataSourceTextField("type"); DataSourceTextField content = new DataSourceTextField("content"); DataSourceTextField query = new DataSourceTextField("query"); setFields(id, name, title, type, content, query); setClientOnly(true); setDataURL("data/dashlets.xml?locale="+I18N.getLocale()); }
Example 11
Source File: ArchivedDocsDS.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public ArchivedDocsDS(Long folderId, Integer max) { setTitleField("filename"); setRecordXPath("/list/document"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceImageField icon = new DataSourceImageField("icon"); DataSourceTextField customId = new DataSourceTextField("customId"); DataSourceTextField version = new DataSourceTextField("version"); DataSourceTextField fileVersion = new DataSourceTextField("fileVersion"); DataSourceFloatField size = new DataSourceFloatField("size"); DataSourceDateTimeField lastModified = new DataSourceDateTimeField("lastModified"); DataSourceDateTimeField created = new DataSourceDateTimeField("created"); DataSourceTextField filename = new DataSourceTextField("filename"); DataSourceTextField fid = new DataSourceTextField("folderId"); DataSourceTextField folder = new DataSourceTextField("folder"); DataSourceTextField type = new DataSourceTextField("type"); setFields(id, size, version, fileVersion, created, lastModified, customId, icon, filename, fid, folder, type); setClientOnly(true); String url = "data/archiveddocs.xml?1=1"; if (folderId != null) url += "&folderId=" + folderId; if (max != null) url += "&max=" + max; setDataURL(url); }
Example 12
Source File: FoldersDS.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public FoldersDS(String id, boolean nopagination) { String dsId = id; if (dsId == null) dsId = "FoldersDS"; setID(dsId); setTitleField("name"); setRecordXPath("/list/folder"); DataSourceTextField name = new DataSourceTextField("name", I18N.message("name"), 255); DataSourceTextField color = new DataSourceTextField("color", I18N.message("color"), 255); DataSourceTextField recordId = new DataSourceTextField("id", I18N.message("id")); recordId.setPrimaryKey(true); recordId.setRequired(true); DataSourceTextField folderId = new DataSourceTextField("folderId", I18N.message("id")); folderId.setHidden(true); DataSourceTextField foldRef = new DataSourceTextField("foldRef"); foldRef.setHidden(true); DataSourceIntegerField type = new DataSourceIntegerField("type", I18N.message("type")); type.setRequired(true); DataSourceFloatField size = new DataSourceFloatField("size", I18N.message("size")); DataSourceTextField parent = new DataSourceTextField("parent", "Parent ID"); parent.setRequired(true); parent.setForeignKey(dsId + ".id"); parent.setRootValue("/"); setFields(recordId, name, folderId, foldRef, parent, type, size, color); setDataURL("data/folders.xml" + (nopagination ? "?nopagination=true" : "")); setClientOnly(false); }
Example 13
Source File: UserPermissionDataSource.java From proarc with GNU General Public License v3.0 | 5 votes |
public UserPermissionDataSource() { setID(ID); setDataURL(RestConfig.URL_USER_PERMISSIONS); DataSourceTextField permId = new DataSourceTextField(FIELD_PERMISSIONID); permId.setPrimaryKey(true); permId.setCanEdit(false); permId.setHidden(true); DataSourceTextField display = new DataSourceTextField(FIELD_DISPLAY); setFields(permId, display); setRequestProperties(RestConfig.createRestRequest(getDataFormat())); }
Example 14
Source File: DuplicatesDS.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
/** * Constructor * * @param folderId identifier of the folder * @param max maximum number of entries */ public DuplicatesDS(Long folderId, int max) { setTitleField("filename"); setRecordXPath("/list/duplicate"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceImageField icon = new DataSourceImageField("icon"); DataSourceTextField customId = new DataSourceTextField("customId"); DataSourceTextField version = new DataSourceTextField("version"); DataSourceTextField publisher = new DataSourceTextField("publisher"); DataSourceFloatField size = new DataSourceFloatField("size"); DataSourceDateTimeField lastModified = new DataSourceDateTimeField("lastModified"); DataSourceTextField filename = new DataSourceTextField("filename"); DataSourceTextField digest = new DataSourceTextField("digest"); DataSourceImageField immutable = new DataSourceImageField("immutable"); DataSourceTextField foldId = new DataSourceTextField("folderId"); DataSourceTextField type = new DataSourceTextField("type"); DataSourceImageField locked = new DataSourceImageField("locked"); DataSourceTextField folderName = new DataSourceTextField("foldername"); setFields(id, size, publisher, version, lastModified, customId, icon, filename, digest, immutable, foldId, folderName, type, locked); setClientOnly(true); setDataURL("data/duplicates.xml?max=" + max + (folderId != null ? "&folderId=" + folderId : "")); }
Example 15
Source File: LockedDocsDS.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public LockedDocsDS(Long userId) { setTitleField("filename"); setRecordXPath("/list/document"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceImageField icon = new DataSourceImageField("icon"); DataSourceTextField customId = new DataSourceTextField("customId"); DataSourceTextField version = new DataSourceTextField("version"); DataSourceTextField fileVersion = new DataSourceTextField("fileVersion"); DataSourceTextField userIdItem = new DataSourceTextField("userId"); DataSourceTextField username = new DataSourceTextField("username"); DataSourceFloatField size = new DataSourceFloatField("size"); DataSourceDateTimeField lastModified = new DataSourceDateTimeField("lastModified"); DataSourceTextField fileName = new DataSourceTextField("filename"); DataSourceTextField digest = new DataSourceTextField("digest"); DataSourceIntegerField immutable = new DataSourceIntegerField("immutable"); DataSourceTextField folderId = new DataSourceTextField("folderId"); DataSourceTextField type = new DataSourceTextField("type"); DataSourceIntegerField status = new DataSourceIntegerField("status"); setFields(id, userIdItem, username, size, version, fileVersion, lastModified, customId, icon, fileName, digest, immutable, folderId, type, status); setClientOnly(true); String url = "data/lockeddocs.xml"; if (userId != null) url += "?userId=" + userId; setDataURL(url); }
Example 16
Source File: SkinsDS.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public SkinsDS() { setTitleField("label"); setRecordXPath("/list/skin"); DataSourceTextField name = new DataSourceTextField("name"); DataSourceTextField label = new DataSourceTextField("label"); name.setPrimaryKey(true); name.setHidden(true); name.setRequired(true); setFields(name, label); setClientOnly(true); setDataURL("data/skins.xml"); }
Example 17
Source File: EventsDS.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public EventsDS(boolean folder, boolean workflow, boolean user) { setRecordXPath("/list/event"); DataSourceTextField code = new DataSourceTextField("code"); code.setPrimaryKey(true); code.setHidden(true); code.setRequired(true); DataSourceTextField type = new DataSourceTextField("type"); DataSourceTextField label = new DataSourceTextField("label"); setFields(code, type, label); setClientOnly(true); setDataURL("data/events.xml?locale=" + I18N.getLocale() + "&folder=" + folder + "&workflow=" + "&user=" + user); }
Example 18
Source File: ImportTreeDataSource.java From proarc with GNU General Public License v3.0 | 5 votes |
private ImportTreeDataSource() { setID(ID); ClientMessages i18n = GWT.create(ClientMessages.class); DataSourceTextField path = new DataSourceTextField(FIELD_PATH); path.setPrimaryKey(true); path.setHidden(true); DataSourceTextField parent = new DataSourceTextField(FIELD_PARENT); parent.setForeignKey(FIELD_PATH); parent.setHidden(true); DataSourceTextField name = new DataSourceTextField(FIELD_NAME); DataSourceEnumField state = new DataSourceEnumField(FIELD_STATE); states.put(FolderState.IMPORTED, i18n.ImportBatchDataSource_State_LOADED()); states.put(FolderState.NEW, ""); states.put(FolderState.EMPTY, ""); state.setValueMap(states); setFields(path, parent, name, state); setDataURL(RestConfig.URL_IMPORT_FOLDER); setRequestProperties(RestConfig.createRestRequest(getDataFormat())); }
Example 19
Source File: DeletedDocsDS.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public DeletedDocsDS(Long userId, Long folderId) { setTitleField("filename"); setRecordXPath("/list/document"); DataSourceTextField id = new DataSourceTextField("id"); id.setPrimaryKey(true); id.setHidden(true); id.setRequired(true); DataSourceImageField icon = new DataSourceImageField("icon"); DataSourceTextField customId = new DataSourceTextField("customId"); DataSourceTextField version = new DataSourceTextField("version"); DataSourceTextField fileVersion = new DataSourceTextField("fileVersion"); DataSourceTextField userIdItem = new DataSourceTextField("userId"); DataSourceTextField username = new DataSourceTextField("username"); DataSourceFloatField size = new DataSourceFloatField("size"); DataSourceDateTimeField lastModified = new DataSourceDateTimeField("lastModified"); DataSourceTextField filename = new DataSourceTextField("filename"); DataSourceTextField digest = new DataSourceTextField("digest"); DataSourceIntegerField immutable = new DataSourceIntegerField("immutable"); DataSourceTextField fid = new DataSourceTextField("folderId"); DataSourceTextField type = new DataSourceTextField("type"); DataSourceImageField locked = new DataSourceImageField("locked"); DataSourceImageField deleteUserId = new DataSourceImageField("deleteUserId"); DataSourceTextField deleteUser = new DataSourceTextField("deleteUser"); setFields(id, userIdItem, username, size, version, fileVersion, lastModified, customId, icon, filename, digest, immutable, fid, deleteUserId, deleteUser, type, locked); setClientOnly(true); String url = "data/deleteddocs.xml?1=1"; if (userId != null) url += "&userId=" + userId; if (folderId != null) url += "&folderId=" + folderId; setDataURL(url); }
Example 20
Source File: UserDataSource.java From proarc with GNU General Public License v3.0 | 4 votes |
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())); }