com.smartgwt.client.data.fields.DataSourceBooleanField Java Examples

The following examples show how to use com.smartgwt.client.data.fields.DataSourceBooleanField. 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: ReportsDS.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
public ReportsDS() {
	setTitleField("name");
	setRecordXPath("/list/report");
	DataSourceTextField id = new DataSourceTextField("id");
	id.setPrimaryKey(true);
	DataSourceTextField name = new DataSourceTextField("name");
	DataSourceTextField outputFolderId = new DataSourceTextField("outputFolderId");
	DataSourceTextField outputDocId = new DataSourceTextField("outputDocId");

	DataSourceImageField runningIcon = new DataSourceImageField("runningIcon");
	DataSourceIntegerField status = new DataSourceIntegerField("status");

	DataSourceImageField enabledIcon = new DataSourceImageField("enabledIcon");
	DataSourceBooleanField enabled = new DataSourceBooleanField("eenabled");

	DataSourceDateTimeField lastRun = new DataSourceDateTimeField("lastRun");
	DataSourceDateTimeField lastModified = new DataSourceDateTimeField("lastModified");

	setFields(id, name, enabled, enabledIcon, runningIcon, status, lastRun, outputFolderId, outputDocId,
			lastModified);
	setDataURL("data/reports.xml");
	setClientOnly(true);
}
 
Example #2
Source File: DocumentHistoryDS.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
private void init(String url) {
	setRecordXPath("/list/history");
	DataSourceTextField user = new DataSourceTextField("user");
	DataSourceDateTimeField date = new DataSourceDateTimeField("date");
	DataSourceTextField event = new DataSourceTextField("event");
	DataSourceTextField comment = new DataSourceTextField("comment");
	DataSourceTextField reason = new DataSourceTextField("reason");
	DataSourceTextField filename = new DataSourceTextField("filename");
	DataSourceTextField version = new DataSourceTextField("version");
	DataSourceImageField icon = new DataSourceImageField("icon");
	DataSourceBooleanField _new = new DataSourceBooleanField("new");
	DataSourceTextField documentId = new DataSourceTextField("docId");
	DataSourceTextField folderId = new DataSourceTextField("folderId");
	DataSourceTextField userId = new DataSourceTextField("userId");
	DataSourceTextField path = new DataSourceTextField("path");
	DataSourceTextField sid = new DataSourceTextField("sid");

	setFields(user, filename, date, event, comment, reason, version, icon, _new, documentId, folderId, userId, path, sid);
	setClientOnly(true);

	setDataURL(url);
}
 
Example #3
Source File: FormatConvertersDS.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
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 #4
Source File: FormatConvertersDS.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
public FormatConvertersDS(String inExt, String outExt) {
	setTitleField("converters");
	setRecordXPath("/list/converter");

	DataSourceTextField id = new DataSourceTextField("id", I18N.message("id"));
	id.setPrimaryKey(true);
	DataSourceTextField in = new DataSourceTextField("in", I18N.message("in"));
	DataSourceTextField out = new DataSourceTextField("out", I18N.message("out"));
	DataSourceTextField converter = new DataSourceTextField("converter", I18N.message("converter"));
	DataSourceBooleanField enabled = new DataSourceBooleanField("eenabled", I18N.message("enabled"));
	DataSourceTextField label = new DataSourceTextField("label", I18N.message("converter"));

	setFields(id, in, out, converter, label, enabled);
	setDataURL("data/formatconverters.xml?1=1" + (inExt != null ? "&in=" + inExt : "")
			+ (outExt != null ? "&out=" + outExt : ""));
	setClientOnly(true);
}
 
