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