/** * Creates the tooltip with given title. Remember to set the content and widget as well. * * @param title title for the tooltip */ public Tooltip(final String title) { this(); setTitle(title); }
/** * Creates the tooltip with given title. Remember to set the content and widget as well. * * @param title title for the tooltip */ public Tooltip(final String title) { this(); setTitle(title); }
@Override public ValueBoxEditor.View<T> clearError() { contents.removeStyleName(STYLE_ERROR); errorTooltip.setTitle(""); return this; }
@Override public FileUploadEditor.View clearError() { mainPanel.removeStyleName(STYLE_ERROR); errorTooltip.setTitle(""); return this; } }
/** * Creates the tooltip around this widget with given title and content. * * @param w widget for the tooltip * @param title title for the tooltip */ public Tooltip(final Widget w, final String title) { this(); setWidget(w); setTitle(title); }
@Override public ValueBoxEditor.View<T> clearError() { contents.removeStyleName(STYLE_ERROR); errorTooltip.setTitle(""); return this; }
@Override public ToggleSwitchEditor.View clearError() { contents.removeStyleName(STYLE_ERROR); errorTooltip.setTitle(""); return this; }
@Override public ValueBoxEditor.View<T> showError(SafeHtml message) { contents.addStyleName(STYLE_ERROR); errorTooltip.setTitle(message.asString()); return this; }
@Override public ToggleSwitchEditor.View showError(final SafeHtml message) { contents.addStyleName(STYLE_ERROR); errorTooltip.setTitle(message.asString()); return this; }
@Override public ImageListEditorView<T> clearError() { errorTooltip.setTitle(""); errorPanel.removeStyleName(style.errorPanelWithError()); errorPanel.addStyleName(style.errorPanel()); return this; }
@Override public DropDownEditorView clearError() { errorTooltip.setTitle(""); errorPanel.removeStyleName(style.errorPanelWithError()); errorPanel.addStyleName(style.errorPanel()); return this; } }
@Override public ImageListEditorView<T> clearError() { errorTooltip.setTitle(""); errorPanel.removeStyleName(style.errorPanelWithError()); errorPanel.addStyleName(style.errorPanel()); return this; }
@Override public DropDownEditorView clearError() { errorTooltip.setTitle(""); errorPanel.removeStyleName(style.errorPanelWithError()); errorPanel.addStyleName(style.errorPanel()); return this; } }
public ValueBoxEditor.View<T> addHelpContent(final String title, final String content, final Placement placement) { final Tooltip tooltip = new Tooltip(widget); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); contents.add(tooltip); return this; }
@Override public DropDownEditorView showError(SafeHtml message) { errorTooltip.setTitle(message.asString()); errorPanel.removeStyleName(style.errorPanel()); errorPanel.addStyleName(style.errorPanelWithError()); return this; }
public ValueBoxEditor.View<T> addHelpContent(final String title, final String content, final Placement placement) { final Tooltip tooltip = new Tooltip(widget); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); contents.add(tooltip); return this; }
@Override public ImageListEditorView<T> showError(SafeHtml message) { errorTooltip.setTitle(message.asString()); errorPanel.removeStyleName(style.errorPanel()); errorPanel.addStyleName(style.errorPanelWithError()); return null; }
@Override public DropDownEditorView addHelpContent(String title, String content, Placement placement) { final Tooltip tooltip = new Tooltip(dropDown.asWidget()); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); helpPanel.add(tooltip); return this; }
public WorkbenchToolBarView() { PatternFlyBootstrapper.ensurejQueryIsAvailable(); initWidget(uiBinder.createAndBindUi(this)); tip.setTitle(WorkbenchConstants.INSTANCE.collapseToolbar()); tip.setPlacement(Placement.LEFT); tip.setWidget(viewControl); simpleMargin.setVisible(false); }
public WorkbenchToolBarView() { PatternFlyBootstrapper.ensurejQueryIsAvailable(); initWidget(uiBinder.createAndBindUi(this)); tip.setTitle(WorkbenchConstants.INSTANCE.collapseToolbar()); tip.setPlacement(Placement.LEFT); tip.setWidget(viewControl); simpleMargin.setVisible(false); }