Example #5
Source File: TenantsDS.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
public TenantsDS() {
	setTitleField("label");
	setRecordXPath("/list/tenant");

	DataSourceTextField id = new DataSourceTextField("id");
	id.setPrimaryKey(true);

	DataSourceTextField name = new DataSourceTextField("name");
	DataSourceTextField displayName = new DataSourceTextField("displayName");
	DataSourceImageField enabledIcon = new DataSourceImageField("enabledIcon");
	DataSourceBooleanField enabled = new DataSourceBooleanField("eenabled");
	DataSourceTextField email = new DataSourceTextField("email");
	DataSourceTextField city = new DataSourceTextField("city");
	DataSourceTextField country = new DataSourceTextField("country");
	DataSourceTextField telephone = new DataSourceTextField("telephone");
	DataSourceTextField postalCode = new DataSourceTextField("postalCode");
	DataSourceTextField state = new DataSourceTextField("state");
	DataSourceTextField address = new DataSourceTextField("address");
	DataSourceDateTimeField expire = new DataSourceDateTimeField("expire");

	setFields(id, name, enabledIcon, enabled, expire, displayName, email, city, country, telephone, postalCode,
			state, address);
	setDataURL("data/tenants.xml");
	setClientOnly(true);
}
 
Example #6
Source File: UsersDS.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
public UsersDS(String groupIdOrName, boolean required) {
	setTitleField("label");
	setRecordXPath("/list/user");

	DataSourceTextField id = new DataSourceTextField("id");
	id.setPrimaryKey(true);

	DataSourceTextField username = new DataSourceTextField("username");
	DataSourceTextField label = new DataSourceTextField("label");
	DataSourceBooleanField guest = new DataSourceBooleanField("guest");
	guest.setHidden(true);
	DataSourceImageField enabled = new DataSourceImageField("eenabled");
	DataSourceTextField name = new DataSourceTextField("name");
	DataSourceTextField firstName = new DataSourceTextField("firstName");
	DataSourceTextField email = new DataSourceTextField("email");
	DataSourceTextField phone = new DataSourceTextField("phone");
	DataSourceTextField cell = new DataSourceTextField("cell");
	DataSourceTextField usergroup = new DataSourceTextField("usergroup");
	DataSourceTextField groups = new DataSourceTextField("groups");

	setFields(id, username, label, enabled, name, firstName, email, phone, cell,groups, usergroup, guest);
	setDataURL("data/users.xml?1=1" + (groupIdOrName != null ? "&groupId=" + groupIdOrName : "") + "&required="
			+ required);
	setClientOnly(true);
}
 
Example #7
Source File: WorkflowTriggersDS.java    From document-management-software with GNU Lesser General Public License v3.0 6 votes vote down vote up
public WorkflowTriggersDS(String folderId) {
	setTitleField("workflow");
	setRecordXPath("/list/workflowtrigger");
	DataSourceTextField id = new DataSourceTextField("id");
	id.setPrimaryKey(true);
	id.setHidden(true);
	id.setRequired(true);
	DataSourceTextField workflowId = new DataSourceTextField("workflowId");
	workflowId.setHidden(true);
	DataSourceTextField templateId = new DataSourceTextField("templateId");
	templateId.setHidden(true);
	DataSourceTextField workflow = new DataSourceTextField("workflow", I18N.message("workflow"));
	DataSourceTextField template = new DataSourceTextField("template", I18N.message("template"));
	DataSourceBooleanField checkin = new DataSourceBooleanField("triggerAtCheckin",
			I18N.message("triggeratcheckin"));
	setFields(id, workflowId, templateId, workflow, template, checkin);
	setDataURL("data/workflowtriggers.xml?folderId=" + folderId);
	setClientOnly(false);
}
 
Example #8
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 #9
Source File: TasksDS.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public TasksDS() {
	setTitleField("name");
	setRecordXPath("/list/task");
	DataSourceTextField name = new DataSourceTextField("name");
	name.setPrimaryKey(true);
	name.setRequired(true);

	DataSourceImageField enabledIcon = new DataSourceImageField("enabledIcon");
	DataSourceBooleanField enabled = new DataSourceBooleanField("eenabled");
	DataSourceIntegerField status = new DataSourceIntegerField("status");
	DataSourceTextField scheduling = new DataSourceTextField("scheduling");
	DataSourceIntegerField progress = new DataSourceIntegerField("progress");
	DataSourceIntegerField progressbar = new DataSourceIntegerField("progressbar");
	DataSourceIntegerField completion = new DataSourceIntegerField("completion");
	DataSourceIntegerField size = new DataSourceIntegerField("size");
	DataSourceDateTimeField lastStart = new DataSourceDateTimeField("lastStart");
	lastStart.setRequired(false);
	DataSourceDateTimeField nextStart = new DataSourceDateTimeField("nextStart");
	nextStart.setRequired(false);
	DataSourceBooleanField indeterminate = new DataSourceBooleanField("indeterminate");
	DataSourceImageField runningIcon = new DataSourceImageField("runningIcon");

	setFields(name, enabledIcon, enabled, status, scheduling, progress, progressbar, completion, size,
			lastStart, nextStart, indeterminate, runningIcon);
	setClientOnly(false);
	setDataURL("data/tasks.xml?locale=" + I18N.getLocale());
}
 
