/** * Creates the tooltip around this widget * * @param w widget for the tooltip */ public Tooltip(final Widget w) { this(); setWidget(w); }
/** * Creates the tooltip around this widget * * @param w widget for the tooltip */ public Tooltip(final Widget w) { this(); setWidget(w); }
/** * 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); }
/** * 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); }
public WorkbenchToolBarView() { PatternFlyBootstrapper.ensurejQueryIsAvailable(); initWidget(uiBinder.createAndBindUi(this)); tip.setTitle(WorkbenchConstants.INSTANCE.collapseToolbar()); tip.setPlacement(Placement.LEFT); tip.setWidget(viewControl); simpleMargin.setVisible(false); }
public CustomDropdown() { initWidget( dropDown ); orderTt.setWidget( orderButton ); controls.add( search ); controls.add( orderTt ); content.add( controls ); content.add( footer ); dropDown.add( anchor ); dropDown.add( content ); }
public WorkbenchToolBarView() { PatternFlyBootstrapper.ensurejQueryIsAvailable(); initWidget(uiBinder.createAndBindUi(this)); tip.setTitle(WorkbenchConstants.INSTANCE.collapseToolbar()); tip.setPlacement(Placement.LEFT); tip.setWidget(viewControl); simpleMargin.setVisible(false); }
private void expand() { container.removeFromParent(); container.getElement().getStyle().clearTop(); container.getElement().getStyle().clearPosition(); container.getElement().getStyle().clearZIndex(); masterContainer.add(container); tip.setTitle(WorkbenchConstants.INSTANCE.collapseToolbar()); tip.setPlacement(Placement.LEFT); tip.setWidget(viewControl); tip.reconfigure(); new ExpandAnimation().animate(8, getOffsetWidth() - 1, 500); state = State.EXPANDED; }
private void expand() { container.removeFromParent(); container.getElement().getStyle().clearTop(); container.getElement().getStyle().clearPosition(); container.getElement().getStyle().clearZIndex(); masterContainer.add(container); tip.setTitle(WorkbenchConstants.INSTANCE.collapseToolbar()); tip.setPlacement(Placement.LEFT); tip.setWidget(viewControl); tip.reconfigure(); new ExpandAnimation().animate(8, getOffsetWidth() - 1, 500); state = State.EXPANDED; }
private void collapse() { new CollapseAnimation().animate(getOffsetWidth(), 8, 500); container.removeFromParent(); container.getElement().getStyle().setTop(getAbsoluteTop(), Style.Unit.PX); container.getElement().getStyle().setPosition(Style.Position.FIXED); container.getElement().getStyle().setZIndex(Integer.MAX_VALUE); RootPanel.get().add(container); tip.setTitle(WorkbenchConstants.INSTANCE.expandToolbar()); tip.setPlacement(Placement.RIGHT); tip.setWidget(viewControl); tip.reconfigure(); state = State.COLLAPSED; }
private void collapse() { new CollapseAnimation().animate(getOffsetWidth(), 8, 500); container.removeFromParent(); container.getElement().getStyle().setTop(getAbsoluteTop(), Style.Unit.PX); container.getElement().getStyle().setPosition(Style.Position.FIXED); container.getElement().getStyle().setZIndex(Integer.MAX_VALUE); RootPanel.get().add(container); tip.setTitle(WorkbenchConstants.INSTANCE.expandToolbar()); tip.setPlacement(Placement.RIGHT); tip.setWidget(viewControl); tip.reconfigure(); state = State.COLLAPSED; }
@Override public ImageListEditorView<T> add(final SafeUri uri, final String width, final String height, final SafeHtml heading, final SafeHtml text, final boolean selected, final Command clickCommand) { if (selected) { currentTypeImage.setUrl( uri ); currentTypeImage.setSize( width, height ); } else { final Tooltip tooltip = new Tooltip(); tooltip.setTitle(text.asString()); tooltip.setContainer("body"); tooltip.setPlacement(Placement.RIGHT); tooltip.setShowDelayMs(100); final Image image = new Image(uri); image.setWidth(width); image.setHeight(height); image.addStyleName(style.image()); image.addClickHandler(e -> { tooltip.hide(); clickCommand.execute(); }); tooltip.setWidget(image); dropDownMenu.add(image); } return this; }
@Override public ImageListEditorView<T> add(final SafeUri uri, final String width, final String height, final SafeHtml heading, final SafeHtml text, final boolean selected, final Command clickCommand) { if (selected) { currentTypeImage.setUrl( uri ); currentTypeImage.setSize( width, height ); } else { final Tooltip tooltip = new Tooltip(); tooltip.setTitle(text.asString()); tooltip.setContainer("body"); tooltip.setPlacement(Placement.RIGHT); tooltip.setShowDelayMs(100); final Image image = new Image(uri); image.setWidth(width); image.setHeight(height); image.addStyleName(style.image()); image.addClickHandler(e -> { tooltip.hide(); clickCommand.execute(); }); tooltip.setWidget(image); dropDownMenu.add(image); } return this; }
tooltip.setWidget(image); tooltip.setContainer("body"); tooltip.setPlacement(Placement.BOTTOM);
tooltip.setWidget(image); tooltip.setContainer("body"); tooltip.setPlacement(Placement.BOTTOM);