本文整理汇总了Java中org.kuali.rice.krad.uif.widget.QuickFinder类的典型用法代码示例。如果您正苦于以下问题:Java QuickFinder类的具体用法?Java QuickFinder怎么用?Java QuickFinder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
QuickFinder类属于org.kuali.rice.krad.uif.widget包,在下文中一共展示了QuickFinder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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");
}
}
}
}
示例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());
}
}
示例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;
}
示例4: getQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
@BeanTagAttribute(type = BeanTagAttribute.AttributeType.DIRECTORBYTYPE)
public QuickFinder getQuickfinder() {
return this.quickfinder;
}
示例5: setQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setQuickfinder(QuickFinder quickfinder) {
this.quickfinder = quickfinder;
}
示例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());
}
}
示例7: getCollectionLookup
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
@BeanTagAttribute(type = BeanTagAttribute.AttributeType.BYTYPE)
public QuickFinder getCollectionLookup() {
return collectionLookup;
}
示例8: setCollectionLookup
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void setCollectionLookup(QuickFinder collectionLookup) {
this.collectionLookup = collectionLookup;
}
示例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++;
}
示例10: getRelinkQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public QuickFinder getRelinkQuickfinder() {
return relinkQuickfinder;
}
示例11: setRelinkQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public void setRelinkQuickfinder(QuickFinder relinkQuickfinder) {
this.relinkQuickfinder = relinkQuickfinder;
}
示例12: getAccountNumberQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public QuickFinder getAccountNumberQuickfinder() {
return accountNumberQuickfinder;
}
示例13: setAccountNumberQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public void setAccountNumberQuickfinder(QuickFinder accountNumberQuickfinder) {
this.accountNumberQuickfinder = accountNumberQuickfinder;
}
示例14: getSubAccountNumberQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public QuickFinder getSubAccountNumberQuickfinder() {
return subAccountNumberQuickfinder;
}
示例15: setSubAccountNumberQuickfinder
import org.kuali.rice.krad.uif.widget.QuickFinder; //导入依赖的package包/类
public void setSubAccountNumberQuickfinder(
QuickFinder subAccountNumberQuickfinder) {
this.subAccountNumberQuickfinder = subAccountNumberQuickfinder;
}