Search in sources :

Example 1 with BondedNetworkIcon

use of org.ovirt.engine.ui.common.widget.uicommon.network.BondedNetworkIcon 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)

Aggregations

SafeHtml (com.google.gwt.safehtml.shared.SafeHtml)1 InterfaceStatus (org.ovirt.engine.core.common.businessentities.network.InterfaceStatus)1 WidgetTooltip (org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)1 BondedNetworkIcon (org.ovirt.engine.ui.common.widget.uicommon.network.BondedNetworkIcon)1