com.google.gwt.dom.client.Style.FontWeight Java Examples

The following examples show how to use com.google.gwt.dom.client.Style.FontWeight. 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: CustomExtentDialog.java    From geowe-core with GNU General Public License v3.0 6 votes vote down vote up
private Widget createPanel() {
	
	VerticalLayoutContainer container = new VerticalLayoutContainer();
	container.setScrollMode(ScrollMode.AUTO);
	container.setSize("450px", "160px");
			
	Label bboxLabel = new Label("Bbox (" + UIMessages.INSTANCE.lowerLeftXField() + ", " + UIMessages.INSTANCE.lowerLeftYField() + 
			", " + UIMessages.INSTANCE.upperRightXField() + ", " + UIMessages.INSTANCE.upperRightYField() + ")");
	bboxLabel.getElement().getStyle().setFontWeight(FontWeight.BOLD);		
	container.add(bboxLabel);
	bboxField = new TextField();
	bboxField.setEmptyText(UIMessages.INSTANCE.bboxFieldCustomExtent());		
	bboxField.setWidth("450px");
	container.add(bboxField);	
	return container;
}
 
Example #2
Source File: MaterialWidget.java    From gwt-material with Apache License 2.0 4 votes vote down vote up
@Override
public void setFontWeight(FontWeight fontWeight) {
    getElement().getStyle().setFontWeight(fontWeight);
}
 
Example #3
Source File: MaterialWidget.java    From gwt-material with Apache License 2.0 4 votes vote down vote up
protected CssNameMixin<MaterialWidget, FontWeight> getFontWeightMixin() {
    if (fontWeightMixin == null) {
        fontWeightMixin = new CssNameMixin<>(this);
    }
    return fontWeightMixin;
}