本文整理汇总了Java中org.kuali.rice.krad.uif.widget.QuickFinder类的典型用法代码示例。如果您正苦于以下问题:Java QuickFinder类的具体用法?Java QuickFinder怎么用?Java QuickFinder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QuickFinder类属于org.kuali.rice.krad.uif.widget包,在下文中一共展示了QuickFinder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: buildGroupQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
protected void buildGroupQuickfinder(Object model, InputField field) {
QuickFinder quickFinder = field.getQuickfinder();
// don't build quickfinder if explicitly turned off
if (!field.isEnableAutoQuickfinder()) {
return;
}
if (quickFinder == null) {
quickFinder = ComponentFactory.getQuickFinder();
field.setQuickfinder(quickFinder);
}
if (field.getQuickfinder() != null) {
if (StringUtils.isBlank(field.getQuickfinder().getDataObjectClassName())) {
field.getQuickfinder().setDataObjectClassName("org.kuali.rice.kim.impl.group.GroupBo");
}
if (field.getQuickfinder().getFieldConversions().isEmpty()) {
if (StringUtils.isNotBlank(groupIdPropertyName)) {
field.getQuickfinder().getFieldConversions().put("id", groupIdPropertyName);
}
field.getQuickfinder().getFieldConversions().put("name", field.getPropertyName());
if (StringUtils.isNotBlank(namespaceCodePropertyName)) {
field.getQuickfinder().getFieldConversions().put("namespaceCode", namespaceCodePropertyName);
}
}
if (field.getQuickfinder().getLookupParameters().isEmpty()) {
if (StringUtils.isNotBlank(namespaceCodePropertyName)) {
field.getQuickfinder().getLookupParameters().put(namespaceCodePropertyName, "namespaceCode");
}
}
}
}
开发者ID:kuali,项目名称:kc-rice,代码行数:38,代码来源:GroupControl.java
示例2: buildUserQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* Configures the field's quickfinder for a user lookup
*
* @param model object containing the view's data
* @param field field instance the quickfinder should be associated with
*/
protected void buildUserQuickfinder(Object model, InputField field) {
QuickFinder quickFinder = field.getQuickfinder();
// don't build quickfinder if explicitly turned off
if (!field.isEnableAutoQuickfinder()) {
return;
}
if (quickFinder == null) {
quickFinder = ComponentFactory.getQuickFinder();
field.setQuickfinder(quickFinder);
}
if (StringUtils.isBlank(quickFinder.getDataObjectClassName())) {
quickFinder.setDataObjectClassName(Person.class.getName());
}
if (quickFinder.getFieldConversions().isEmpty()) {
quickFinder.getFieldConversions().put(KimConstants.AttributeConstants.PRINCIPAL_ID,
principalIdPropertyName);
if (StringUtils.isNotBlank(personNamePropertyName)) {
quickFinder.getFieldConversions().put(KimConstants.AttributeConstants.NAME, personNamePropertyName);
} else {
quickFinder.getFieldConversions().put(KimConstants.AttributeConstants.NAME,
personObjectPropertyName + "." + KimConstants.AttributeConstants.NAME);
}
quickFinder.getFieldConversions().put(KimConstants.AttributeConstants.PRINCIPAL_NAME,
field.getPropertyName());
}
}
开发者ID:kuali,项目名称:kc-rice,代码行数:39,代码来源:UserControl.java
示例3: createComponent
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
private <T extends Component> T createComponent(T prototype, View view,
Object model, CollectionGroup collectionGroup,
BindingInfo bindingInfo, String idSuffix, Object currentLine,
int lineIndex) {
T rv = ComponentUtils.copy(prototype, idSuffix);
if (rv instanceof Group)
((Group) rv).setFieldBindByNamePrefix(bindingInfo
.getBindByNamePrefix());
if (rv instanceof QuickFinder) {
QuickFinder qf = (QuickFinder) rv;
qf.updateFieldConversions(bindingInfo);
qf.updateLookupParameters(bindingInfo);
qf.updateReferencesToRefresh(bindingInfo);
}
ComponentUtils.updateContextForLine(rv, currentLine, lineIndex,
idSuffix);
view.getViewHelperService().spawnSubLifecyle(view, model, rv,
collectionGroup, null, UifConstants.ViewPhases.INITIALIZE);
synchronized (components) {
components.add(rv);
}
return rv;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:30,代码来源:OleInvoiceAccountingLinesLayout.java
示例4: getQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
@BeanTagAttribute(type = BeanTagAttribute.AttributeType.DIRECTORBYTYPE)
public QuickFinder getQuickfinder() {
return this.quickfinder;
}
开发者ID:kuali,项目名称:kc-rice,代码行数:9,代码来源:InputFieldBase.java
示例5: setQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setQuickfinder(QuickFinder quickfinder) {
this.quickfinder = quickfinder;
}
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:InputFieldBase.java
示例6: performFinalize
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* The following actions are performed in this phase:
*
* <ul>
* <li>Add data attributes for any configured event handlers</li>
* </ul>
*
* {@inheritDoc}
*/
@Override
public void performFinalize(Object model, LifecycleElement parent) {
super.performFinalize(model, parent);
if (StringUtils.isNotBlank(this.onDialogResponseScript)) {
addDataAttribute(UifConstants.DataAttributes.DIALOG_RESPONSE_HANDLER, this.onDialogResponseScript);
}
String script = "jQuery.unblockUI();";
if (StringUtils.isNotBlank(this.onShowDialogScript)) {
this.onShowDialogScript = script + this.onShowDialogScript;
} else {
this.onShowDialogScript = script;
}
addDataAttribute(UifConstants.DataAttributes.DIALOG_SHOW_HANDLER, this.onShowDialogScript);
if (StringUtils.isNotBlank(this.onHideDialogScript)) {
addDataAttribute(UifConstants.DataAttributes.DIALOG_HIDE_HANDLER, this.onHideDialogScript);
}
if (StringUtils.isBlank(this.onHiddenDialogScript)) {
this.onHiddenDialogScript = "";
}
if (destroyDialogOnHidden) {
this.onHiddenDialogScript += "destroyDialog('" + getId() + "');";
}
if (StringUtils.isNotBlank(this.onHiddenDialogScript)) {
addDataAttribute(UifConstants.DataAttributes.DIALOG_HIDDEN_HANDLER, this.onHiddenDialogScript);
}
// Dialogs do not have a visual "parent" on the page so remove this data attribute
this.getDataAttributes().remove(UifConstants.DataAttributes.PARENT);
List<QuickFinder> quickFinders = ViewLifecycleUtils.getElementsOfTypeDeep(getItems(), QuickFinder.class);
for (QuickFinder quickFinder : quickFinders) {
Action quickFinderAction = quickFinder.getQuickfinderAction();
quickFinderAction.addActionParameter(UifParameters.DIALOG_ID, getId());
}
}
开发者ID:kuali,项目名称:kc-rice,代码行数:51,代码来源:DialogGroup.java
示例7: getCollectionLookup
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
@BeanTagAttribute(type = BeanTagAttribute.AttributeType.BYTYPE)
public QuickFinder getCollectionLookup() {
return collectionLookup;
}
开发者ID:kuali,项目名称:kc-rice,代码行数:9,代码来源:CollectionGroupBase.java
示例8: setCollectionLookup
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setCollectionLookup(QuickFinder collectionLookup) {
this.collectionLookup = collectionLookup;
}
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:CollectionGroupBase.java
示例9: buildLine
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
@Override
public void buildLine(View view, Object model,
CollectionGroup collectionGroup, List<Field> lineFields,
List<FieldGroup> subCollectionFields, String bindingPath,
List<Action> actions, String idSuffix, Object currentLine,
int lineIndex) {
OleInvoiceItem item = (OleInvoiceItem) currentLine;
if (!"Qty".equals(item.getItemType().getItemTypeDescription())) {
filteredLines++;
return;
}
if (currentPage > 0
&& (lineIndex < (currentPage - 1) * pageSize || lineIndex >= currentPage
* pageSize))
return;
OLEInvoiceForm form = (OLEInvoiceForm) model;
BindingInfo bi = new BindingInfo();
bi.setBindByNamePrefix(bindingPath
.startsWith(UifPropertyPaths.NEW_COLLECTION_LINES) ? bindingPath
: view.getDefaultBindingObjectPath() + '.' + bindingPath);
OleInvoiceItemsLine line = new OleInvoiceItemsLine();
line.setLineNumber(lineIndex);
line.setLineId(collectionGroup.getBaseId() + idSuffix);
line.setBindPath(bi.getBindByNamePrefix());
line.setItem(item);
line.setRowDetails(getRowDetails(form, idSuffix, lineIndex,
collectionGroup, view, bindingPath, item));
line.setActions(actions);
WorkflowDocument workflowDocument = form.getDocument()
.getDocumentHeader().getWorkflowDocument();
if ((workflowDocument.isInitiated() || workflowDocument.isSaved() || workflowDocument
.isEnroute())
&& (item.getItemTitleId() == null || item
.getTempPurchaseOrderIdentifier() == null)) {
QuickFinder relinkQuickfinder = ComponentUtils.copy(
this.relinkQuickfinder, idSuffix);
relinkQuickfinder.updateFieldConversions(bi);
relinkQuickfinder.updateLookupParameters(bi);
relinkQuickfinder.updateReferencesToRefresh(bi);
ComponentUtils.updateContextForLine(relinkQuickfinder, currentLine,
lineIndex, idSuffix);
view.getViewHelperService().spawnSubLifecyle(view, model,
relinkQuickfinder, collectionGroup, null,
UifConstants.ViewPhases.INITIALIZE);
synchronized (components) {
components.add(relinkQuickfinder);
}
line.setRelinkQuickfinder(relinkQuickfinder);
}
if (actionRefreshId != null)
for (Action action : actions) {
action.setRefreshId(actionRefreshId);
if (LOG.isDebugEnabled())
LOG.debug("Action " + action.getId() + " refresh ID = "
+ action.getRefreshId() + ", jump to "
+ action.getJumpToIdAfterSubmit());
}
synchronized (components) {
components.addAll(actions);
}
synchronized (itemLines) {
itemLines.add(line);
}
displayedLines++;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:77,代码来源:OleInvoiceItemsLayout.java
示例10: getRelinkQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public QuickFinder getRelinkQuickfinder() {
return relinkQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:4,代码来源:OleInvoiceItemsLayout.java
示例11: setRelinkQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public void setRelinkQuickfinder(QuickFinder relinkQuickfinder) {
this.relinkQuickfinder = relinkQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:4,代码来源:OleInvoiceItemsLayout.java
示例12: getAccountNumberQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public QuickFinder getAccountNumberQuickfinder() {
return accountNumberQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:4,代码来源:OleInvoiceAccountingLine.java
示例13: setAccountNumberQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public void setAccountNumberQuickfinder(QuickFinder accountNumberQuickfinder) {
this.accountNumberQuickfinder = accountNumberQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:4,代码来源:OleInvoiceAccountingLine.java
示例14: getSubAccountNumberQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public QuickFinder getSubAccountNumberQuickfinder() {
return subAccountNumberQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:4,代码来源:OleInvoiceAccountingLine.java
示例15: setSubAccountNumberQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public void setSubAccountNumberQuickfinder(
QuickFinder subAccountNumberQuickfinder) {
this.subAccountNumberQuickfinder = subAccountNumberQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:5,代码来源:OleInvoiceAccountingLine.java
示例16: getFinancialObjectCodeQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public QuickFinder getFinancialObjectCodeQuickfinder() {
return financialObjectCodeQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:4,代码来源:OleInvoiceAccountingLine.java
示例17: setFinancialObjectCodeQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public void setFinancialObjectCodeQuickfinder(
QuickFinder financialObjectCodeQuickfinder) {
this.financialObjectCodeQuickfinder = financialObjectCodeQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:5,代码来源:OleInvoiceAccountingLine.java
示例18: getFinancialSubObjectCodeQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public QuickFinder getFinancialSubObjectCodeQuickfinder() {
return financialSubObjectCodeQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:4,代码来源:OleInvoiceAccountingLine.java
示例19: setFinancialSubObjectCodeQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public void setFinancialSubObjectCodeQuickfinder(
QuickFinder financialSubObjectCodeQuickfinder) {
this.financialSubObjectCodeQuickfinder = financialSubObjectCodeQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:5,代码来源:OleInvoiceAccountingLine.java
示例20: getProjectCodeQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public QuickFinder getProjectCodeQuickfinder() {
return projectCodeQuickfinder;
}
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:4,代码来源:OleInvoiceAccountingLine.java
注:本文中的org.kuali.rice.krad.uif.widget.QuickFinder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论