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;
}
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);
}
}
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;
}
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;
}
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;
}
Aggregations