Example #10
Source File: TicketsDS.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public TicketsDS(Integer max) {
	setTitleField("ticketId");
	setRecordXPath("/list/ticket");

	DataSourceTextField id = new DataSourceTextField("id");
	id.setPrimaryKey(true);
	id.setHidden(true);
	id.setRequired(true);
	DataSourceTextField ticketId = new DataSourceTextField("ticketId");
	DataSourceTextField docId = new DataSourceTextField("docId");
	DataSourceTextField folderId = new DataSourceTextField("folderId");
	DataSourceDateTimeField creation = new DataSourceDateTimeField("creation");
	DataSourceDateTimeField expired = new DataSourceDateTimeField("expired");
	DataSourceIntegerField count = new DataSourceIntegerField("count");
	DataSourceIntegerField maxCount = new DataSourceIntegerField("maxCount");
	DataSourceTextField suffix = new DataSourceTextField("maxCount");
	DataSourceBooleanField valid = new DataSourceBooleanField("valid");
	DataSourceTextField fileName = new DataSourceTextField("fileName");
	DataSourceImageField icon = new DataSourceImageField("icon");
	DataSourceImageField enabled = new DataSourceImageField("eenabled");

	setFields(id, ticketId, docId, creation, expired, count, maxCount, suffix, enabled, valid, icon, fileName,
			folderId);
	setClientOnly(true);

	String url = "data/tickets.xml?1=1";
	if (max != null)
		url += "&max=" + max;
	setDataURL(url);
}
 
Example #11
Source File: AspectsDS.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public AspectsDS() {
	setTitleField("entity");
	setRecordXPath("/list/aspect");
	DataSourceTextField id = new DataSourceTextField("id");
	id.setPrimaryKey(true);
	
	DataSourceBooleanField _default = new DataSourceBooleanField("default");
	DataSourceBooleanField bulkload = new DataSourceBooleanField("bulkload");
	DataSourceBooleanField devel = new DataSourceBooleanField("devel");
	DataSourceBooleanField demo = new DataSourceBooleanField("demo");

	setFields(id, _default, bulkload, devel, demo);
	setClientOnly(true);
	setDataURL("data/aspects.xml");
}
 
Example #12
Source File: ComparatorsDS.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public ComparatorsDS(String inExt) {
	setTitleField("comparators");
	setRecordXPath("/list/comparator");

	DataSourceTextField id = new DataSourceTextField("id", I18N.message("id"));
	id.setPrimaryKey(true);
	DataSourceTextField in = new DataSourceTextField("in", I18N.message("in"));
	DataSourceTextField converter = new DataSourceTextField("comparator", I18N.message("comparator"));
	DataSourceBooleanField enabled = new DataSourceBooleanField("eenabled", I18N.message("enabled"));
	DataSourceTextField label = new DataSourceTextField("label", I18N.message("comparator"));

	setFields(id, in, converter, label, enabled);
	setDataURL("data/comparators.xml?1=1" + (inExt != null ? "&in=" + inExt : ""));
	setClientOnly(true);
}
 
Example #13
Source File: ComparatorsDS.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public void setComparator(String comparator) {
	setTitleField("comparators");
	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"));
	DataSourceBooleanField selected = new DataSourceBooleanField("selected", I18N.message("selected"));
	DataSourceBooleanField enabled = new DataSourceBooleanField("eenabled", I18N.message("enabled"));

	setFields(id, in, selected, enabled);
	setDataURL("data/comparators.xml?comparator=" + comparator);
	setClientOnly(true);
}
 
