当前位置: 首页>>代码示例>>Java>>正文


Java SimpleViewParameters类代码示例

本文整理汇总了Java中uk.org.ponder.rsf.viewstate.SimpleViewParameters的典型用法代码示例。如果您正苦于以下问题:Java SimpleViewParameters类的具体用法?Java SimpleViewParameters怎么用?Java SimpleViewParameters使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SimpleViewParameters类属于uk.org.ponder.rsf.viewstate包,在下文中一共展示了SimpleViewParameters类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: interceptActionResult

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
public void interceptActionResult(ARIResult result, ViewParameters incoming, Object actionReturn) {
    // handles the navigation cases and passing along data from view to view
    EvalViewParameters evp = (EvalViewParameters) incoming;
    Long evalId = evp.evaluationId;
    if ("evalSettings".equals(actionReturn)) {
        result.resultingView = new EvalViewParameters(EvaluationSettingsProducer.VIEW_ID, evalId);
    } else if ("evalAssign".equals(actionReturn)) {
        result.resultingView = new EvalViewParameters(EvaluationAssignProducer.VIEW_ID, evalId);
    } else if ("evalConfirm".equals(actionReturn)) {
        result.resultingView = new EvalViewParameters(EvaluationAssignConfirmProducer.VIEW_ID, evalId);
    } else if ("controlEvals".equals(actionReturn)) {
        result.resultingView = new SimpleViewParameters(ControlEvaluationsProducer.VIEW_ID);
    } else if ("adminSearch".equals(actionReturn)) {
  	  result.resultingView = new AdminSearchViewParameters(AdministrateSearchProducer.VIEW_ID, evp.adminSearchString, evp.adminSearchPage);
    }
}
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:17,代码来源:EvaluationSettingsProducer.java

示例2: interceptActionResult

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
public void interceptActionResult(ARIResult result, ViewParameters incoming, Object actionReturn) {
   // handles the navigation cases and passing along data from view to view
   EmailViewParameters evp = (EmailViewParameters) incoming;
   EmailViewParameters outgoing = (EmailViewParameters) evp.copyBase(); // inherit all the incoming data
   if ("success".equals(actionReturn) 
         || "successAssign".equals(actionReturn) 
         || "successReset".equals(actionReturn) ) {
      outgoing.viewID = PreviewEmailProducer.VIEW_ID;
      result.resultingView = outgoing;
   } else if ("failure".equals(actionReturn)) {
      // failure just comes back here
      result.resultingView = outgoing;
   } else {
      // default
      result.resultingView = new SimpleViewParameters(ControlEmailTemplatesProducer.VIEW_ID);
   }
}
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:18,代码来源:ModifyEmailProducer.java

示例3: interceptActionResult

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
public void interceptActionResult(ARIResult result, ViewParameters incoming, Object actionReturn) {
    ItemViewParameters ivp = (ItemViewParameters) incoming;
    if (ivp.templateId == null) {
        // go to the Items view if we are not working with a template currently
        result.resultingView = new SimpleViewParameters(ControlItemsProducer.VIEW_ID);
    }else{        
        if(actionReturn != null){
            try{
                Long itemId = Long.parseLong(actionReturn.toString());
                result.resultingView = new TemplateViewParameters(ModifyTemplateItemsProducer.VIEW_ID, ivp.templateId, itemId);
            }catch(NumberFormatException e){
                if ("success".equals(actionReturn.toString())){
                    result.resultingView = new TemplateViewParameters(ModifyTemplateItemsProducer.VIEW_ID, ivp.templateId);
                }else{
                    //This is an unexpected return string, possibly an error. So return an error view:
                    result.resultingView = new SimpleViewParameters(MessagesProducer.VIEW_ID);
                }
            }
        }
    }
}
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:22,代码来源:ModifyItemProducer.java

示例4: reportNavigationCases

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
@SuppressWarnings({ "unchecked", "rawtypes" })
public List reportNavigationCases() {
    List l = new ArrayList();
    l.add(new NavigationCase("importing",
            new SimpleViewParameters(AdministrateProducer.VIEW_ID)));
    // TODO intercepter to configure display of error message?
    l.add(new NavigationCase("no-reference", new SimpleViewParameters(
            ImportErrorProducer.VIEW_ID)));
    l.add(new NavigationCase("permission-exception", new SimpleViewParameters(
            ImportErrorProducer.VIEW_ID)));
    l.add(new NavigationCase("idunused-exception", new SimpleViewParameters(
            ImportErrorProducer.VIEW_ID)));
    l.add(new NavigationCase("type-exception", new SimpleViewParameters(
            ImportErrorProducer.VIEW_ID)));
    l.add(new NavigationCase("exception", new SimpleViewParameters(
                    ImportErrorProducer.VIEW_ID)));
    return l;
}
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:19,代码来源:ControlImportProducer.java

