Java Code Examples for com.google.gwt.dom.client.Style.Unit

The following are Jave code examples for showing how to use Unit of the com.google.gwt.dom.client.Style class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: teiid-webui   File: SimpleTable.java   Source Code and License Vote up 5 votes
public void setColumnWidth( final Column<T, ?> column,
                            final double width,
                            final Style.Unit unit ) {
    dataGrid.setColumnWidth( column,
                             width,
                             unit );
}
 
Example 2
Project: teiid-webui   File: PagedTable.java   Source Code and License Vote up 5 votes
public void setColumnWidth( final Column<T, ?> column,
                            final double width,
                            final Style.Unit unit ) {
    dataGrid.setColumnWidth( column,
                             width,
                             unit );
}
 
Example 3
Project: gwt-material   File: StyleHelper.java   Source Code and License Vote up 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 4
Project: appformer   File: ArtifactListViewImpl.java   Source Code and License Vote up 5 votes
@Override
public void addColumn(final Column<JarListPageRow, ?> column,
                      final String caption,
                      final boolean visible,
                      final double width,
                      final Style.Unit unit) {
    dataGrid.addColumn(column,
                       caption,
                       visible);
    dataGrid.setColumnWidth(column,
                            width,
                            unit);
}
 
Example 5
Project: appformer   File: UberfireSimpleTable.java   Source Code and License Vote up 5 votes
public void setColumnWidth(final Column<T, ?> column,
                           final double width,
                           final Style.Unit unit) {
    dataGrid.setColumnWidth(column,
                            width,
                            unit);
    getColumnPicker().adjustColumnWidths();
}
 
Example 6
Project: appformer   File: ArtifactListViewImpl.java   Source Code and License Vote up 5 votes
@Override
public void addColumn(final Column<JarListPageRow, ?> column,
                      final String caption,
                      final double width,
                      final Style.Unit unit) {
    dataGrid.addColumn(column,
                       caption);
    dataGrid.setColumnWidth(column,
                            width,
                            unit);
}
 
Example 7
Project: gwt-material   File: MaterialWidget.java   Source Code and License Vote up 4 votes
@Override
public void setFontSize(double fontSize, Style.Unit unit) {
    getFontSizeMixin().setFontSize(fontSize, unit);
}
 
Example 8
Project: switchyard   File: PlainColumnView.java   Source Code and License Vote up 4 votes
public PlainColumnView setWidth(int width, Style.Unit unit) {
    this.width = width;
    this.unit = unit;
    return this;
}
 
Example 9
Project: gwt-material   File: AbstractIconButton.java   Source Code and License Vote up 4 votes
@Override
public void setIconFontSize(double size, Style.Unit unit) {
    icon.setIconFontSize(size, unit);
}
 
Example 10
Project: gwt-material   File: FontSizeMixin.java   Source Code and License Vote up 4 votes
public void setFontSize(double fontSize, Style.Unit unit) {
    uiObject.getElement().getStyle().setFontSize(fontSize, unit);
}
 
Example 11
Project: gwt-material   File: MaterialDatePicker.java   Source Code and License Vote up 4 votes
@Override
public void setIconFontSize(double size, Style.Unit unit) {
    icon.setIconFontSize(size, unit);
}
 
Example 12
Project: gwt-material   File: MaterialCardTitle.java   Source Code and License Vote up 4 votes
@Override
public void setIconFontSize(double size, Style.Unit unit) {
    icon.setIconFontSize(size, unit);
}
 
Example 13
Project: gwt-material   File: MaterialIcon.java   Source Code and License Vote up 4 votes
@Override
public void setIconFontSize(double size, Style.Unit unit) {
    getElement().getStyle().setFontSize(size, unit);
}
 
Example 14
Project: gwt-material   File: MaterialChip.java   Source Code and License Vote up 4 votes
@Override
public void setIconFontSize(double size, Style.Unit unit) {
    icon.setIconFontSize(size, unit);
}
 
Example 15
Project: gwt-material   File: MaterialValueBox.java   Source Code and License Vote up 4 votes
@Override
public void setIconFontSize(double size, Style.Unit unit) {
    icon.setIconFontSize(size, unit);
}
 
Example 16
Project: firefly   File: TabPane.java   Source Code and License Vote up 4 votes
public TabLayoutPanelPlus(int barHeight, Style.Unit unit) {
    super(barHeight, unit);
}
 
Example 17
Project: firefly   File: MiniPlotWidget.java   Source Code and License Vote up 4 votes
public HiddableLayoutPanel(Style.Unit unit) {
    super(unit);
}
 
Example 18
Project: appformer   File: ArtifactListView.java   Source Code and License Vote up 4 votes
void addColumn(final Column<JarListPageRow, ?> column,
final String caption,
final double width,
final Style.Unit unit);
 
Example 19
Project: appformer   File: ArtifactListView.java   Source Code and License Vote up 4 votes
void addColumn(final Column<JarListPageRow, ?> column,
final String caption,
final boolean visible,
final double width,
final Style.Unit unit);
 
Example 20
Project: gwt-material   File: HasIcon.java   Source Code and License Vote up 2 votes
/**
 * Set the font size of the icon.
 */
void setIconFontSize(double size, Style.Unit unit);