List of usage examples for com.vaadin.server FontAwesome OPENID
FontAwesome OPENID
To view the source code for com.vaadin.server FontAwesome OPENID.
Click Source Link
From source file:com.etest.view.systemadministration.CurriculumMainUI.java
public CurriculumMainUI() { setSizeFull();/*from w w w .j a va 2 s.c o m*/ setMargin(true); setSpacing(true); // addComponent(buildForms()); // populateDataGrid(); Button newBtn = new Button("ADD NEW CURRICULUM"); newBtn.setWidth("220px"); newBtn.setIcon(FontAwesome.OPENID); newBtn.addStyleName(ValoTheme.BUTTON_LINK); newBtn.addStyleName(ValoTheme.BUTTON_SMALL); newBtn.addClickListener(buttonClickListener); addComponent(newBtn); addComponent(dataGridPanel()); }
From source file:com.etest.view.systemadministration.FacultyMainUI.java
public FacultyMainUI() { setSizeFull();/*from ww w. j a v a2 s .c o m*/ setSpacing(true); setMargin(true); Button formBtn = new Button("NEW FACULTY FORM"); formBtn.setWidth("230px"); formBtn.setIcon(FontAwesome.OPENID); formBtn.addStyleName(ValoTheme.BUTTON_LINK); formBtn.addStyleName(ValoTheme.BUTTON_SMALL); formBtn.addClickListener(formBtnClickListener); addComponent(formBtn); addComponent(getDataTablePanel()); }
From source file:com.etest.view.systemadministration.syllabus.SyllabusMainUI.java
public SyllabusMainUI() { setSizeFull();/*from w w w .j av a 2 s. c o m*/ setMargin(true); setSpacing(true); Button addNew = new Button("ADD NEW SYLLABUS"); addNew.setWidth("220px"); addNew.setIcon(FontAwesome.OPENID); addNew.addStyleName(ValoTheme.BUTTON_LINK); addNew.addStyleName(ValoTheme.BUTTON_SMALL); addNew.addClickListener(buttonClickListener); addComponent(addNew); addComponent(dataGridPanel()); }
From source file:com.etest.view.testbank.CellCaseMainUI.java
HorizontalLayout getHlayout() {
HorizontalLayout hlayout = new HorizontalLayout();
hlayout.setSpacing(true);/* w ww . j av a 2s. c o m*/
subject.setWidth("200px");
subject.addValueChangeListener((new CurriculumPropertyChangeListener(topic)));
hlayout.addComponent(subject);
hlayout.setComponentAlignment(subject, Alignment.MIDDLE_LEFT);
topic.setInputPrompt("Select a Topic..");
topic.addStyleName(ValoTheme.COMBOBOX_SMALL);
topic.setWidth("500px");
topic.addValueChangeListener((Property.ValueChangeEvent event) -> {
if (event.getProperty().getValue() == null) {
} else {
syllabusId = (int) event.getProperty().getValue();
populateDataTable();
}
});
hlayout.addComponent(topic);
hlayout.setComponentAlignment(topic, Alignment.MIDDLE_LEFT);
Button createCellBtn = new Button("CREATE");
createCellBtn.setWidthUndefined();
createCellBtn.setIcon(FontAwesome.OPENID);
createCellBtn.addStyleName(ValoTheme.BUTTON_PRIMARY);
createCellBtn.addStyleName(ValoTheme.BUTTON_SMALL);
createCellBtn.addClickListener((Button.ClickEvent event) -> {
Window sub = new CellCaseWindow(0);
if (sub.getParent() == null) {
UI.getCurrent().addWindow(sub);
}
sub.addCloseListener((Window.CloseEvent e) -> {
populateDataTable();
});
});
hlayout.addComponent(createCellBtn);
hlayout.setComponentAlignment(createCellBtn, Alignment.MIDDLE_LEFT);
return hlayout;
}
From source file:com.save.client.promodeals.PromoUI.java
public PromoUI(int clientId) { this.clientId = clientId; setWidth("90%"); setHeight("100%"); setMargin(new MarginInfo(true, true, false, false)); PDDataGridProperties dataGrid = new PDDataGridProperties(getClientId()); Button button = new Button("Acknowledgement Form"); button.setWidthUndefined();/*from w w w .j a v a 2 s.c o m*/ button.setIcon(FontAwesome.OPENID); button.addStyleName(ValoTheme.BUTTON_LINK); button.addStyleName(ValoTheme.BUTTON_SMALL); button.addClickListener((Button.ClickEvent event) -> { Window sub = new com.save.clients.AcknowledgementPromoForm(getClientId()); if (sub.getParent() == null) { UI.getCurrent().addWindow(sub); } sub.addCloseListener((Window.CloseEvent e) -> { dataGrid.getContainerDataSource().removeAllItems(); dataGrid.setContainerDataSource(new PDDataContainer(getClientId())); }); }); addComponent(button); setComponentAlignment(button, Alignment.TOP_RIGHT); addComponent(dataGrid); setExpandRatio(dataGrid, 2); }
From source file:com.save.employee.maintenance.MRUI.java
public MRUI(int employeeId) { this.employeeId = employeeId; setWidth("90%"); setHeight("100%"); setMargin(new MarginInfo(true, false, false, false)); MRDataGridProperties dataGrid = new MRDataGridProperties(getEmployeeId()); Button mrForm = new Button("Maintenance/Reimbursement Form"); mrForm.setWidthUndefined();//from www.jav a 2 s . c o m mrForm.setIcon(FontAwesome.OPENID); mrForm.addStyleName(ValoTheme.BUTTON_SMALL); mrForm.addStyleName(ValoTheme.BUTTON_LINK); mrForm.addClickListener((Button.ClickEvent event) -> { Window sub = new MRFormWindow(getEmployeeId()); if (sub.getParent() == null) { UI.getCurrent().addWindow(sub); } sub.addCloseListener((Window.CloseEvent e) -> { dataGrid.getContainerDataSource().removeAllItems(); dataGrid.setContainerDataSource(new MRDataContainer(getEmployeeId())); }); }); addComponent(mrForm); setComponentAlignment(mrForm, Alignment.MIDDLE_RIGHT); addComponent(dataGrid); setExpandRatio(dataGrid, 2); }
From source file:com.save.employee.request.RLUI.java
public RLUI(int employeeId) { this.employeeId = employeeId; setWidth("90%"); setHeight("100%"); setMargin(new MarginInfo(true, false, false, false)); RLDataGridProperties dataGrid = new RLDataGridProperties(getEmployeeId()); Button rlForm = new Button("Request/Liquidation FORM"); rlForm.setIcon(FontAwesome.OPENID); rlForm.addStyleName(ValoTheme.BUTTON_SMALL); rlForm.addStyleName(ValoTheme.BUTTON_LINK); rlForm.addClickListener((Button.ClickEvent event) -> { Window sub = new RequestFormWindow(getEmployeeId(), 0, false, dataGrid); if (sub.getParent() == null) { UI.getCurrent().addWindow(sub); }// w w w . ja v a 2 s . c o m sub.addCloseListener((Window.CloseEvent e) -> { dataGrid.getContainerDataSource().removeAllItems(); dataGrid.setContainerDataSource(new RLDataContainer(getEmployeeId())); }); }); addComponent(rlForm); setComponentAlignment(rlForm, Alignment.MIDDLE_RIGHT); addComponent(dataGrid); setExpandRatio(dataGrid, 2); }