Search in sources :

Example 6 with ExpandableListViewItem

use of org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem in project ovirt-engine by oVirt.

the class HostNetworkInterfaceBondedListViewItem method createSlavesAdditionalInfo.

private IsWidget createSlavesAdditionalInfo() {
    FlowPanel panel = new FlowPanel();
    List<HostInterface> slaves = getEntity().getInterfaces();
    slavesExpand = new ExpandableListViewItem(SafeHtmlUtils.fromString(messages.slaves(slaves.size())));
    getClickHandlerRegistrations().add(slavesExpand.addClickHandler(this));
    panel.add(slavesExpand);
    return panel;
}
Also used : FlowPanel(com.google.gwt.user.client.ui.FlowPanel) ExpandableListViewItem(org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem) HostInterface(org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterface)

Example 7 with ExpandableListViewItem

use of org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem in project ovirt-engine by oVirt.

the class HostNetworkInterfaceListViewItem method createDetailAdditionalInfo.

private IsWidget createDetailAdditionalInfo() {
    FlowPanel panel = new FlowPanel();
    List<HostVLan> logicalNetworks = calculateLogicalNetworks(getEntity());
    List<IsWidget> icons = new ArrayList<>();
    if (containsManagement(logicalNetworks)) {
        icons.add(createManagementStatusPanel());
    }
    if (containsOutOfSync(logicalNetworks)) {
        icons.add(createNeedsSyncStatusPanel());
    }
    String logicalNetworksText = logicalNetworks.size() == 1 ? constants.logicalNetwork() : messages.logicalNetworks(logicalNetworks.size());
    logicalNetworkExpand = new ExpandableListViewItem(SafeHtmlUtils.fromString(logicalNetworksText), icons);
    getClickHandlerRegistrations().add(logicalNetworkExpand.addClickHandler(this));
    panel.add(logicalNetworkExpand);
    return panel;
}
Also used : IsWidget(com.google.gwt.user.client.ui.IsWidget) FlowPanel(com.google.gwt.user.client.ui.FlowPanel) ArrayList(java.util.ArrayList) ExpandableListViewItem(org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem) HostVLan(org.ovirt.engine.ui.uicommonweb.models.hosts.HostVLan)

Example 8 with ExpandableListViewItem

use of org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem in project ovirt-engine by oVirt.

the class VmInterfaceListGroupItem method createStatisticsAdditionalInfo.

private IsWidget createStatisticsAdditionalInfo() {
    FlowPanel panel = new FlowPanel();
    panel.addStyleName(PatternflyConstants.PF_LIST_VIEW_ADDITIONAL_INFO_ITEM);
    statisticsExpand = new ExpandableListViewItem(SafeHtmlUtils.fromString(constants.statistics()));
    getClickHandlerRegistrations().add(statisticsExpand.addClickHandler(this));
    panel.add(statisticsExpand);
    return panel;
}
Also used : FlowPanel(com.google.gwt.user.client.ui.FlowPanel) ExpandableListViewItem(org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem)

Example 9 with ExpandableListViewItem

use of org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem in project ovirt-engine by oVirt.

the class VmInterfaceListGroupItem method createNetworkFilterParameterAdditionalInfo.

private IsWidget createNetworkFilterParameterAdditionalInfo() {
    FlowPanel panel = new FlowPanel();
    panel.addStyleName(PatternflyConstants.PF_LIST_VIEW_ADDITIONAL_INFO_ITEM);
    networkFilterParameterExpand = new ExpandableListViewItem(SafeHtmlUtils.fromString(constants.networkFilterParametersLabel()));
    getClickHandlerRegistrations().add(networkFilterParameterExpand.addClickHandler(this));
    panel.add(networkFilterParameterExpand);
    return panel;
}
Also used : FlowPanel(com.google.gwt.user.client.ui.FlowPanel) ExpandableListViewItem(org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem)

Example 10 with ExpandableListViewItem

use of org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem in project ovirt-engine by oVirt.

the class VmSnapshotListViewItem method createGeneralAdditionalInfo.

private IsWidget createGeneralAdditionalInfo() {
    FlowPanel panel = new FlowPanel();
    panel.addStyleName(PatternflyConstants.PF_LIST_VIEW_ADDITIONAL_INFO_ITEM);
    generalExpand = new ExpandableListViewItem(SafeHtmlUtils.fromString(constants.generalLabel()), IconType.EYE.getCssName());
    getClickHandlerRegistrations().add(generalExpand.addClickHandler(this));
    panel.add(generalExpand);
    return panel;
}
Also used : FlowPanel(com.google.gwt.user.client.ui.FlowPanel) ExpandableListViewItem(org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem)

Aggregations

FlowPanel (com.google.gwt.user.client.ui.FlowPanel)10 ExpandableListViewItem (org.ovirt.engine.ui.common.widget.listgroup.ExpandableListViewItem)10 IsWidget (com.google.gwt.user.client.ui.IsWidget)1 ArrayList (java.util.ArrayList)1 HostInterface (org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterface)1 HostVLan (org.ovirt.engine.ui.uicommonweb.models.hosts.HostVLan)1