|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.ui.themes.ValoTheme
public class ValoTheme
Additional style names which can be used with the Valo theme.
These styles are only available if the
$v-included-additional-styles
Sass list variable contains the
name of the component for that additional style name (e.g.
button, textfield, table
).
Most of these additional style names can be included individually into your custom theme using the component specific Sass mixins, in which case you can also define the style names yourself. See the Valo theme Sass API documentation for additional information.
TODO link to Sass API documentation
Field Summary | |
---|---|
static java.lang.String |
ACCORDION_BORDERLESS
Remove the outer border from the accordion. |
static java.lang.String |
BUTTON_BORDERLESS
Borderless button. |
static java.lang.String |
BUTTON_BORDERLESS_COLORED
Borderless button with a colored caption text. |
static java.lang.String |
BUTTON_DANGER
A prominent button that can be used when the action is considered unsafe for the user (i.e. |
static java.lang.String |
BUTTON_FRIENDLY
A prominent button that can be used instead of the BUTTON_PRIMARY for primary actions when the action is considered
safe for the user (i.e. |
static java.lang.String |
BUTTON_HUGE
Huge size button. |
static java.lang.String |
BUTTON_ICON_ALIGN_RIGHT
Align the icon to the right side of the button caption. |
static java.lang.String |
BUTTON_ICON_ALIGN_TOP
Stack the icon on top of the button caption. |
static java.lang.String |
BUTTON_ICON_ONLY
Only show the icon in the button, and size the button to a square shape. |
static java.lang.String |
BUTTON_LARGE
Large size button. |
static java.lang.String |
BUTTON_LINK
Makes the button look like the Link component. |
static java.lang.String |
BUTTON_PRIMARY
Primary action button (e.g. |
static java.lang.String |
BUTTON_QUIET
"Quiet" button, which looks like BUTTON_BORDERLESS until you
hover over it with the mouse. |
static java.lang.String |
BUTTON_SMALL
Small size button. |
static java.lang.String |
BUTTON_TINY
Tiny size button. |
static java.lang.String |
CHECKBOX_LARGE
Large size check box. |
static java.lang.String |
CHECKBOX_SMALL
Small size check box. |
static java.lang.String |
COMBOBOX_ALIGN_CENTER
Align the text inside the combo box to center. |
static java.lang.String |
COMBOBOX_ALIGN_RIGHT
Align the text inside the combo box to the right. |
static java.lang.String |
COMBOBOX_BORDERLESS
Removes the border and background from the combo box. |
static java.lang.String |
COMBOBOX_HUGE
Huge size combo box. |
static java.lang.String |
COMBOBOX_LARGE
Large size combo box. |
static java.lang.String |
COMBOBOX_SMALL
Small size combo box. |
static java.lang.String |
COMBOBOX_TINY
Tiny size combo box. |
static java.lang.String |
DATEFIELD_ALIGN_CENTER
Align the text inside the field to center. |
static java.lang.String |
DATEFIELD_ALIGN_RIGHT
Align the text inside the field to the right. |
static java.lang.String |
DATEFIELD_BORDERLESS
Removes the border and background from the date field. |
static java.lang.String |
DATEFIELD_HUGE
Huge size date field. |
static java.lang.String |
DATEFIELD_LARGE
Large size date field. |
static java.lang.String |
DATEFIELD_SMALL
Small size date field. |
static java.lang.String |
DATEFIELD_TINY
Tiny size date field. |
static java.lang.String |
DRAG_AND_DROP_WRAPPER_NO_BOX_DRAG_HINTS
Hide the "box drag hints" (i.e. |
static java.lang.String |
DRAG_AND_DROP_WRAPPER_NO_HORIZONTAL_DRAG_HINTS
Hide the "horizontal drag hints" (i.e. |
static java.lang.String |
DRAG_AND_DROP_WRAPPER_NO_VERTICAL_DRAG_HINTS
Hide the "vertical drag hints" (i.e. |
static java.lang.String |
FORMLAYOUT_LIGHT
Removes the borders and background from any direct child field components (TextField, TextArea, DateField, ComboBox) in the layout. |
static java.lang.String |
LABEL_BOLD
Bolder font weight. |
static java.lang.String |
LABEL_COLORED
Colored text. |
static java.lang.String |
LABEL_FAILURE
Failure badge style. |
static java.lang.String |
LABEL_H1
Header style for main application headings. |
static java.lang.String |
LABEL_H2
Header style for different sections in the application. |
static java.lang.String |
LABEL_H3
Header style for different sub-sections in the application. |
static java.lang.String |
LABEL_H4
Header style for different sub-sections in the application. |
static java.lang.String |
LABEL_HUGE
Huge font size. |
static java.lang.String |
LABEL_LARGE
Large font size. |
static java.lang.String |
LABEL_LIGHT
Lighter font weight. |
static java.lang.String |
LABEL_NO_MARGIN
A utility style that can be combined with the LABEL_H1 ,
LABEL_H2 , LABEL_H3 and LABEL_H4 styles to
remove the default margins from the header. |
static java.lang.String |
LABEL_SMALL
Small font size. |
static java.lang.String |
LABEL_SPINNER
Spinner style. |
static java.lang.String |
LABEL_SUCCESS
Success badge style. |
static java.lang.String |
LABEL_TINY
Tiny font size. |
static java.lang.String |
LAYOUT_CARD
Make a layout look like the Panel component (resembles visually a card). |
static java.lang.String |
LAYOUT_COMPONENT_GROUP
Add this style name to a CssLayout to create a grouped set of components, i.e. |
static java.lang.String |
LAYOUT_HORIZONTAL_WRAPPING
Make a HorizontalLayout wrap contained components to a new line when the isn't enough space. |
static java.lang.String |
LAYOUT_WELL
Make a layout look like the PANEL_WELL style. |
static java.lang.String |
LINK_LARGE
Large size link. |
static java.lang.String |
LINK_SMALL
Small size link. |
static java.lang.String |
MENU_BADGE
Add a SPAN element with this style name inside a MENU_SUBTITLE
or MENU_ITEM to add an additional badge indicator to the
subtitle/item. |
static java.lang.String |
MENU_ITEM
Set the primary style name of a Button to this style name to create a clickable menu item in the menu. |
static java.lang.String |
MENU_LOGO
Set the primary style name of a Label or a Button to this style name to create an application logo. |
static java.lang.String |
MENU_PART
Add this style name to any layout and place it inside a layout with the MENU_ROOT style to build a menu component. |
static java.lang.String |
MENU_PART_LARGE_ICONS
Add this style name to any layout with the MENU_PART style name
to make any menu items inside the menu emphasize the icons more than the
captions. |
static java.lang.String |
MENU_ROOT
Set the primary style name of a CssLayout to this, and add any number of layouts with the MENU_PART style inside it. |
static java.lang.String |
MENU_SUBTITLE
Set the primary style name of a Label or a Button to this style name to create a section divider in a menu. |
static java.lang.String |
MENU_TITLE
Add this style name to any layout to make a header area for a menu (intended to be placed in side a MENU_PART layout). |
static java.lang.String |
MENUBAR_BORDERLESS
Borderless menu bar. |
static java.lang.String |
MENUBAR_SMALL
Small size menu bar. |
static java.lang.String |
NOTIFICATION_BAR
Styles the notification to span the entire width of the viewport. |
static java.lang.String |
NOTIFICATION_CLOSABLE
Adds a close button to the notification to imply that the user must click on the notification to dismiss it. |
static java.lang.String |
NOTIFICATION_ERROR
Styles the notification to look like Notification.Type.ERROR_MESSAGE , without
setting the position and delay. |
static java.lang.String |
NOTIFICATION_FAILURE
Failure notification style. |
static java.lang.String |
NOTIFICATION_SMALL
Smaller padding and font size for the notification. |
static java.lang.String |
NOTIFICATION_SUCCESS
Success notification style. |
static java.lang.String |
NOTIFICATION_SYSTEM
Styles the notification to look like a system notification. |
static java.lang.String |
NOTIFICATION_TRAY
Styles the notification to look like Notification.Type.TRAY_NOTIFICATION ,
without setting the position and delay. |
static java.lang.String |
NOTIFICATION_WARNING
Styles the notification to look like Notification.Type.WARNING_MESSAGE ,
without setting the position and delay. |
static java.lang.String |
OPTIONGROUP_HORIZONTAL
Display the options horizontally in a row (by default the items are stacked vertically). |
static java.lang.String |
OPTIONGROUP_LARGE
Large size option group. |
static java.lang.String |
OPTIONGROUP_SMALL
Small size option group. |
static java.lang.String |
PANEL_BORDERLESS
Remove borders and the background color of the panel. |
static java.lang.String |
PANEL_SCROLL_INDICATOR
Show a divider between the panel caption and content when the content area is scrolled. |
static java.lang.String |
PANEL_WELL
Inset panel style. |
static java.lang.String |
PROGRESSBAR_POINT
Make the progress bar indicator appear as a dot which progresses over the progress bar track (instead of a growing bar). |
static java.lang.String |
SLIDER_NO_INDICATOR
Hide the indicator bar from the slider. |
static java.lang.String |
SPLITPANEL_LARGE
Make the split handle wider. |
static java.lang.String |
TABLE_BORDERLESS
Remove the outer border of the table. |
static java.lang.String |
TABLE_COMPACT
Reduce the white space inside the table cells. |
static java.lang.String |
TABLE_NO_HEADER
Hide the table column headers (effectively the same as Table.ColumnHeaderMode.HIDDEN ). |
static java.lang.String |
TABLE_NO_HORIZONTAL_LINES
Remove the horizontal divider lines between the table rows. |
static java.lang.String |
TABLE_NO_STRIPES
Remove the alternating row colors. |
static java.lang.String |
TABLE_NO_VERTICAL_LINES
Remove the vertical divider lines between the table columns. |
static java.lang.String |
TABLE_SMALL
Small font size and reduced the white space inside the table cells. |
static java.lang.String |
TABSHEET_CENTERED_TABS
Center the tabs inside the tab bar. |
static java.lang.String |
TABSHEET_COMPACT_TABBAR
Reduce the whitespace around the tabs in the tab bar. |
static java.lang.String |
TABSHEET_EQUAL_WIDTH_TABS
Give equal amount of space to all tabs in the tab bar (.i.e expand ratio == 1 for all tabs). |
static java.lang.String |
TABSHEET_FRAMED
Adds a border around the whole component as well as around individual tabs in the tab bar. |
static java.lang.String |
TABSHEET_ICONS_ON_TOP
Display tab icons on top of the tab captions (by default the icons are place on the left side of the caption). |
static java.lang.String |
TABSHEET_ONLY_SELECTED_TAB_IS_CLOSABLE
Only the selected tab has the close button visible. |
static java.lang.String |
TABSHEET_PADDED_TABBAR
Add a small amount of padding around the tabs in the tab bar, so that they don't touch the outer edges of the component. |
static java.lang.String |
TEXTAREA_ALIGN_CENTER
Align the text inside the area to center. |
static java.lang.String |
TEXTAREA_ALIGN_RIGHT
Align the text inside the area to the right. |
static java.lang.String |
TEXTAREA_BORDERLESS
Removes the border and background from the text area. |
static java.lang.String |
TEXTAREA_HUGE
Huge size text area. |
static java.lang.String |
TEXTAREA_LARGE
Large size text area. |
static java.lang.String |
TEXTAREA_SMALL
Small size text area. |
static java.lang.String |
TEXTAREA_TINY
Tiny size text area. |
static java.lang.String |
TEXTFIELD_ALIGN_CENTER
Align the text inside the field to center. |
static java.lang.String |
TEXTFIELD_ALIGN_RIGHT
Align the text inside the field to the right. |
static java.lang.String |
TEXTFIELD_BORDERLESS
Removes the border and background from the text field. |
static java.lang.String |
TEXTFIELD_HUGE
Huge size text field. |
static java.lang.String |
TEXTFIELD_INLINE_ICON
Move the default caption icon inside the text field. |
static java.lang.String |
TEXTFIELD_LARGE
Large size text field. |
static java.lang.String |
TEXTFIELD_SMALL
Small size text field. |
static java.lang.String |
TEXTFIELD_TINY
Tiny size text field. |
static java.lang.String |
THEME_NAME
|
static java.lang.String |
TREETABLE_BORDERLESS
See TABLE_BORDERLESS |
static java.lang.String |
TREETABLE_COMPACT
See TABLE_COMPACT |
static java.lang.String |
TREETABLE_NO_HEADER
See TABLE_NO_HEADER |
static java.lang.String |
TREETABLE_NO_HORIZONTAL_LINES
See TABLE_NO_HORIZONTAL_LINES |
static java.lang.String |
TREETABLE_NO_STRIPES
See TABLE_NO_STRIPES |
static java.lang.String |
TREETABLE_NO_VERTICAL_LINES
See TABLE_NO_VERTICAL_LINES |
static java.lang.String |
TREETABLE_SMALL
See TABLE_SMALL |
static java.lang.String |
UI_WITH_MENU
When you use the Valo menu and wish to enable responsive features of the menu, you need to add this style name to the UI containing the menu. |
static java.lang.String |
WINDOW_BOTTOM_TOOLBAR
Add this style to any layout component (e.g. |
static java.lang.String |
WINDOW_TOP_TOOLBAR
Add this style to any layout component (e.g. |
Constructor Summary | |
---|---|
ValoTheme()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String THEME_NAME
public static final java.lang.String NOTIFICATION_TRAY
Notification.Type.TRAY_NOTIFICATION
,
without setting the position and delay. Can be combined with any other
Notification style.
public static final java.lang.String NOTIFICATION_WARNING
Notification.Type.WARNING_MESSAGE
,
without setting the position and delay. Can be combined with any other
Notification style.
public static final java.lang.String NOTIFICATION_ERROR
Notification.Type.ERROR_MESSAGE
, without
setting the position and delay. Can be combined with any other
Notification style.
public static final java.lang.String NOTIFICATION_SYSTEM
public static final java.lang.String NOTIFICATION_BAR
public static final java.lang.String NOTIFICATION_SMALL
public static final java.lang.String NOTIFICATION_CLOSABLE
-1
). Can be combined with any other Notification
style.
public static final java.lang.String NOTIFICATION_SUCCESS
public static final java.lang.String NOTIFICATION_FAILURE
public static final java.lang.String LABEL_H1
public static final java.lang.String LABEL_H2
public static final java.lang.String LABEL_H3
public static final java.lang.String LABEL_H4
public static final java.lang.String LABEL_NO_MARGIN
LABEL_H1
,
LABEL_H2
, LABEL_H3
and LABEL_H4
styles to
remove the default margins from the header.
public static final java.lang.String LABEL_TINY
public static final java.lang.String LABEL_SMALL
public static final java.lang.String LABEL_LARGE
public static final java.lang.String LABEL_HUGE
public static final java.lang.String LABEL_LIGHT
public static final java.lang.String LABEL_BOLD
public static final java.lang.String LABEL_COLORED
public static final java.lang.String LABEL_SUCCESS
public static final java.lang.String LABEL_FAILURE
public static final java.lang.String LABEL_SPINNER
Label spinner = new Label(); spinner.addStyleName(ValoTheme.LABEL_SPINNER);
public static final java.lang.String BUTTON_PRIMARY
enter
key in a form). Use sparingly, only
one default button per view should be visible. Can be combined with any
other Button style.
public static final java.lang.String BUTTON_FRIENDLY
BUTTON_PRIMARY
for primary actions when the action is considered
safe for the user (i.e. does not cause any data loss or any other
irreversible action). Can be combined with any other Button style.
public static final java.lang.String BUTTON_DANGER
public static final java.lang.String BUTTON_BORDERLESS
public static final java.lang.String BUTTON_BORDERLESS_COLORED
public static final java.lang.String BUTTON_QUIET
BUTTON_BORDERLESS
until you
hover over it with the mouse. Can be combined with any other Button
style.
public static final java.lang.String BUTTON_LINK
public static final java.lang.String BUTTON_TINY
public static final java.lang.String BUTTON_SMALL
public static final java.lang.String BUTTON_LARGE
public static final java.lang.String BUTTON_HUGE
public static final java.lang.String BUTTON_ICON_ALIGN_RIGHT
public static final java.lang.String BUTTON_ICON_ALIGN_TOP
public static final java.lang.String BUTTON_ICON_ONLY
public static final java.lang.String LINK_SMALL
public static final java.lang.String LINK_LARGE
public static final java.lang.String TEXTFIELD_TINY
public static final java.lang.String TEXTFIELD_SMALL
public static final java.lang.String TEXTFIELD_LARGE
public static final java.lang.String TEXTFIELD_HUGE
public static final java.lang.String TEXTFIELD_BORDERLESS
public static final java.lang.String TEXTFIELD_ALIGN_RIGHT
public static final java.lang.String TEXTFIELD_ALIGN_CENTER
public static final java.lang.String TEXTFIELD_INLINE_ICON
public static final java.lang.String TEXTAREA_TINY
public static final java.lang.String TEXTAREA_SMALL
public static final java.lang.String TEXTAREA_LARGE
public static final java.lang.String TEXTAREA_HUGE
public static final java.lang.String TEXTAREA_BORDERLESS
public static final java.lang.String TEXTAREA_ALIGN_RIGHT
public static final java.lang.String TEXTAREA_ALIGN_CENTER
public static final java.lang.String DATEFIELD_TINY
public static final java.lang.String DATEFIELD_SMALL
public static final java.lang.String DATEFIELD_LARGE
public static final java.lang.String DATEFIELD_HUGE
public static final java.lang.String DATEFIELD_BORDERLESS
public static final java.lang.String DATEFIELD_ALIGN_RIGHT
public static final java.lang.String DATEFIELD_ALIGN_CENTER
public static final java.lang.String COMBOBOX_TINY
public static final java.lang.String COMBOBOX_SMALL
public static final java.lang.String COMBOBOX_LARGE
public static final java.lang.String COMBOBOX_HUGE
public static final java.lang.String COMBOBOX_BORDERLESS
public static final java.lang.String COMBOBOX_ALIGN_RIGHT
public static final java.lang.String COMBOBOX_ALIGN_CENTER
public static final java.lang.String CHECKBOX_SMALL
public static final java.lang.String CHECKBOX_LARGE
public static final java.lang.String OPTIONGROUP_SMALL
public static final java.lang.String OPTIONGROUP_LARGE
public static final java.lang.String OPTIONGROUP_HORIZONTAL
public static final java.lang.String SLIDER_NO_INDICATOR
public static final java.lang.String PROGRESSBAR_POINT
public static final java.lang.String MENUBAR_SMALL
public static final java.lang.String MENUBAR_BORDERLESS
public static final java.lang.String TABLE_NO_STRIPES
public static final java.lang.String TREETABLE_NO_STRIPES
TABLE_NO_STRIPES
public static final java.lang.String TABLE_NO_VERTICAL_LINES
public static final java.lang.String TREETABLE_NO_VERTICAL_LINES
TABLE_NO_VERTICAL_LINES
public static final java.lang.String TABLE_NO_HORIZONTAL_LINES
public static final java.lang.String TREETABLE_NO_HORIZONTAL_LINES
TABLE_NO_HORIZONTAL_LINES
public static final java.lang.String TABLE_NO_HEADER
Table.ColumnHeaderMode.HIDDEN
). Can be combined with any other
Table/TreeTable style.
public static final java.lang.String TREETABLE_NO_HEADER
TABLE_NO_HEADER
public static final java.lang.String TABLE_BORDERLESS
public static final java.lang.String TREETABLE_BORDERLESS
TABLE_BORDERLESS
public static final java.lang.String TABLE_COMPACT
public static final java.lang.String TREETABLE_COMPACT
TABLE_COMPACT
public static final java.lang.String TABLE_SMALL
public static final java.lang.String TREETABLE_SMALL
TABLE_SMALL
public static final java.lang.String DRAG_AND_DROP_WRAPPER_NO_BOX_DRAG_HINTS
public static final java.lang.String DRAG_AND_DROP_WRAPPER_NO_VERTICAL_DRAG_HINTS
public static final java.lang.String DRAG_AND_DROP_WRAPPER_NO_HORIZONTAL_DRAG_HINTS
public static final java.lang.String PANEL_BORDERLESS
public static final java.lang.String PANEL_SCROLL_INDICATOR
PANEL_BORDERLESS
style. Can
be combined with any other Panel style.
public static final java.lang.String PANEL_WELL
public static final java.lang.String SPLITPANEL_LARGE
public static final java.lang.String TABSHEET_FRAMED
public static final java.lang.String TABSHEET_CENTERED_TABS
public static final java.lang.String TABSHEET_EQUAL_WIDTH_TABS
public static final java.lang.String TABSHEET_PADDED_TABBAR
public static final java.lang.String TABSHEET_COMPACT_TABBAR
public static final java.lang.String TABSHEET_ICONS_ON_TOP
public static final java.lang.String TABSHEET_ONLY_SELECTED_TAB_IS_CLOSABLE
public static final java.lang.String ACCORDION_BORDERLESS
public static final java.lang.String WINDOW_TOP_TOOLBAR
public static final java.lang.String WINDOW_BOTTOM_TOOLBAR
public static final java.lang.String FORMLAYOUT_LIGHT
public static final java.lang.String LAYOUT_CARD
v-panel-caption
style name to any layout
inside the card layout to make it look like a Panel's caption.
public static final java.lang.String LAYOUT_WELL
PANEL_WELL
style. Add an additional
v-panel-caption
style name to any layout inside the card
layout to make it look like a Panel's caption.
public static final java.lang.String LAYOUT_HORIZONTAL_WRAPPING
public static final java.lang.String LAYOUT_COMPONENT_GROUP
CssLayout group = new CssLayout(); group.addStyleName(ValoTheme.LAYOUT_COMPONENT_GROUP); TextField field = new TextField(); group.addComponent(field); Button button = new Button("Action"); group.addComponent(button);
public static final java.lang.String UI_WITH_MENU
When you use the Valo menu and wish to enable responsive features of the menu, you need to add this style name to the UI containing the menu.
You only need to add this style name to the UI containing a Valo menu, if you're using the Responsive extension with the UI.
To enable responsivity in the Valo menu, the following example code should be executed in your UI containing the menu.
Responsive.makeResponsive(this); addStyleName(ValoTheme.UI_WITH_MENU);
public static final java.lang.String MENU_ROOT
Set the primary style name of a CssLayout to this, and
add any number of layouts with the MENU_PART
style inside it.
The menu style is used to create a sidebar navigation menu for the
application, usually action as the main navigation for the different
sections of the application. It usually consists of at least a number of
MENU_ITEM
s, and possibly some MENU_SUBTITLE
s and a
MENU_TITLE
.
CssLayout menuArea = new CssLayout(); menuArea.setPrimaryStyleName(ValoTheme.MENU_ROOT);
public static final java.lang.String MENU_PART
MENU_ROOT
style to build a menu component. Use the additional
MENU styles for individual components inside the layout.
CssLayout menu = new CssLayout(); menu.addStyleName(ValoTheme.MENU_PART);
public static final java.lang.String MENU_PART_LARGE_ICONS
MENU_PART
style name
to make any menu items inside the menu emphasize the icons more than the
captions. Useful on narrower viewport widths, since the menu width is
decreased quite dramatically, making more space for the content of the
application.
CssLayout menu = new CssLayout(); menu.addStyleName(ValoTheme.MENU_PART); menu.addStyleName(ValoTheme.MENU_PART_LARGE_ICONS);
public static final java.lang.String MENU_TITLE
Add this style name to any layout to make a header area for a menu
(intended to be placed in side a MENU_PART
layout). You can add
any components inside it, but usually you would place a Label inside.
Any MenuBar component that you place inside this layout will match the style of the title, allowing an easy way to add a toolbar to the title layout.
public static final java.lang.String MENU_SUBTITLE
public static final java.lang.String MENU_ITEM
Set the primary style name of a Button to this style name to create a clickable menu item in the menu.
Add an additional style name selected
to it to make
it the selected item in the menu.
Button item = new Button(); item.setPrimaryStyleName(ValoTheme.MENU_ITEM); item.addStyleName("selected");
public static final java.lang.String MENU_BADGE
MENU_SUBTITLE
or MENU_ITEM
to add an additional badge indicator to the
subtitle/item. The Label/Button needs to allow HTML content in order to
use this style name.
Button item = new Button(); item.setPrimaryStyleName(ValoTheme.MENU_ITEM); item.setHtmlContentAllowed(true); item.setCaption("Item Caption <span class=\"" + ValoTheme.MENU_BADGE + "\">Badge text</span>");
Label item = new Label(); item.setPrimaryStyleName(ValoTheme.MENU_ITEM); item.setContentMode(ContentMode.HTML); item.setCaption("Item Caption <span class=\"" + ValoTheme.MENU_BADGE + "\">Badge text</span>");
public static final java.lang.String MENU_LOGO
Set the primary style name of a Label or a Button to this
style name to create an application logo. The logo is designed to be
placed inside a MENU_PART
layout.
The text content of the logo should be very short, since the logo area
only shows approximately three letters. Using one of the
FontAwesome
icons is a good way to quickly create a logo for your
application.
Label logo = new Label(FontAwesome.ROCKET.getHtml(), ContentMode.HTML); logo.setSizeUndefined(); logo.setPrimaryStyleName(ValoTheme.MENU_LOGO);
Constructor Detail |
---|
public ValoTheme()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |