use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip in project ovirt-engine by oVirt.
the class ActionAnchorListItem method setTooltip.
@Override
public void setTooltip(SafeHtml setTooltipText, Placement placement) {
WidgetTooltip toolTip = createTooltip(setTooltipText);
toolTip.setPlacement(placement);
}
use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip in project ovirt-engine by oVirt.
the class DropdownActionButton method initDropdownButton.
private void initDropdownButton(IconType icon, boolean splitButton) {
button = new Button();
caretButton = new Button();
caretButton.setDataToggle(Toggle.DROPDOWN);
caretButton.setToggleCaret(true);
if (splitButton) {
caretButton.getElement().getStyle().setMarginLeft(0, Unit.PX);
caretButton.getElement().getStyle().setLeft(-1, Unit.PX);
textButton = button;
toolTip = new WidgetTooltip(textButton);
add(toolTip);
add(caretButton);
} else {
textButton = caretButton;
toolTip = new WidgetTooltip(textButton);
add(toolTip);
}
if (icon != null) {
textButton.setIcon(icon);
}
}
use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip 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;
}
use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip in project ovirt-engine by oVirt.
the class HostNetworkInterfaceListViewItem method createNeedsSyncStatusPanel.
protected IsWidget createNeedsSyncStatusPanel() {
IconStatusPanel outOfSync = new IconStatusPanel(IconType.CHAIN_BROKEN);
outOfSync.setColor(RED);
WidgetTooltip tooltip = new WidgetTooltip(outOfSync);
tooltip.setText(constants.hostOutOfSync());
return tooltip;
}
use of org.ovirt.engine.ui.common.widget.tooltip.WidgetTooltip in project ovirt-engine by oVirt.
the class HostNetworkInterfaceListViewItem method createDropRateIcon.
protected IsWidget createDropRateIcon() {
WidgetTooltip tooltip = new WidgetTooltip(new IconStatusPanel(IconType.ARROW_DOWN));
tooltip.setText(constants.dropsInterface());
return tooltip;
}
Aggregations