Search in sources :

Example 1 with HelpButton

use of org.rstudio.core.client.widget.HelpButton in project rstudio by rstudio.

the class PreferencesDialogPaneBase method checkBoxWithHelp.

protected HorizontalPanel checkBoxWithHelp(CheckBox checkBox, String topic) {
    HorizontalPanel panel = new HorizontalPanel();
    panel.add(checkBox);
    HelpButton helpButton = new HelpButton(topic, false);
    Style helpStyle = helpButton.getElement().getStyle();
    helpStyle.setMarginTop(1, Unit.PX);
    helpStyle.setMarginLeft(6, Unit.PX);
    panel.add(helpButton);
    return panel;
}
Also used : HelpButton(org.rstudio.core.client.widget.HelpButton) HorizontalPanel(com.google.gwt.user.client.ui.HorizontalPanel) Style(com.google.gwt.dom.client.Style)

Aggregations

Style (com.google.gwt.dom.client.Style)1 HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)1 HelpButton (org.rstudio.core.client.widget.HelpButton)1