本文整理汇总了Java中com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY属性的典型用法代码示例。如果您正苦于以下问题:Java ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY属性的具体用法?Java ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY怎么用?Java ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor
的用法示例。
在下文中一共展示了ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createInput
@Override
public void createInput(Composite parent, final IParameter param,
final Map<String, Object> params) {
super.createInput(parent, param, params);
rdprm = (PResourceDescriptor) param;
if (getRD().getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_QUERY) {
iinput = new ListInput(this, param, params);
iinput.createControl(parent, SWT.SINGLE);
} else if (getRD().getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_QUERY_RADIO) {
iinput = new TableInput(this, param, params);
iinput.createControl(parent, SWT.SINGLE | SWT.RADIO);
} else if (getRD().getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY) {
iinput = new TableInput(this, param, params);
iinput.createControl(parent, SWT.MULTI);
} else if (getRD().getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY_CHECKBOX) {
iinput = new TableInput(this, param, params);
iinput.createControl(parent, SWT.MULTI | SWT.CHECK);
} else
return;
setMandatory(param, iinput.getControl());
}
示例2: createControl
public void createControl(Composite parent, int style) {
createTable(parent, style);
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalIndent = 8;
gd.minimumHeight = 100;
table.setLayoutData(gd);
fillControl();
SelectionAdapter listener = new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
TableItem[] ti = table.getSelection();
if (dataInput.getRD().getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY_CHECKBOX)
doUpdateModel(getCheckedElements(table));
else if (dataInput.getRD().getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY)
doUpdateModel(ti);
else
dataInput.updateModel(ti.length > 0 ? ti[0].getData()
: null);
}
};
table.addSelectionListener(listener);
updateInput();
listener.widgetSelected(null);
}
示例3: isICQuery
public static boolean isICQuery(ResourceDescriptor ic) {
return ic.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_QUERY || ic.getControlType() == ResourceDescriptor.IC_TYPE_SINGLE_SELECT_QUERY_RADIO
|| ic.getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY || ic.getControlType() == ResourceDescriptor.IC_TYPE_MULTI_SELECT_QUERY_CHECKBOX;
}