use of org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel 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.uicommon.vm.IconStatusPanel 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.uicommon.vm.IconStatusPanel in project ovirt-engine by oVirt.
the class HostNetworkInterfaceListViewItem method createInterfaceStatusPanel.
protected IsWidget createInterfaceStatusPanel(boolean isUp) {
IconStatusPanel iconStatusPanel = new IconStatusPanel(isUp ? IconType.ARROW_CIRCLE_O_UP : IconType.ARROW_CIRCLE_O_DOWN);
iconStatusPanel.addStyleName(DOUBLE_SIZE);
iconStatusPanel.getElement().getStyle().setColor(isUp ? GREEN : RED);
return iconStatusPanel;
}
use of org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel 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.uicommon.vm.IconStatusPanel 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;
}
Aggregations