@Override public ImageListEditorView<T> setHelpContent(String title, String content, Placement placement) { currentTypeImageTooltip.setPlacement(placement); currentTypeImageTooltip.setTitle(content); currentTypeImageTooltip.hide(); return this; }
@Override public ImageListEditorView<T> setHelpContent(String title, String content, Placement placement) { currentTypeImageTooltip.setPlacement(placement); currentTypeImageTooltip.setTitle(content); currentTypeImageTooltip.hide(); 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; }
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> setHelpContent(final String title, final String content, final Placement placement) { final Tooltip tooltip = new Tooltip(mainPanel); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); helpPanel.add(tooltip); return this; }
@Override public FileUploadEditor.View addHelpContent(final String title, final String content, final Placement placement) { final Tooltip tooltip = new Tooltip(fileUpload); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); formPanel.add(tooltip); return this; }
@Override public ImageListEditorView<T> setHelpContent(final String title, final String content, final Placement placement) { final Tooltip tooltip = new Tooltip(mainPanel); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); helpPanel.add(tooltip); return this; }
@Override public DataSetDefRefreshIntervalEditor.View addHelpContent(final String title, final String content, final Placement placement) { final Tooltip tooltip = new Tooltip(intervalType); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); mainPanel.add(tooltip); return this; } }
@Override public FileUploadEditor.View addHelpContent(final String title, final String content, final Placement placement) { final Tooltip tooltip = new Tooltip(fileUpload); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); formPanel.add(tooltip); return this; }
@Override public DataSetDefRefreshIntervalEditor.View addHelpContent(final String title, final String content, final Placement placement) { final Tooltip tooltip = new Tooltip(intervalType); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); mainPanel.add(tooltip); return this; } }
@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; }
@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); }
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 DataSetEditorWorkflow.View addButton(final String text, final String content, final boolean isPrimary, final Command clickCommand) { final Button button = new Button(text); if (isPrimary) { button.setType(ButtonType.PRIMARY); } final Tooltip tooltip = new Tooltip(button); tooltip.setTitle(content); tooltip.setContainer("body"); tooltip.setPlacement(Placement.BOTTOM); tooltip.setShowDelayMs(500); tooltip.setHideDelayMs(100); buttonsPanel.add(tooltip); button.addClickHandler(e -> { tooltip.hide(); clickCommand.execute(); }); return this; }
@Override public DataSetEditorWorkflow.View addButton(final String text, final String content, final boolean isPrimary, final Command clickCommand) { final Button button = new Button(text); if (isPrimary) { button.setType(ButtonType.PRIMARY); } final Tooltip tooltip = new Tooltip(button); tooltip.setTitle(content); tooltip.setContainer("body"); tooltip.setPlacement(Placement.BOTTOM); tooltip.setShowDelayMs(500); tooltip.setHideDelayMs(100); buttonsPanel.add(tooltip); button.addClickHandler(e -> { tooltip.hide(); clickCommand.execute(); }); return this; }