Search in sources :

Example 6 with WidgetTooltip

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

the class HostNetworkInterfaceBondedListViewItem method createIcon.

@Override
protected IsWidget createIcon() {
    InterfaceStatus interfaceStatus = getEntity().getInterface().getStatistics().getStatus();
    SafeHtml bondPropertiesMessage = createBondTooltipMessage(getEntity(), interfaceStatus);
    SafeHtml bondMessage = templates.italicWordWrapMaxWidthWithBoldTitle(constants.bondProperties(), bondPropertiesMessage);
    WidgetTooltip iconTooltip = new WidgetTooltip(new BondedNetworkIcon());
    iconTooltip.setHtml(bondMessage);
    iconPanel.add(iconTooltip);
    return iconPanel;
}
Also used : InterfaceStatus(org.ovirt.engine.core.common.businessentities.network.InterfaceStatus) SafeHtml(com.google.gwt.safehtml.shared.SafeHtml) BondedNetworkIcon(org.ovirt.engine.ui.common.widget.uicommon.network.BondedNetworkIcon) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Example 7 with WidgetTooltip

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

the class HostNetworkInterfaceBondedListViewItem method createBondInterfaceStatusPanel.

protected IsWidget createBondInterfaceStatusPanel(boolean isUp, VDS host) {
    Bond bond = (Bond) getEntity().getInterface();
    if (!isAdPartnerMacValid(bond, host)) {
        WidgetTooltip tooltip = new WidgetTooltip(new IconStatusPanel(PatternflyConstants.PFICON_WARNING_TRIANGLE_O, PatternflyConstants.PFICON));
        tooltip.setHtml(templates.italicWordWrapMaxWidth(constants.bondInMode4HasNoPartnerMac()));
        return tooltip;
    } else {
        return super.createInterfaceStatusPanel(isUp);
    }
}
Also used : IconStatusPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel) Bond(org.ovirt.engine.core.common.businessentities.network.Bond) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Example 8 with WidgetTooltip

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

the class HostNetworkInterfaceListViewItem method createHasLabelStatusPanel.

protected IsWidget createHasLabelStatusPanel() {
    IconStatusPanel tagPanel = new IconStatusPanel(IconType.TAG);
    tagPanel.addStyleName(PatternflyConstants.LIST_VIEW_ICON_PANEL);
    WidgetTooltip tooltip = new WidgetTooltip(tagPanel);
    tooltip.setHtml(createLabelTooltipText(getNetworkInterface().getLabels()));
    return tooltip;
}
Also used : IconStatusPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Example 9 with WidgetTooltip

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

the class HostNetworkInterfaceListViewItem method createManagementStatusPanel.

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

Example 10 with WidgetTooltip

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

the class ActionAnchorListItem method createTooltip.

private WidgetTooltip createTooltip(SafeHtml tooltipText) {
    WidgetTooltip toolTip = new WidgetTooltip(this);
    toolTip.setHtml(tooltipText);
    return toolTip;
}
Also used : 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