示例5: makeSaveChecklistForm

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
private void makeSaveChecklistForm(UIContainer tofill) {
	// Ajax grading form so faculty can grade comments
	if(!saveChecklistFormNeeded) {
		UIForm saveChecklistForm = UIForm.make(tofill, "saveChecklistForm");
		saveChecklistForm.viewparams = new SimpleViewParameters(UVBProducer.VIEW_ID);
		UIInput checklistIdInput = UIInput.make(saveChecklistForm, "saveChecklistForm-checklistId", "checklistBean.checklistId");
		UIInput checklistItemIdInput = UIInput.make(saveChecklistForm, "saveChecklistForm-checklistItemIdInput", "checklistBean.checklistItemId");
		UIInput checklistItemDone = UIInput.make(saveChecklistForm, "saveChecklistForm-checklistItemDone", "checklistBean.checklistItemDone");
		Object sessionToken = SessionManager.getCurrentSession().getAttribute("sakai.csrf.token");
		String sessionTokenString = null;
		if (sessionToken != null)
		    sessionTokenString = sessionToken.toString();
		UIInput checklistCsrfInput = UIInput.make(saveChecklistForm, "saveChecklistForm-csrf", "checklistBean.csrfToken", sessionTokenString);

		UIInitBlock.make(tofill, "saveChecklistForm-init", "checklistDisplay.initSaveChecklistForm", new Object[] {checklistIdInput, checklistItemIdInput, checklistItemDone, checklistCsrfInput, "checklistBean.results"});
		saveChecklistFormNeeded = true;
	}
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:19,代码来源:ShowPageProducer.java

示例6: interceptActionResult

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
public void interceptActionResult(ARIResult result, ViewParameters incoming, Object actionReturn) {
	// handles the navigation cases and passing along data from view to view
	EmailTemplateViewParams evp = (EmailTemplateViewParams) incoming;
	EmailTemplateViewParams outgoing = (EmailTemplateViewParams) evp.copyBase(); // inherit all the incoming data
	if ("success".equals(actionReturn) 
			|| "successAssign".equals(actionReturn) 
			|| "successReset".equals(actionReturn) ) {
		//outgoing.viewID = PreviewEmailProducer.VIEW_ID;
		result.resultingView = outgoing;
	} else if ("failure".equals(actionReturn)) {
		// failure just comes back here
		result.resultingView = outgoing;
	} else {
		// default
		result.resultingView = new SimpleViewParameters(MainViewProducer.VIEW_ID);
	}
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:18,代码来源:ModifyEmailProducer.java

示例7: fillComponents

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
public void fillComponents(UIContainer tofill, ViewParameters viewparams,
		ComponentChecker arg2) {
	log.debug("fillComponents()");
	
	VoteCollectionViewParameters params = (VoteCollectionViewParameters) viewparams;
	
	
	String voteId; 
	if (params.id != null)
		voteId = params.id;
	else 
		voteId="VoteId is missing!";

	String locale = localeGetter.get().toString();
       Map<String, String> langMap = new HashMap<String, String>();
       langMap.put("lang", locale);
       langMap.put("xml:lang", locale);

	UIOutput.make(tofill, "polls-html", null).decorate(new UIFreeAttributeDecorator(langMap));
	
	UIOutput.make(tofill,"confirm-msg",messageLocator.getMessage("thanks_msg"));
	UIOutput.make(tofill,"confirm-ref-msg",messageLocator.getMessage("thanks_ref"));
	UIOutput.make(tofill,"ref-number",voteId);
	UIForm form = UIForm.make(tofill,"back", new SimpleViewParameters(PollToolProducer.VIEW_ID));
	UICommand.make(form,"cancel",messageLocator.getMessage("thanks_done"),"#{pollToolBean.cancel}");
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:27,代码来源:ConfirmProducer.java

示例8: renderLink

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
private void renderLink(UIJointContainer joint, String linkViewID, String messageKey) {

        UIBranchContainer cell = UIBranchContainer.make(joint, "navigation-cell:");
        UIInternalLink link = UIInternalLink.make(cell, "item-link", UIMessage.make(messageKey),
                new SimpleViewParameters(linkViewID));

        if (currentViewID != null && currentViewID.equals(linkViewID)) {
            link.decorate( new UIStyleDecorator("inactive"));
        }
    }
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:11,代码来源:NavBarRenderer.java

示例9: interceptActionResult

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
public void interceptActionResult(ARIResult result, ViewParameters incoming, Object actionReturn) {
    // handles the navigation cases and passing along data from view to view
    EvalViewParameters evp = (EvalViewParameters) incoming;
    EvalViewParameters outgoing = (EvalViewParameters) evp.copyBase(); // inherit all the incoming data
    if ("failure".equals(actionReturn)) {
        // failure just comes back here
        result.resultingView = outgoing;
    } else {
        // default
        result.resultingView = new SimpleViewParameters(ControlEvaluationsProducer.VIEW_ID);
    }
}
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:13,代码来源:EvaluationNotificationsProducer.java

示例10: fill

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
public void fill(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) {

      String beanBinding = "expertItemsBean.";
      String actionBinding = "removeExpertItem";

      // passed in values
      ModifyExpertItemParameters params = (ModifyExpertItemParameters) viewparams;
      
      Long eigId;
      if ( EvalConstants.ITEM_GROUP_TYPE_CATEGORY.equals(params.type)) {
      	eigId = params.categoryId;
      } else {
      	eigId = params.objectiveId;
      }

      EvalItemGroup eig = authoringService.getItemGroupById(eigId);

      // deletion message
      UIMessage.make(tofill, "removeexpertitem.confirm.text", 
            "removeexpertitem.confirm.text", new Object[] {eig.getTitle()});

      UIForm form = UIForm.make(tofill, "remove-expertitem-form");
      UICommand deleteCommand = UICommand.make(form, "remove-expertitem-remove-button", 
            UIMessage.make("removeexpertitem.remove.scale.button"), beanBinding + actionBinding);
      deleteCommand.parameters.add(new UIELBinding(beanBinding + "eigId", eigId));
      UIInternalLink.make(form, "cancel-link", UIMessage.make("modifyexpertitem.cancel"), new SimpleViewParameters(ControlExpertItemsProducer.VIEW_ID));
   }
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:28,代码来源:RemoveExpertItemProducer.java

示例11: reportNavigationCases

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
@SuppressWarnings({ "unchecked", "rawtypes" })
public List reportNavigationCases() {
    List i = new ArrayList();
    i.add(new NavigationCase(EvaluationSettingsProducer.VIEW_ID, new SimpleViewParameters(EvaluationSettingsProducer.VIEW_ID)));
    i.add(new NavigationCase(PreviewEvalProducer.VIEW_ID, new SimpleViewParameters(PreviewEvalProducer.VIEW_ID)));
    return i;
}
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:8,代码来源:SummaryProducer.java

示例12: fill

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
public void fill(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) {

        String currentUserId = commonLogic.getCurrentUserId();
        boolean userAdmin = commonLogic.isUserAdmin(currentUserId);

        if (!userAdmin) {
            // Security check and denial
            throw new SecurityException("Non-admin users may not access this page");
        }

        /*
         * top links here
         */
        navBarRenderer.makeNavBar(tofill, NavBarRenderer.NAV_ELEMENT, this.getViewID());

        String[] expanded = null;
        if(viewparams instanceof HierarchyNodeParameters){
        	expanded = ((HierarchyNodeParameters) viewparams).expanded;
        }
        // start rendering the hierarchy controls
        hierUtil.renderModifyHierarchyTree(tofill, "hierarchy-tree:", false, false, false, expanded);

        // done rendering the hierarchy controls
        UIInternalLink.make(tofill, "done-link", UIMessage.make("controlhierarchy.done"),
                new SimpleViewParameters(AdministrateProducer.VIEW_ID));

    }
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:28,代码来源:ControlHierarchyProducer.java

示例13: interceptActionResult

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
public void interceptActionResult(ARIResult result, ViewParameters incoming, Object actionReturn) {
    // handles the navigation cases and passing along data from view to view
    EvalViewParameters evp = (EvalViewParameters) incoming;
    Long evalId = evp.evaluationId;
    if ("evalSettings".equals(actionReturn)) {
        result.resultingView = new EvalViewParameters(EvaluationSettingsProducer.VIEW_ID, evalId);
    } else if ("evalAssign".equals(actionReturn)) {
        result.resultingView = new EvalViewParameters(EvaluationAssignProducer.VIEW_ID, evalId);
    } else if ("evalConfirm".equals(actionReturn)) {
        result.resultingView = new EvalViewParameters(EvaluationAssignConfirmProducer.VIEW_ID, evalId);
    } else if ("controlEvals".equals(actionReturn)) {
        result.resultingView = new SimpleViewParameters(ControlEvaluationsProducer.VIEW_ID);
    }
}
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:15,代码来源:EvaluationAssignProducer.java

示例14: reportNavigationCases

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
/**
  * @return 
 * @see uk.org.ponder.rsf.flow.jsfnav.NavigationCaseReporter#reportNavigationCases()
 */
@SuppressWarnings({ "unchecked", "rawtypes" })
public List reportNavigationCases() {
   ArrayList result = new ArrayList();
   result.add(new NavigationCase(null, new SimpleViewParameters(SummaryProducer.VIEW_ID)));
   return result;
}
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:11,代码来源:AssignPermissionsProducer.java

示例15: reportNavigationCases

import uk.org.ponder.rsf.viewstate.SimpleViewParameters; //导入依赖的package包/类
/**
 * @return 
 * @see uk.org.ponder.rsf.flow.jsfnav.NavigationCaseReporter#reportNavigationCases()
 */
@SuppressWarnings({ "rawtypes", "unchecked" })
public List reportNavigationCases() {
    List i = new ArrayList();
    i.add(new NavigationCase("uploadSucces", new SimpleViewParameters(VIEW_ID)));
    i.add(new NavigationCase("uploadFailure", new SimpleViewParameters(AdministrateProducer.VIEW_ID)));
    i.add(new NavigationCase("overwriteSuccess", new SimpleViewParameters(AdministrateProducer.VIEW_ID)));
    return i;
}
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:13,代码来源:ImportConfigProducer.java


注:本文中的uk.org.ponder.rsf.viewstate.SimpleViewParameters类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。