Example usage for com.vaadin.client.ui VButton CLASSNAME

List of usage examples for com.vaadin.client.ui VButton CLASSNAME

Introduction

In this page you can find the example usage for com.vaadin.client.ui VButton CLASSNAME.

Prototype

String CLASSNAME

To view the source code for com.vaadin.client.ui VButton CLASSNAME.

Click Source Link

Usage

From source file:org.eclipse.hawkbit.ui.customrenderers.client.renderers.GridButtonRenderer.java

License:Open Source License

private static void applyStyles(final Button button, final boolean buttonDisabled,
        final String additionalStyle) {

    button.setStyleName(VButton.CLASSNAME);
    button.addStyleName(getStyle("tiny"));
    button.addStyleName(getStyle("borderless"));
    button.addStyleName(getStyle("button-no-border"));
    button.addStyleName(getStyle("action-type-padding"));
    button.addStyleName(getStyle(additionalStyle));

    if (buttonDisabled) {
        button.addStyleName("v-disabled");
    }// w w  w  . j a v a2  s . c  o m
}

From source file:org.eclipse.hawkbit.ui.customrenderers.client.renderers.GridButtonRenderer.java

License:Open Source License

private static String getStyle(final String style) {
    return new StringBuilder(style).append(" ").append(VButton.CLASSNAME).append("-").append(style).toString();
}

From source file:org.eclipse.hawkbit.ui.customrenderers.client.renderers.HtmlButtonRenderer.java

License:Open Source License

private void applystyles(final Button button, final boolean buttonEnable) {

    button.setStyleName(VButton.CLASSNAME);
    button.addStyleName(getStyle("tiny"));
    button.addStyleName(getStyle("borderless-colored"));
    button.addStyleName(getStyle("button-no-border"));
    button.addStyleName(getStyle("action-type-padding"));

    if (buttonEnable) {
        return;/*w w w  .ja  va2s. c  o m*/
    }
    button.addStyleName("v-disabled");
}

From source file:org.eclipse.hawkbit.ui.customrenderers.client.renderers.HtmlButtonRenderer.java

License:Open Source License

private String getStyle(final String style) {
    return new StringBuilder(style).append(" ").append(VButton.CLASSNAME).append("-").append(style).toString();
}

From source file:org.eclipse.hawkbit.ui.customrenderers.client.renderers.RolloutRenderer.java

License:Open Source License

private void applystyle(VButton button) {
    button.setStyleName(VButton.CLASSNAME);
    button.addStyleName(getStyle("borderless"));
    button.addStyleName(getStyle("small"));
    button.addStyleName(getStyle("on-focus-no-border"));
    button.addStyleName(getStyle("link"));
}