當前位置: 首頁>>代碼示例>>Java>>正文


Java ViewChangeEvent.getParameters方法代碼示例

本文整理匯總了Java中com.vaadin.navigator.ViewChangeListener.ViewChangeEvent.getParameters方法的典型用法代碼示例。如果您正苦於以下問題:Java ViewChangeEvent.getParameters方法的具體用法?Java ViewChangeEvent.getParameters怎麽用?Java ViewChangeEvent.getParameters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.vaadin.navigator.ViewChangeListener.ViewChangeEvent的用法示例。


在下文中一共展示了ViewChangeEvent.getParameters方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: enter

import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent; //導入方法依賴的package包/類
/**
 * @see com.vaadin.navigator.View#enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)
 */
@Override
public void enter(ViewChangeEvent event) {
	userController.validSecurityUserCptMin();
	restResultParam = event.getParameters();
	if (restResultParam==null || restResultParam.equals("") || restResultParam.equals(ConstanteUtils.REST_VALID_ERROR)){
		restResultParam = ConstanteUtils.REST_VALID_ERROR;
	}		
	
	if (userController.isCandidat() && (restResultParam.equals(ConstanteUtils.REST_VALID_ALREADY_VALID) || restResultParam.equals(ConstanteUtils.REST_VALID_SUCCESS))){
		connexionLayout.setVisible(false);
		((MainUI) UI.getCurrent()).constructMainMenu();
	}else if (restResultParam.equals(ConstanteUtils.REST_VALID_ALREADY_VALID) || restResultParam.equals(ConstanteUtils.REST_VALID_SUCCESS)){
		connexionLayout.setVisible(true);
	}else{
		connexionLayout.setVisible(false);
	}
	updateLangue(cacheController.getLangueDefault());
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:22,代碼來源:CandidatCompteMinimaView.java

示例2: enter

import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent; //導入方法依賴的package包/類
@Override
public void enter(ViewChangeEvent event) {
    String parameters = event.getParameters();
    if (!StringUtils.isEmpty(parameters)) {
        Map<String, String> paramMap = ViewUtil.stringToMap(parameters);
        try {
            if (paramMap.get(ViewUtil.NETWORK_PARAM_KEY) != null) {
                this.tabs.setSelectedTab(this.tabs.getTab(1));
                log.info("Entered Network tab");
            } else if (paramMap.get(ViewUtil.SSL_CONFIGURATION_PARAM_KEY) != null) {
                this.tabs.setSelectedTab(this.tabs.getTab(2));
                log.info("Entered SSL configuration tab");
            }else if (paramMap.get(ViewUtil.EMAIL_PARAM_KEY) != null) {
                this.tabs.setSelectedTab(this.tabs.getTab(3));
                log.info("Entered Email tab");
            } else if (paramMap.get(ViewUtil.ARCHIVE_PARAM_KEY) != null) {
                this.tabs.setSelectedTab(this.tabs.getTab(4));
                log.info("Entered Archive tab");
            }
        } catch (NumberFormatException ne) {
            log.warn("Invalid Parameters for Maintenance View. " + parameters);
        }
    }
}
 
開發者ID:opensecuritycontroller,項目名稱:osc-core,代碼行數:25,代碼來源:MaintenanceView.java

示例3: enter

import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent; //導入方法依賴的package包/類
/**
 * @see com.vaadin.navigator.View#enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)
 */
@Override
public void enter(ViewChangeEvent event) {
	if (majView(applicationContext.getMessage("candidatures.title", null, UI.getCurrent().getLocale()), true, null)){
		candidatureContainer.removeAllItems();
		candidatureContainer.addAll(candidatureController.getCandidatures(candidat));
	}

	String param = event.getParameters();
	if (param!=null && !param.equals("")){
		try {
			Integer id = Integer.parseInt(param);
			Candidature candidature = candidatureController.loadCandidature(id);
			if (candidature != null){
				candidatureController.openCandidatureCandidat(candidature, isArchive, this);
			}
		} catch (NumberFormatException nfe) {
		}
	}
	setButtonVisible(true);
	Authentication auth = userController.getCurrentAuthentication();		
	if (!userController.isGestionnaireCandidat(auth) && !userController.isCandidat(auth)){
		btnNewCandidature.setVisible(false);
	}else if (isArchive){
		btnNewCandidature.setVisible(false);
	}
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:30,代碼來源:CandidatCandidaturesView.java

示例4: create

import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent; //導入方法依賴的package包/類
public static <N extends Navigator & ViewNavigator> DefaultViewNavigatorChangeEvent create(ViewChangeEvent event,
		N navigator, Window containerWindow) {
	return new DefaultViewNavigatorChangeEvent(navigator, event.getOldView(), event.getNewView(),
			event.getViewName(), event.getParameters(), containerWindow);
}
 
開發者ID:holon-platform,項目名稱:holon-vaadin7,代碼行數:6,代碼來源:DefaultViewNavigatorChangeEvent.java

示例5: create

import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent; //導入方法依賴的package包/類
/**
 * Create a new {@link DefaultViewNavigatorChangeEvent} from a standard {@link ViewChangeEvent}.
 * @param event Original {@link ViewChangeEvent}
 * @param oldViewName Optional old view name
 * @param navigator View navigator source of the event
 * @param containerWindow Optional View Window
 * @return A new {@link DefaultViewNavigatorChangeEvent}
 */
public static <N extends Navigator & ViewNavigator> DefaultViewNavigatorChangeEvent create(ViewChangeEvent event,
		String oldViewName, N navigator, Window containerWindow) {
	return new DefaultViewNavigatorChangeEvent(navigator, event.getOldView(), oldViewName, event.getNewView(),
			event.getViewName(), event.getParameters(), containerWindow);
}
 
開發者ID:holon-platform,項目名稱:holon-vaadin,代碼行數:14,代碼來源:DefaultViewNavigatorChangeEvent.java


注:本文中的com.vaadin.navigator.ViewChangeListener.ViewChangeEvent.getParameters方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。