List of usage examples for com.vaadin.ui.themes ValoTheme LABEL_LIGHT
String LABEL_LIGHT
To view the source code for com.vaadin.ui.themes ValoTheme LABEL_LIGHT.
Click Source Link
From source file:by.bigvova.ui.LoginUI.java
License:Apache License
private Component buildLabels() { CssLayout labels = new CssLayout(); labels.addStyleName("labels"); Label welcome = new Label("Welcome"); welcome.setSizeUndefined();//from w w w . j a va 2s .c o m welcome.addStyleName(ValoTheme.LABEL_H4); welcome.addStyleName(ValoTheme.LABEL_COLORED); labels.addComponent(welcome); Label title = new Label("QuickTickets Dashboard"); title.setSizeUndefined(); title.addStyleName(ValoTheme.LABEL_H3); title.addStyleName(ValoTheme.LABEL_LIGHT); labels.addComponent(title); return labels; }
From source file:com.antonjohansson.managementcenter.core.web.welcome.WelcomeView.java
License:Apache License
private Component getHeader() { Label title = new Label("Management Center"); title.setSizeUndefined();/*from w ww .ja v a 2s .co m*/ title.addStyleName(ValoTheme.LABEL_H3); title.addStyleName(ValoTheme.LABEL_LIGHT); return title; }
From source file:com.example.bbs.vaadin.view.Labels.java
License:Apache License
public Labels() { setMargin(true);/*from w w w.ja v a 2s .com*/ addStyleName("content-labels"); Label h1 = new Label("Labels"); h1.addStyleName(ValoTheme.LABEL_H1); addComponent(h1); HorizontalLayout split = new HorizontalLayout(); split.setWidth("100%"); addComponent(split); VerticalLayout left = new VerticalLayout(); left.setMargin(new MarginInfo(false, true, false, false)); split.addComponent(left); Label huge = new Label("Huge type for display text."); huge.addStyleName(ValoTheme.LABEL_HUGE); left.addComponent(huge); Label large = new Label( "Large type for introductory text. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu."); large.addStyleName(ValoTheme.LABEL_LARGE); left.addComponent(large); Label h2 = new Label("Subtitle"); h2.addStyleName(ValoTheme.LABEL_H2); left.addComponent(h2); Label normal = new Label( "Normal type for plain text, with a <a href=\"https://vaadin.com\">regular link</a>. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu.", ContentMode.HTML); left.addComponent(normal); Label h3 = new Label("Small Title"); h3.addStyleName(ValoTheme.LABEL_H3); left.addComponent(h3); Label small = new Label( "Small type for additional text. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu."); small.addStyleName(ValoTheme.LABEL_SMALL); left.addComponent(small); Label tiny = new Label("Tiny type for minor text."); tiny.addStyleName(ValoTheme.LABEL_TINY); left.addComponent(tiny); Label h4 = new Label("Section Title"); h4.addStyleName(ValoTheme.LABEL_H4); left.addComponent(h4); normal = new Label( "Normal type for plain text. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu."); left.addComponent(normal); Panel p = new Panel("Additional Label Styles"); split.addComponent(p); VerticalLayout right = new VerticalLayout(); right.setSpacing(true); right.setMargin(true); p.setContent(right); Label label = new Label( "Bold type for prominent text. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu."); label.addStyleName(ValoTheme.LABEL_BOLD); right.addComponent(label); label = new Label( "Light type for subtle text. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu."); label.addStyleName(ValoTheme.LABEL_LIGHT); right.addComponent(label); label = new Label( "Colored type for highlighted text. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu."); label.addStyleName(ValoTheme.LABEL_COLORED); right.addComponent(label); label = new Label("A label for success"); label.addStyleName(ValoTheme.LABEL_SUCCESS); right.addComponent(label); label = new Label("A label for failure"); label.addStyleName(ValoTheme.LABEL_FAILURE); right.addComponent(label); }
From source file:com.hybridbpm.ui.view.LoginView.java
License:Apache License
private void buildLoginForm() { Responsive.makeResponsive(loginPanel); loginPanel.setSizeUndefined();//from w w w .ja va 2s . co m loginPanel.setSpacing(true); loginPanel.addStyleName("login-panel"); labels.addStyleName("labels"); welcome.setSizeUndefined(); welcome.addStyleName(ValoTheme.LABEL_H4); welcome.addStyleName(ValoTheme.LABEL_LIGHT); title.setSizeUndefined(); title.addStyleName(ValoTheme.LABEL_H3); title.addStyleName(ValoTheme.LABEL_COLORED); fields.setSpacing(true); fields.addStyleName("fields"); username.setIcon(FontAwesome.USER); username.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON); username.setNullRepresentation(""); password.setIcon(FontAwesome.LOCK); password.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON); signin.addStyleName(ValoTheme.BUTTON_PRIMARY); signin.setClickShortcut(ShortcutAction.KeyCode.ENTER); signin.focus(); fields.setComponentAlignment(signin, Alignment.BOTTOM_LEFT); signin.addClickListener((Button.ClickEvent event) -> { HybridbpmUI.getCurrent().login(username.getValue(), password.getValue(), rememberMe.getValue()); }); }
From source file:com.wintindustries.pfserver.interfaces.view.dashboard.EmptyView.java
public EmptyView() { setSizeFull();//ww w . ja va2 s . com Label label = new Label("Nothing Selected"); addComponent(label); setComponentAlignment(label, Alignment.MIDDLE_CENTER); label.setSizeUndefined(); label.addStyleName(ValoTheme.LABEL_H1); label.addStyleName(ValoTheme.LABEL_LIGHT); }
From source file:com.wintindustries.pfserver.interfaces.view.dashboard.LoadingView.java
public LoadingView() { setSizeFull();/*from w w w .j a v a2 s. com*/ VerticalLayout center = new VerticalLayout(); this.addComponent(center); this.setComponentAlignment(center, Alignment.MIDDLE_CENTER); center.setHeight("180px"); HorizontalLayout info = new HorizontalLayout(); Label title = new Label("PFServer Dashboard"); title.setSizeUndefined(); title.addStyleName(ValoTheme.LABEL_H4); title.addStyleName(ValoTheme.LABEL_COLORED); // center.addComponent(title); // center.setComponentAlignment(title, Alignment.BOTTOM_CENTER); Label loading = new Label("Initalizing"); loading.addStyleName(ValoTheme.LABEL_H1); loading.addStyleName(ValoTheme.LABEL_LIGHT); info.addComponent(loading); info.addComponent(title); info.setComponentAlignment(title, Alignment.MIDDLE_RIGHT); center.addComponent(info); info.setComponentAlignment(loading, Alignment.MIDDLE_LEFT); loading.setWidth("160px"); center.setComponentAlignment(info, Alignment.MIDDLE_CENTER); // center.addComponent(loading); // center.setComponentAlignment(loading, Alignment.TOP_CENTER); ProgressBar indeterminate = new ProgressBar(); indeterminate.setIndeterminate(true); center.addComponent(indeterminate); center.setComponentAlignment(indeterminate, Alignment.TOP_CENTER); }
From source file:com.wintindustries.pfserver.interfaces.view.dashboard.LoginView.java
private Component buildLabels() { CssLayout labels = new CssLayout(); labels.addStyleName("labels"); Label welcome = new Label("Welcome"); welcome.setSizeUndefined();//from w w w .j av a2s . c o m welcome.addStyleName(ValoTheme.LABEL_H4); welcome.addStyleName(ValoTheme.LABEL_COLORED); labels.addComponent(welcome); Label title = new Label("PFServer Dashboard"); title.setSizeUndefined(); title.addStyleName(ValoTheme.LABEL_H3); title.addStyleName(ValoTheme.LABEL_LIGHT); labels.addComponent(title); return labels; }
From source file:de.fatalix.bookery.view.common.BookDetailLayout.java
License:Open Source License
@PostConstruct private void postInit() { addStyleName("product-form-wrapper"); addStyleName("product-form"); titleLabel = new Label("Title - Author"); titleLabel.addStyleName(ValoTheme.LABEL_COLORED); titleLabel.addStyleName(ValoTheme.LABEL_BOLD); descriptionLabel = new Label("Description", ContentMode.HTML); descriptionLabel.addStyleName(ValoTheme.LABEL_LIGHT); descriptionLabel.setValue("Keine Beschreibung vorhanden"); cancelButton = new Button("close", new Button.ClickListener() { @Override/*w w w .j a v a 2 s .c o m*/ public void buttonClick(Button.ClickEvent event) { setLayoutVisible(false); } }); cancelButton.setClickShortcut(ShortcutAction.KeyCode.ESCAPE); cancelButton.addStyleName(ValoTheme.BUTTON_DANGER); VerticalLayout rootLayout = new VerticalLayout(titleLabel, createImageLayout(), descriptionLabel, cancelButton); rootLayout.setSpacing(true); addComponent(rootLayout); }
From source file:de.uni_tuebingen.qbic.qbicmainportlet.QbicmainportletUI.java
License:Open Source License
/** * starts the querying of openbis and initializing the view * /*from w w w .j av a 2s. c o m*/ * @param request */ protected void initProgressBarAndThreading(VaadinRequest request) { final VerticalLayout layout = new VerticalLayout(); this.setContent(layout); // TODO so this function uses the same error as above, but doesn't call // OpenbisConnectionErrorLayout...we might want to change that final Label status = new Label("Connecting to database."); status.addStyleName(ValoTheme.LABEL_HUGE); status.addStyleName(ValoTheme.LABEL_LIGHT); layout.addComponent(status); layout.setComponentAlignment(status, Alignment.MIDDLE_RIGHT); try { buildMainLayout(datahandler, request, LiferayAndVaadinUtils.getUser().getScreenName()); } catch (Exception e) { if (datahandler.getOpenBisClient().loggedin()) { LOGGER.error("User not known?", e); buildUserUnknownError(request); } else { LOGGER.error("exception thrown during initialization.", e); status.setValue( "An error occured, while trying to connect to the database. Please try again later, or contact your project manager."); } } }
From source file:fi.semantum.strategia.Updates.java
License:Open Source License
public static void updateTags(final Main main) { final Database database = main.getDatabase(); main.tags.removeAllComponents();/*from w w w .j a v a 2 s. c o m*/ main.tags.setMargin(true); ArrayList<Tag> sorted = new ArrayList<Tag>(Tag.enumerate(database)); Collections.sort(sorted, new Comparator<Tag>() { @Override public int compare(Tag arg0, Tag arg1) { return arg0.getId(database).compareTo(arg1.getId(database)); } }); for (final Tag t : sorted) { final HorizontalLayout hl = new HorizontalLayout(); hl.setSpacing(true); Label l = new Label(t.getId(database)); l.setSizeUndefined(); l.addStyleName(ValoTheme.LABEL_HUGE); hl.addComponent(l); hl.setComponentAlignment(l, Alignment.BOTTOM_LEFT); final Image select = new Image("", new ThemeResource("cursor.png")); select.setHeight("24px"); select.setWidth("24px"); select.setDescription("Valitse"); select.addClickListener(new MouseEvents.ClickListener() { private static final long serialVersionUID = 3734678948272593793L; @Override public void click(com.vaadin.event.MouseEvents.ClickEvent event) { main.setCurrentItem(t, main.getUIState().currentPosition); Utils.loseFocus(select); } }); hl.addComponent(select); hl.setComponentAlignment(select, Alignment.BOTTOM_LEFT); final Image edit = new Image("", new ThemeResource("table_edit.png")); edit.setHeight("24px"); edit.setWidth("24px"); edit.setDescription("Muokkaa"); edit.addClickListener(new MouseEvents.ClickListener() { private static final long serialVersionUID = -3792353723974454702L; @Override public void click(com.vaadin.event.MouseEvents.ClickEvent event) { Utils.editTextAndId(main, "Muokkaa aihetunnistetta", t); updateTags(main); } }); hl.addComponent(edit); hl.setComponentAlignment(edit, Alignment.BOTTOM_LEFT); main.tags.addComponent(hl); main.tags.setComponentAlignment(hl, Alignment.MIDDLE_CENTER); Label l2 = new Label(t.getText(database)); l2.addStyleName(ValoTheme.LABEL_LIGHT); l2.setSizeUndefined(); main.tags.addComponent(l2); main.tags.setComponentAlignment(l2, Alignment.MIDDLE_CENTER); } }