Search in sources :

Example 11 with WidgetTooltip

use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip in project ovirt-engine by oVirt.

the class ActionAnchorListItem method setTooltip.

@Override
public void setTooltip(SafeHtml setTooltipText, Placement placement) {
    WidgetTooltip toolTip = createTooltip(setTooltipText);
    toolTip.setPlacement(placement);
}
Also used : WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Example 12 with WidgetTooltip

use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip in project ovirt-engine by oVirt.

the class DropdownActionButton method initDropdownButton.

private void initDropdownButton(IconType icon, boolean splitButton) {
    button = new Button();
    caretButton = new Button();
    caretButton.setDataToggle(Toggle.DROPDOWN);
    caretButton.setToggleCaret(true);
    if (splitButton) {
        caretButton.getElement().getStyle().setMarginLeft(0, Unit.PX);
        caretButton.getElement().getStyle().setLeft(-1, Unit.PX);
        textButton = button;
        toolTip = new WidgetTooltip(textButton);
        add(toolTip);
        add(caretButton);
    } else {
        textButton = caretButton;
        toolTip = new WidgetTooltip(textButton);
        add(toolTip);
    }
    if (icon != null) {
        textButton.setIcon(icon);
    }
}
Also used : Button(org.gwtbootstrap3.client.ui.Button) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Example 13 with WidgetTooltip

use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip in project ovirt-engine by oVirt.

the class HostNetworkInterfaceListViewItem method createSpeedIcon.

protected IsWidget createSpeedIcon() {
    WidgetTooltip tooltip = new WidgetTooltip(new IconStatusPanel(IconType.BOLT));
    tooltip.setText(constants.speedInterface());
    return tooltip;
}
Also used : IconStatusPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Example 14 with WidgetTooltip

use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip in project ovirt-engine by oVirt.

the class HostNetworkInterfaceListViewItem method createNeedsSyncStatusPanel.

protected IsWidget createNeedsSyncStatusPanel() {
    IconStatusPanel outOfSync = new IconStatusPanel(IconType.CHAIN_BROKEN);
    outOfSync.setColor(RED);
    WidgetTooltip tooltip = new WidgetTooltip(outOfSync);
    tooltip.setText(constants.hostOutOfSync());
    return tooltip;
}
Also used : IconStatusPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Example 15 with WidgetTooltip

use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip in project ovirt-engine by oVirt.

the class HostNetworkInterfaceListViewItem method createDropRateIcon.

protected IsWidget createDropRateIcon() {
    WidgetTooltip tooltip = new WidgetTooltip(new IconStatusPanel(IconType.ARROW_DOWN));
    tooltip.setText(constants.dropsInterface());
    return tooltip;
}
Also used : IconStatusPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Aggregations

WidgetTooltip (org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)17 IconStatusPanel (org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel)6 FormItem (org.ovirt.engine.ui.common.widget.form.FormItem)3 SafeHtml (com.google.gwt.safehtml.shared.SafeHtml)2 BooleanLabel (org.ovirt.engine.ui.common.widget.label.BooleanLabel)2 Button (org.gwtbootstrap3.client.ui.Button)1 Italic (org.gwtbootstrap3.client.ui.html.Italic)1 Span (org.gwtbootstrap3.client.ui.html.Span)1 Bond (org.ovirt.engine.core.common.businessentities.network.Bond)1 InterfaceStatus (org.ovirt.engine.core.common.businessentities.network.InterfaceStatus)1 BondedNetworkIcon (org.ovirt.engine.ui.common.widget.uicommon.network.BondedNetworkIcon)1