Java Code Examples for com.google.gwt.dom.client.Style#Unit
The following examples show how to use
com.google.gwt.dom.client.Style#Unit .
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: StyleHelper.java From gwt-material with Apache License 2.0 | 5 votes |
public static Style.Unit getMeasurementUnit(String value) { if (value == null) { return null; } try { return Style.Unit.valueOf( value.replaceAll("[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?", "").toUpperCase()); } catch (IllegalArgumentException e) { // Silently catch invalid units return null; } }
Example 2
Source File: DefaultTabLayoutPanel.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public DefaultTabLayoutPanel(double barHeight, Style.Unit barUnit, boolean truncateTitles, boolean closeable) { super(barHeight, barUnit); this.closeable = closeable; this.tabs = new Tabs(this, truncateTitles); this.offPageContainer = new OffPageContainer(); this.prevSelectedIndex = -1; addStyleName(STYLE_NAME); getElement().setAttribute("role", "tablist"); }
Example 3
Source File: AbstractIconButton.java From gwt-material with Apache License 2.0 | 4 votes |
@Override public void setIconFontSize(double size, Style.Unit unit) { icon.setIconFontSize(size, unit); }
Example 4
Source File: FontSizeMixin.java From gwt-material with Apache License 2.0 | 4 votes |
public void setFontSize(double fontSize, Style.Unit unit) { uiObject.getElement().getStyle().setFontSize(fontSize, unit); }
Example 5
Source File: MaterialDatePicker.java From gwt-material with Apache License 2.0 | 4 votes |
@Override public void setIconFontSize(double size, Style.Unit unit) { icon.setIconFontSize(size, unit); }
Example 6
Source File: MaterialCardTitle.java From gwt-material with Apache License 2.0 | 4 votes |
@Override public void setIconFontSize(double size, Style.Unit unit) { icon.setIconFontSize(size, unit); }
Example 7
Source File: MaterialIcon.java From gwt-material with Apache License 2.0 | 4 votes |
@Override public void setIconFontSize(double size, Style.Unit unit) { getElement().getStyle().setFontSize(size, unit); }
Example 8
Source File: MaterialChip.java From gwt-material with Apache License 2.0 | 4 votes |
@Override public void setIconFontSize(double size, Style.Unit unit) { icon.setIconFontSize(size, unit); }
Example 9
Source File: MaterialValueBox.java From gwt-material with Apache License 2.0 | 4 votes |
@Override public void setIconFontSize(double size, Style.Unit unit) { icon.setIconFontSize(size, unit); }
Example 10
Source File: DateRangePicker.java From gwt-material-addins with Apache License 2.0 | 4 votes |
@Override public void setIconFontSize(double size, Style.Unit unit) { icon.setIconFontSize(size, unit); }
Example 11
Source File: MaterialTimePicker.java From gwt-material-addins with Apache License 2.0 | 4 votes |
@Override public void setIconFontSize(double size, Style.Unit unit) { icon.setIconFontSize(size, unit); }
Example 12
Source File: MaterialNote.java From gwt-material-addins with Apache License 2.0 | 4 votes |
@Override public void setIconFontSize(double v, Style.Unit unit) { icon.setIconFontSize(v, unit); }
Example 13
Source File: PlainColumnView.java From core with GNU Lesser General Public License v2.1 | 4 votes |
public PlainColumnView setWidth(int width, Style.Unit unit) { this.width = width; this.unit = unit; return this; }
Example 14
Source File: DefaultTabLayoutPanel.java From core with GNU Lesser General Public License v2.1 | 4 votes |
public DefaultTabLayoutPanel(double barHeight, Style.Unit barUnit) { this(barHeight, barUnit, false, false); }
Example 15
Source File: MaterialWidget.java From gwt-material with Apache License 2.0 | 4 votes |
@Override public void setFontSize(double fontSize, Style.Unit unit) { getFontSizeMixin().setFontSize(fontSize, unit); }
Example 16
Source File: HasIcon.java From gwt-material with Apache License 2.0 | 2 votes |
/** * Set the font size of the icon. */ void setIconFontSize(double size, Style.Unit unit);
Example 17
Source File: HasFontSize.java From gwt-material with Apache License 2.0 | votes |
void setFontSize(double fontSize, Style.Unit unit);