Java Code Examples for com.google.gwt.user.client.ui.Label#setStylePrimaryName()
The following examples show how to use
com.google.gwt.user.client.ui.Label#setStylePrimaryName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MockForm.java From appinventor-extensions with Apache License 2.0 | 6 votes |
TitleBar() { title = new Label(); title.setStylePrimaryName("ode-SimpleMockFormTitle"); title.setHorizontalAlignment(Label.ALIGN_LEFT); menuButton = new Button(); menuButton.setText("\u22ee"); menuButton.setStylePrimaryName("ode-SimpleMockFormMenuButton"); bar = new AbsolutePanel(); bar.add(title); bar.add(menuButton); initWidget(bar); setStylePrimaryName("ode-SimpleMockFormTitleBar"); setSize("100%", TITLEBAR_HEIGHT + "px"); }
Example 2
Source File: SimpleDayToolbar.java From calendar-component with Apache License 2.0 | 5 votes |
public void setDayNames(String[] dayNames) { clear(); addBackButton(); for (String dayName : dayNames) { Label l = new Label(dayName); l.setStylePrimaryName("v-calendar-header-day"); add(l); } addNextButton(); updateCellWidth(); }