Search in sources :

Example 1 with IconStatusPanel

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);
    }
}
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 2 with IconStatusPanel

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;
}
Also used : IconStatusPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Example 3 with IconStatusPanel

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;
}
Also used : IconStatusPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel)

Example 4 with 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;
}
Also used : IconStatusPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Example 5 with IconStatusPanel

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;
}
Also used : IconStatusPanel(org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel) WidgetTooltip(org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)

Aggregations

IconStatusPanel (org.ovirt.engine.ui.common.widget.uicommon.vm.IconStatusPanel)7 WidgetTooltip (org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip)6 Bond (org.ovirt.engine.core.common.businessentities.network.Bond)1