本文整理匯總了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());
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
示例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);
}