本文整理匯總了Java中com.vaadin.server.FontAwesome.SIGN_OUT屬性的典型用法代碼示例。如果您正苦於以下問題:Java FontAwesome.SIGN_OUT屬性的具體用法?Java FontAwesome.SIGN_OUT怎麽用?Java FontAwesome.SIGN_OUT使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類com.vaadin.server.FontAwesome
的用法示例。
在下文中一共展示了FontAwesome.SIGN_OUT屬性的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: refreshConnexionPanelStudent
/**
* Rafraichi le panel de connexion sans compte
*/
private void refreshConnexionPanelStudent() {
vlConnexionIsStudent.removeAllComponents();
OneClickButton logBtn = new OneClickButton(
applicationContext.getMessage("btnConnect", null, UI.getCurrent().getLocale()), FontAwesome.SIGN_OUT);
logBtn.addClickListener(e -> {
userController.connectCAS();
});
HorizontalLayout hlConnect = new HorizontalLayout();
hlConnect.setSpacing(true);
Label labelConnect = new Label(
applicationContext.getMessage("accueilView.connect.cas", null, UI.getCurrent().getLocale()));
hlConnect.addComponent(labelConnect);
hlConnect.setComponentAlignment(labelConnect, Alignment.MIDDLE_LEFT);
hlConnect.addComponent(logBtn);
hlConnect.setComponentAlignment(logBtn, Alignment.MIDDLE_CENTER);
vlConnexionIsStudent.addComponent(hlConnect);
}
示例2: refreshConnexionPanelNotStudent
/**
* Rafraichi le panel de connexion sans compte
*/
private void refreshConnexionPanelNotStudent() {
vlConnexionNotStudent.removeAllComponents();
OneClickButton logBtnNoCompte = new OneClickButton(
applicationContext.getMessage("accueilView.createaccount", null, UI.getCurrent().getLocale()),
FontAwesome.SIGN_OUT);
logBtnNoCompte.addClickListener(e -> {
candidatController.createCompteMinima(false);
});
vlConnexionNotStudent.addComponent(logBtnNoCompte);
}