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


Java FontAwesome.TIMES屬性代碼示例

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


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

示例1: ScolTypeTraitementWindow

/**
 * Crée une fenêtre d'édition de typeTraitement
 * @param typeTraitement la typeTraitement à éditer
 */
public ScolTypeTraitementWindow(TypeTraitement typeTraitement) {
	/* Style */
	setModal(true);
	setWidth(550,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("typeTraitement.window", null, UI.getCurrent().getLocale()));

	/* Formulaire */
	fieldGroup = new CustomBeanFieldGroup<>(TypeTraitement.class);
	fieldGroup.setItemDataSource(typeTraitement);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	for (String fieldName : FIELDS_ORDER) {
		String caption = applicationContext.getMessage("typeTraitement.table." + fieldName, null, UI.getCurrent().getLocale());
		Field<?> field = fieldGroup.buildAndBind(caption, fieldName);
		field.setWidth(100, Unit.PERCENTAGE);			
		formLayout.addComponent(field);
		if (fieldName.equals(TypeTraitement_.i18nLibTypTrait.getName())){
			field.setEnabled(true);
		}else{
			field.setEnabled(false);
		}
	}
	
	((I18nField)fieldGroup.getField(TypeTraitement_.i18nLibTypTrait.getName())).addCenterListener(e-> {if(e){center();}});

	layout.addComponent(formLayout);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {
		try {
			/* Valide la saisie */
			fieldGroup.commit();
			/* Enregistre la typeTraitement saisie */
			nomenclatureTypeController.saveTypeTraitement(typeTraitement);
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:73,代碼來源:ScolTypeTraitementWindow.java

示例2: PieceJustifWindow

/**
 * Crée une fenêtre d'édition de pieceJustif
 * @param pieceJustif la pieceJustif à éditer
 */
public PieceJustifWindow(PieceJustif pieceJustif) {
	/* Style */
	setModal(true);
	setWidth(550,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("pieceJustif.window", null, UI.getCurrent().getLocale()));

	/* Formulaire */
	fieldGroup = new CustomBeanFieldGroup<>(PieceJustif.class);
	fieldGroup.setItemDataSource(pieceJustif);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	for (String fieldName : FIELDS_ORDER) {
		String caption = applicationContext.getMessage("pieceJustif.table." + fieldName, null, UI.getCurrent().getLocale());
		Field<?> field = fieldGroup.buildAndBind(caption, fieldName);
		field.setWidth(100, Unit.PERCENTAGE);			
		formLayout.addComponent(field);
	}
	
	((I18nField)fieldGroup.getField(PieceJustif_.i18nLibPj.getName())).addCenterListener(e-> {if(e){center();}});	

	layout.addComponent(formLayout);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {
		try {
			/*Si le code de profil existe dejà --> erreur*/
			if (!pieceJustifController.isCodPjUnique((String) fieldGroup.getField(PieceJustif_.codPj.getName()).getValue(), pieceJustif.getIdPj())){
				Notification.show(applicationContext.getMessage("window.error.cod.nonuniq", null, UI.getCurrent().getLocale()), Type.WARNING_MESSAGE);
				return;
			}	
			/* Valide la saisie */
			fieldGroup.commit();
			/* Enregistre la pieceJustif saisie */
			pieceJustifController.savePieceJustif(pieceJustif);
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:73,代碼來源:PieceJustifWindow.java

示例3: CtrCandPostItAddWindow

/**Crée une fenêtre d'édition de postit
 * @param postIt
 */
public CtrCandPostItAddWindow(PostIt postIt) {		
	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(600, Unit.PIXELS);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("postit.add.window", null, UI.getCurrent().getLocale()));

	/*Layout adresse*/		
	fieldGroup = new CustomBeanFieldGroup<PostIt>(PostIt.class,ConstanteUtils.TYP_FORM_CANDIDAT);
	fieldGroup.setItemDataSource(postIt);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	Field<?> field = fieldGroup.buildAndBind(applicationContext.getMessage("postit.table." + PostIt_.messagePostIt.getName(), null, UI.getCurrent().getLocale()), PostIt_.messagePostIt.getName(), RequiredTextArea.class); 
	field.setWidth(100, Unit.PERCENTAGE);
	formLayout.addComponent(field);
	
	layout.addComponent(formLayout);
	layout.setExpandRatio(formLayout, 1);
	
	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {			
		try {			
			/* Valide la saisie du cursus*/
			fieldGroup.commit();
			/* Enregistre le cursus saisi */
			postItWindowListener.btnOkClick(candidatureCtrCandController.savePostIt(postIt));
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {			
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:57,代碼來源:CtrCandPostItAddWindow.java

示例4: AdminBatchHistoWindow

/**
 * Crée une fenêtre de visu de l'histo d'un batch
 * @param batch le batch à visualiser
 */
public AdminBatchHistoWindow(Batch batch) {
	/* Style */
	setModal(true);
	setWidth(700,Unit.PIXELS);
	setResizable(false);
	setClosable(false);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("batchHisto.window", new Object[]{batch.getCodBatch()}, UI.getCurrent().getLocale()));

	/* Table */
	container = new BeanItemContainer<BatchHisto>(BatchHisto.class, batchController.getBatchHisto(batch));
	batchHistoTable = new TableFormating(null,container);
	batchHistoTable.addGeneratedColumn("duree", new ColumnGenerator() {
		
		/*** serialVersionUID*/
		private static final long serialVersionUID = 7461290324017459118L;

		@Override
		public Object generateCell(Table source, Object itemId, Object columnId) {
			final BatchHisto batchHisto = (BatchHisto) itemId;
			if (batchHisto.getDateFinBatchHisto()!=null)
			{
				LocalDateTime dateDeb = LocalDateTime.from(batchHisto.getDateDebBatchHisto());
				Long minutes = dateDeb.until(batchHisto.getDateFinBatchHisto(), ChronoUnit.MINUTES);
				dateDeb = dateDeb.plusMinutes(minutes);
				Long secondes = dateDeb.until(batchHisto.getDateFinBatchHisto(), ChronoUnit.SECONDS);
				return new Label(applicationContext.getMessage("batch.histo.duree", new Object[]{minutes,secondes}, UI.getCurrent().getLocale()));
			}
			return null;
		}
	});
	batchHistoTable.setSizeFull();
	batchHistoTable.setVisibleColumns((Object[]) BATCH_HISTO_FIELDS_ORDER);
	for (String fieldName : BATCH_HISTO_FIELDS_ORDER) {
		batchHistoTable.setColumnHeader(fieldName, applicationContext.getMessage("batchHisto.table." + fieldName, null, UI.getCurrent().getLocale()));
	}
	batchHistoTable.setSortContainerPropertyId(Batch_.codBatch.getName());
	batchHistoTable.setColumnCollapsingAllowed(true);
	batchHistoTable.setColumnReorderingAllowed(true);
	batchHistoTable.setSelectable(true);

	layout.addComponent(batchHistoTable);
	
	
	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnFermer = new OneClickButton(applicationContext.getMessage("btnClose", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnFermer.addClickListener(e -> close());
	buttonsLayout.addComponent(btnFermer);
	buttonsLayout.setComponentAlignment(btnFermer, Alignment.MIDDLE_LEFT);
	
	btnRefresh = new OneClickButton(applicationContext.getMessage("btnRefresh", null, UI.getCurrent().getLocale()), FontAwesome.REFRESH);
	btnRefresh.addClickListener(e -> {
		container.removeAllItems();
		container.addAll(batchController.getBatchHisto(batch));
	});
	buttonsLayout.addComponent(btnRefresh);
	buttonsLayout.setComponentAlignment(btnRefresh, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:77,代碼來源:AdminBatchHistoWindow.java

示例5: CtrCandPreferenceWindowTemplate

/**
 * Créé un template de préférence
 */
public CtrCandPreferenceWindowTemplate() {
	super();
	
	/* Style */
	setModal(true);
	setWidth(900,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);
	
	/*Les messages d'information*/
	panelInfo.setCaption(applicationContext.getMessage("informations", null, UI.getCurrent().getLocale()));
	panelInfo.setIcon(FontAwesome.INFO_CIRCLE);
	panelInfo.setWidthMax();		
	layout.addComponent(panelInfo);
	
	/*On ajoute le layout specifique*/
	layoutSpecifique.setSpacing(true);
	layoutSpecifique.setSizeFull();
	layout.addComponent(layoutSpecifique);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	OneClickButton btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);
	
	btnReinit.setCaption(applicationContext.getMessage("preference.btnInit", null, UI.getCurrent().getLocale()));
	buttonsLayout.addComponent(btnReinit);
	buttonsLayout.setComponentAlignment(btnReinit, Alignment.MIDDLE_CENTER);
	
	btnRecordSession.setCaption(applicationContext.getMessage("preference.btnRecordSession", null, UI.getCurrent().getLocale()));
	buttonsLayout.addComponent(btnRecordSession);
	buttonsLayout.setComponentAlignment(btnRecordSession, Alignment.MIDDLE_CENTER);
	
	btnRecordDb.setCaption(applicationContext.getMessage("preference.btnRecordDb", null, UI.getCurrent().getLocale()));
	buttonsLayout.addComponent(btnRecordDb);
	buttonsLayout.setComponentAlignment(btnRecordDb, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:56,代碼來源:CtrCandPreferenceWindowTemplate.java

示例6: CtrCandOdfCandidatureWindow

/**
 * Crée une fenêtre de choix pour le gestionnaire : proposition ou candidature simple
 * @param message
 */
public CtrCandOdfCandidatureWindow(String message) {
	/* Style */
	setWidth(630, Unit.PIXELS);
	setModal(true);
	setResizable(false);
	setClosable(false);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("candidature.gest.window", null, UI.getCurrent().getLocale()));

	/* Texte */
	layout.addComponent(new Label(message));
	layout.addComponent(new Label(applicationContext.getMessage("candidature.gest.window.choice", null, UI.getCurrent().getLocale())));
	
	/*Le container d'options*/
	BeanItemContainer<SimpleTablePresentation> optContainer = new BeanItemContainer<SimpleTablePresentation>(SimpleTablePresentation.class);
	SimpleTablePresentation optionClassique = new SimpleTablePresentation(ConstanteUtils.OPTION_CLASSIQUE,applicationContext.getMessage("candidature.gest.window.choice.classique", null, UI.getCurrent().getLocale()),null);
	SimpleTablePresentation optionProposition = new SimpleTablePresentation(ConstanteUtils.OPTION_PROP,applicationContext.getMessage("candidature.gest.window.choice.proposition", null, UI.getCurrent().getLocale()),null);
	optContainer.addItem(optionClassique);
	optContainer.addItem(optionProposition);
	
	optionGroupAction.setContainerDataSource(optContainer);
	optionGroupAction.addStyleName(StyleConstants.OPTION_GROUP_HORIZONTAL);
	optionGroupAction.setItemCaptionPropertyId(SimpleTablePresentation.CHAMPS_TITLE);
	optionGroupAction.setItemCaptionMode(ItemCaptionMode.PROPERTY);
	optionGroupAction.setValue(optionClassique);
	
	layout.addComponent(optionGroupAction);
	layout.setComponentAlignment(optionGroupAction, Alignment.MIDDLE_CENTER);
	

	/* Boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	OneClickButton btnNon = new OneClickButton(applicationContext.getMessage("confirmWindow.btnNon", null, UI.getCurrent().getLocale()),FontAwesome.TIMES);
	btnNon.addClickListener(e -> close());
	buttonsLayout.addComponent(btnNon);
	buttonsLayout.setComponentAlignment(btnNon, Alignment.MIDDLE_LEFT);

	OneClickButton btnOui = new OneClickButton(applicationContext.getMessage("confirmWindow.btnOui", null, UI.getCurrent().getLocale()),FontAwesome.CHECK);
	btnOui.setIcon(FontAwesome.CHECK);
	btnOui.addStyleName(ValoTheme.BUTTON_PRIMARY);
	btnOui.addClickListener(e -> {
		SimpleTablePresentation option = (SimpleTablePresentation)optionGroupAction.getValue();
		odfCandidatureListener.btnOkClick(option.getCode());
		close();
	});
	buttonsLayout.addComponent(btnOui);
	buttonsLayout.setComponentAlignment(btnOui, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:66,代碼來源:CtrCandOdfCandidatureWindow.java

示例7: ScolAlertSvaParametreWindow

/** Crée une fenêtre d'édition de date d'alerte SVA
 * @param parametreDate
 * @param parametreDefinitif
 */
public ScolAlertSvaParametreWindow(Parametre parametreDate, Parametre parametreDefinitif) {
	/* Style */
	setModal(true);
	setWidth(600,Unit.PIXELS);
	setResizable(true);
	setClosable(true);
	
	ParametreSvaPresentation parametre = new ParametreSvaPresentation(parametreDate.getValParam(),parametreDefinitif.getValParam());

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("alertSva.date.window", null, UI.getCurrent().getLocale()));

	/* Formulaire */
	fieldGroup = new CustomBeanFieldGroup<>(ParametreSvaPresentation.class);
	fieldGroup.setItemDataSource(parametre);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	
	ComboBoxPresentation field = fieldGroup.buildAndBind(applicationContext.getMessage("alertSva.date.title", null, UI.getCurrent().getLocale()), 
			ParametreSvaPresentation.CHAMPS_DATE, ComboBoxPresentation.class);
	field.setListe(alertSvaController.getListeDateSVA());
	field.setWidth(100, Unit.PERCENTAGE);
	formLayout.addComponent(field);
	
	RequiredStringCheckBox fieldDefinitif = fieldGroup.buildAndBind(applicationContext.getMessage("alertSva.definitif.title", null, UI.getCurrent().getLocale()), 
			ParametreSvaPresentation.CHAMPS_DEFINITF, RequiredStringCheckBox.class);
	fieldDefinitif.setWidth(100, Unit.PERCENTAGE);
	formLayout.addComponent(fieldDefinitif);

	layout.addComponent(formLayout);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {
		try {				
			/* Valide la saisie */
			fieldGroup.commit();
			/* Enregistre la alertSva saisie */
			changeAlertSVAWindowListener.btnOkClick(parametre);
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:73,代碼來源:ScolAlertSvaParametreWindow.java

示例8: ScolTypeStatutPieceWindow

/**
 * Crée une fenêtre d'édition de typeStatutPiece
 * @param typeStatutPiece la typeStatutPiece à éditer
 */
public ScolTypeStatutPieceWindow(TypeStatutPiece typeStatutPiece) {
	/* Style */
	setModal(true);
	setWidth(550,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("typeStatutPiece.window", null, UI.getCurrent().getLocale()));

	/* Formulaire */
	fieldGroup = new CustomBeanFieldGroup<>(TypeStatutPiece.class);
	fieldGroup.setItemDataSource(typeStatutPiece);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	for (String fieldName : FIELDS_ORDER) {
		String caption = applicationContext.getMessage("typeStatutPiece.table." + fieldName, null, UI.getCurrent().getLocale());
		Field<?> field = fieldGroup.buildAndBind(caption, fieldName);
		field.setWidth(100, Unit.PERCENTAGE);			
		formLayout.addComponent(field);
		if (fieldName.equals(TypeStatutPiece_.i18nLibTypStatutPiece.getName())){
			field.setEnabled(true);
		}else{
			field.setEnabled(false);
		}
	}
	
	((I18nField)fieldGroup.getField(TypeStatutPiece_.i18nLibTypStatutPiece.getName())).addCenterListener(e-> {if(e){center();}});

	layout.addComponent(formLayout);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {
		try {
			/* Valide la saisie */
			fieldGroup.commit();
			/* Enregistre la typeStatutPiece saisie */
			typeStatutController.saveTypeStatutPiece(typeStatutPiece);
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:73,代碼來源:ScolTypeStatutPieceWindow.java

示例9: CandidatAdresseWindow

/**
 * Crée une fenêtre d'édition d'adresse
 * @param adresse l'adresse à éditer
 */
public CandidatAdresseWindow(Adresse adresse) {
	/* Style */
	setModal(true);
	setWidth(550,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("adresse.window", null, UI.getCurrent().getLocale()));

	
	/*Layout adresse*/		
	fieldGroupAdresse = new CustomBeanFieldGroup<Adresse>(Adresse.class,ConstanteUtils.TYP_FORM_ADR);
	fieldGroupAdresse.setItemDataSource(adresse);
	AdresseForm adresseForm = new AdresseForm(fieldGroupAdresse, false);
	layout.addComponent(adresseForm);
	layout.setExpandRatio(adresseForm, 1);
	
	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {			
		try {			
			/* Valide la saisie de l'adresse*/
			fieldGroupAdresse.commit();
			/* Enregistre la commission saisie */
			adresseWindowListener.btnOkClick(fieldGroupAdresse.getItemDataSource().getBean());
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {			
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:59,代碼來源:CandidatAdresseWindow.java

示例10: ScolFaqWindow

/**
 * Crée une fenêtre d'édition de faq
 * @param faq la faq à éditer
 */
public ScolFaqWindow(Faq faq) {
	/* Style */
	setModal(true);
	setWidth(850,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("faq.window", null, UI.getCurrent().getLocale()));

	/* Formulaire */
	fieldGroup = new CustomBeanFieldGroup<>(Faq.class);
	fieldGroup.setItemDataSource(faq);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	for (String fieldName : FIELDS_ORDER) {
		String caption = applicationContext.getMessage("faq.table." + fieldName, null, UI.getCurrent().getLocale());
		Field<?> field = fieldGroup.buildAndBind(caption, fieldName);
		field.setWidth(100, Unit.PERCENTAGE);			
		formLayout.addComponent(field);
	}
	
	((I18nField)fieldGroup.getField(Faq_.i18nQuestion.getName())).addCenterListener(e-> {if(e){center();}});
	((I18nField)fieldGroup.getField(Faq_.i18nReponse.getName())).addCenterListener(e-> {if(e){center();}});

	layout.addComponent(formLayout);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {
		try {		
			/* Valide la saisie */
			fieldGroup.commit();
			/* Enregistre la faq saisie */
			faqController.saveFaq(faq);
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:69,代碼來源:ScolFaqWindow.java

示例11: ScolMotivationAvisWindow

/**
 * Crée une fenêtre d'édition de motivationAvis
 * @param motivationAvis la motivationAvis à éditer
 */
public ScolMotivationAvisWindow(MotivationAvis motivationAvis) {
	/* Style */
	setModal(true);
	setWidth(550,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("motivAvis.window", null, UI.getCurrent().getLocale()));

	/* Formulaire */
	fieldGroup = new CustomBeanFieldGroup<>(MotivationAvis.class);
	fieldGroup.setItemDataSource(motivationAvis);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	for (String fieldName : FIELDS_ORDER) {
		String caption = applicationContext.getMessage("motivAvis.table." + fieldName, null, UI.getCurrent().getLocale());
		Field<?> field = fieldGroup.buildAndBind(caption, fieldName);
		field.setWidth(100, Unit.PERCENTAGE);			
		formLayout.addComponent(field);
	}
	
	((I18nField)fieldGroup.getField(MotivationAvis_.i18nLibMotiv.getName())).addCenterListener(e-> {if(e){center();}});

	layout.addComponent(formLayout);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {
		try {
			/*Si le code de profil existe dejà --> erreur*/
			if (!motivationAvisController.isCodMotivUnique((String) fieldGroup.getField(MotivationAvis_.codMotiv.getName()).getValue(), motivationAvis.getIdMotiv())){
				Notification.show(applicationContext.getMessage("window.error.cod.nonuniq", null, UI.getCurrent().getLocale()), Type.WARNING_MESSAGE);
				return;
			}				
			/* Valide la saisie */
			fieldGroup.commit();
			/* Enregistre la motivationAvis saisie */
			motivationAvisController.saveMotivationAvis(motivationAvis);
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:73,代碼來源:ScolMotivationAvisWindow.java

示例12: ScolGestCandidatWindow

/**
 * Crée une fenêtre d'édition de date d'alerte SVA
 * @param parametre le parametre à éditer
 */
public ScolGestCandidatWindow(Parametre parametre, String title) {
	/* Style */
	setModal(true);
	setWidth(600,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(title);

	/* Formulaire */
	fieldGroup = new CustomBeanFieldGroup<>(Parametre.class);
	fieldGroup.setItemDataSource(parametre);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	
	ComboBoxPresentation field = fieldGroup.buildAndBind(applicationContext.getMessage("droitprofilind.gestCandidat.title", null, UI.getCurrent().getLocale()), 
			Parametre_.valParam.getName(), ComboBoxPresentation.class);
	field.setListe(parametreController.getListeGestionnaireCandidat());
	field.setWidth(100, Unit.PERCENTAGE);			
	formLayout.addComponent(field);

	layout.addComponent(formLayout);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {
		try {				
			/* Valide la saisie */
			fieldGroup.commit();
			/* Enregistre la alertSva saisie */
			changeGestCandidatWindowListener.btnOkClick(parametre);
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:66,代碼來源:ScolGestCandidatWindow.java

示例13: CandidatAdminWindow

/**
 * Crée une fenêtre d'édition de cptMin
 * @param cptMin la cptMin à éditer
 */
public CandidatAdminWindow(CompteMinima cptMin) {
	/* Style */
	setModal(true);
	setWidth(550,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("candidat.admin.window", null, UI.getCurrent().getLocale()));

	/* Formulaire */
	fieldGroup = new CustomBeanFieldGroup<>(CompteMinima.class);
	fieldGroup.setItemDataSource(cptMin);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	for (String fieldName : FIELDS_ORDER) {
		String caption = applicationContext.getMessage("compteMinima.table." + fieldName, null, UI.getCurrent().getLocale());
		Field<?> field = fieldGroup.buildAndBind(caption, fieldName);
		field.setWidth(100, Unit.PERCENTAGE);
		if (fieldName.equals(CompteMinima_.mailPersoCptMin.getName())){
			field.addValidator(new EmailValidator(applicationContext.getMessage("validation.error.mail", null, Locale.getDefault())));
		}
		formLayout.addComponent(field);
	}
	
	RequiredTextField loginField = (RequiredTextField)fieldGroup.getField(CompteMinima_.loginCptMin.getName());
	RequiredTextField etuIdField = (RequiredTextField)fieldGroup.getField(CompteMinima_.supannEtuIdCptMin.getName());

	layout.addComponent(formLayout);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {
		try {
			/*Si le code existe dejà --> erreur*/				
			if (candidatController.isLoginPresent(loginField.getValue(), cptMin) || candidatController.isSupannEtuIdPresent(etuIdField.getValue(), cptMin)){
				return;
			}
	
			/* Valide la saisie */
			fieldGroup.commit();
			
			/* Enregistre la cptMin saisie */
			candidatAdminWindowListener.btnOkClick(cptMin);
			
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:79,代碼來源:CandidatAdminWindow.java

示例14: ScolMessageWindow

/**
 * Crée une fenêtre d'édition de message
 * @param message la message à éditer
 */
public ScolMessageWindow(Message message) {
	/* Style */
	setModal(true);
	setWidth(850,Unit.PIXELS);
	setResizable(true);
	setClosable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	layout.setWidth(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);
	setContent(layout);

	/* Titre */
	setCaption(applicationContext.getMessage("message.window", null, UI.getCurrent().getLocale()));

	/* Formulaire */
	fieldGroup = new CustomBeanFieldGroup<>(Message.class);
	fieldGroup.setItemDataSource(message);
	FormLayout formLayout = new FormLayout();
	formLayout.setWidth(100, Unit.PERCENTAGE);
	formLayout.setSpacing(true);
	for (String fieldName : FIELDS_ORDER) {
		String caption = applicationContext.getMessage("message.table." + fieldName, null, UI.getCurrent().getLocale());
		Field<?> field = fieldGroup.buildAndBind(caption, fieldName);
		field.setWidth(100, Unit.PERCENTAGE);			
		formLayout.addComponent(field);
		if (fieldName.equals(Message_.codMsg.getName())){
			field.setEnabled(false);
		}
	}
	
	((I18nField)fieldGroup.getField(Message_.i18nValMessage.getName())).addCenterListener(e-> {if(e){center();}});

	layout.addComponent(formLayout);

	/* Ajoute les boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);

	btnEnregistrer = new OneClickButton(applicationContext.getMessage("btnSave", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnEnregistrer.addStyleName(ValoTheme.BUTTON_PRIMARY);		
	btnEnregistrer.addClickListener(e -> {
		try {		
			/* Valide la saisie */
			fieldGroup.commit();
			/* Enregistre la message saisie */
			messageController.saveMessage(message);
			/* Ferme la fenêtre */
			close();
		} catch (CommitException ce) {
		}
	});
	buttonsLayout.addComponent(btnEnregistrer);
	buttonsLayout.setComponentAlignment(btnEnregistrer, Alignment.MIDDLE_RIGHT);

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:71,代碼來源:ScolMessageWindow.java

示例15: SearchAnneeUnivApoWindow

/**
 * Crée une fenêtre de recherche de anneeUni
 */
public SearchAnneeUnivApoWindow() {
	/* Style */
	setWidth(740, Unit.PIXELS);
	setHeight(480, Unit.PIXELS);
	setModal(true);
	setResizable(true);

	/* Layout */
	VerticalLayout layout = new VerticalLayout();
	setContent(layout);
	layout.setHeight(100, Unit.PERCENTAGE);
	layout.setMargin(true);
	layout.setSpacing(true);

	/* Titre */
	setCaption(applicationContext.getMessage("window.search.anneeUni.title", null, Locale.getDefault()));
	
	/* Table de Resultat de recherche*/
	List<SiScolAnneeUni> listeAnneeUni = cacheController.getListeAnneeUni();
	if (listeAnneeUni.size()==0){
		layout.addComponent(new Label(applicationContext.getMessage("window.search.anneeUni.noannee", null, Locale.getDefault())));
	}
	tableResult = new TableFormating(null, new BeanItemContainer<SiScolAnneeUni>(SiScolAnneeUni.class,listeAnneeUni));
	
	String[] columnHeadersHarp = new String[FIELDS_ORDER.length];
	for (int fieldIndex = 0; fieldIndex < FIELDS_ORDER.length; fieldIndex++){
		columnHeadersHarp[fieldIndex] = applicationContext.getMessage("window.search.anneeUni."+FIELDS_ORDER[fieldIndex], null, Locale.getDefault());
	}
	tableResult.setVisibleColumns((Object[])FIELDS_ORDER);
	tableResult.setSortContainerPropertyId(SiScolAnneeUni_.codAnu.getName());
	tableResult.setSortAscending(false);
	tableResult.setColumnHeaders(columnHeadersHarp);
	tableResult.setColumnCollapsingAllowed(true);
	tableResult.setColumnReorderingAllowed(true);
	tableResult.setSelectable(true);
	tableResult.setImmediate(true);
	tableResult.setSizeFull();
	tableResult.addItemSetChangeListener(e -> tableResult.sanitizeSelection());
	tableResult.addValueChangeListener(e -> {
		/* Le bouton d'enregistrement est actif seulement si un anneeUni est sélectionné. */
		boolean anneeUniIsSelected = tableResult.getValue() instanceof SiScolAnneeUni;
		btnValider.setEnabled(anneeUniIsSelected);
	});
	
	layout.addComponent(tableResult);
	layout.setExpandRatio(tableResult, 1.0f);

	/* Boutons */
	HorizontalLayout buttonsLayout = new HorizontalLayout();
	buttonsLayout.setWidth(100, Unit.PERCENTAGE);
	buttonsLayout.setSpacing(true);
	layout.addComponent(buttonsLayout);

	btnAnnuler = new OneClickButton(applicationContext.getMessage("btnAnnuler", null, UI.getCurrent().getLocale()), FontAwesome.TIMES);
	btnAnnuler.addClickListener(e -> close());
	buttonsLayout.addComponent(btnAnnuler);
	buttonsLayout.setComponentAlignment(btnAnnuler, Alignment.MIDDLE_LEFT);
	
	btnValider = new OneClickButton(applicationContext.getMessage("btnAdd", null, UI.getCurrent().getLocale()), FontAwesome.SAVE);
	btnValider.setEnabled(false);
	btnValider.addStyleName(ValoTheme.BUTTON_PRIMARY);
	btnValider.addClickListener(e -> {
		performAction();
	});
	buttonsLayout.addComponent(btnValider);
	buttonsLayout.setComponentAlignment(btnValider, Alignment.MIDDLE_RIGHT);
	

	/* Centre la fenêtre */
	center();
}
 
開發者ID:EsupPortail,項目名稱:esup-ecandidat,代碼行數:74,代碼來源:SearchAnneeUnivApoWindow.java


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