Example #14
Source File: RightsDS.java    From document-management-software with GNU Lesser General Public License v3.0 5 votes vote down vote up
public RightsDS(long id, boolean folder) {
	setTitleField("entity");
	setRecordXPath("/list/right");
	DataSourceTextField entity = new DataSourceTextField("entity");
	DataSourceTextField entityId = new DataSourceTextField("entityId");
	entityId.setPrimaryKey(true);
	DataSourceBooleanField read = new DataSourceBooleanField("read");
	DataSourceBooleanField print = new DataSourceBooleanField("print");
	DataSourceBooleanField write = new DataSourceBooleanField("write");
	DataSourceBooleanField delete = new DataSourceBooleanField("delete");
	DataSourceBooleanField add = new DataSourceBooleanField("add");
	DataSourceBooleanField workflow = new DataSourceBooleanField("workflow");
	DataSourceBooleanField sign = new DataSourceBooleanField("sign");
	DataSourceBooleanField _import = new DataSourceBooleanField("import");
	DataSourceBooleanField export = new DataSourceBooleanField("export");
	DataSourceBooleanField immutable = new DataSourceBooleanField("immutable");
	DataSourceBooleanField rename = new DataSourceBooleanField("rename");
	DataSourceBooleanField security = new DataSourceBooleanField("security");
	DataSourceBooleanField archive = new DataSourceBooleanField("archive");
	DataSourceBooleanField download = new DataSourceBooleanField("download");
	DataSourceBooleanField calendar = new DataSourceBooleanField("calendar");
	DataSourceBooleanField subscription = new DataSourceBooleanField("subscription");
	DataSourceBooleanField password = new DataSourceBooleanField("password");
	DataSourceBooleanField move = new DataSourceBooleanField("move");
	DataSourceBooleanField email = new DataSourceBooleanField("email");
	DataSourceBooleanField automation = new DataSourceBooleanField("automation");
	DataSourceTextField type = new DataSourceTextField("type");

	setFields(entityId, entity, read, print, write, delete, move, add, workflow, sign, _import, export, rename,
			immutable, security, password, archive, type, download, email, calendar, subscription, automation);
	setClientOnly(true);
	setDataURL("data/rights.xml?" + (folder ? "folderId" : "menuId") + "=" + id + "&locale=" + I18N.getLocale());
}
 
Example #15
Source File: WorkflowProfileDataSource.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
public WorkflowProfileDataSource() {
    setID(ID);
    setDataURL(RestConfig.URL_WORKFLOW_PROFILE);

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

    DataSourceTextField label = new DataSourceTextField(FIELD_LABEL);
    DataSourceTextField hint = new DataSourceTextField(FIELD_HINT);
    DataSourceBooleanField disabled = new DataSourceBooleanField(FIELD_DISABLED);

    setFields(fieldId, label, hint, disabled);
    setRequestProperties(RestConfig.createRestRequest(getDataFormat()));
}
 
Example #16
Source File: MetaModelDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public MetaModelDataSource() {
    setID(ID);

    setDataURL(RestConfig.URL_DIGOBJECT_METAMODEL);

    DataSourceTextField pid = new DataSourceTextField(FIELD_PID);
    pid.setPrimaryKey(true);

    DataSourceTextField displayName = new DataSourceTextField(FIELD_DISPLAY_NAME);

    DataSourceBooleanField isRoot = new DataSourceBooleanField(FIELD_IS_ROOT);

    DataSourceBooleanField isLeaf = new DataSourceBooleanField(FIELD_IS_LEAF);

    DataSourceTextField editor = new DataSourceTextField(FIELD_EDITOR);

    DataSourceTextField metadataFormat = new DataSourceTextField(FIELD_METADATA_FORMAT);

    DataSourceField dataStreamEditors = new DataSourceField(FIELD_DATASTREAM_EDITORS, FieldType.ANY);
    dataStreamEditors.setCanEdit(Boolean.FALSE);
    dataStreamEditors.setHidden(Boolean.TRUE);

    setFields(pid, displayName, isRoot, isLeaf, metadataFormat, editor, dataStreamEditors);

    setRequestProperties(RestConfig.createRestRequest(getDataFormat()));
}