Search in sources :

Example 1 with EmptyColumn

use of org.ovirt.engine.ui.common.widget.table.column.EmptyColumn in project ovirt-engine by oVirt.

the class DisksTree method getNodeHeader.

@Override
protected TreeItem getNodeHeader() {
    EntityModelCellTable<ListModel> table = new EntityModelCellTable<>(false, true);
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.empty(), "20px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.domainNameDisksTree(), "");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.domainTypeDisksTree(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.statusDisksTree(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.freeSpaceDisksTree(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.usedSpaceDisksTree(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.totalSpaceDisksTree(), "130px");
    table.setRowData(new ArrayList());
    // $NON-NLS-1$
    table.setWidth("100%");
    // $NON-NLS-1$
    table.setHeight("30px");
    return new TreeItem(table);
}
Also used : EntityModelCellTable(org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable) EmptyColumn(org.ovirt.engine.ui.common.widget.table.column.EmptyColumn) TreeItem(com.google.gwt.user.client.ui.TreeItem) ListModel(org.ovirt.engine.ui.uicommonweb.models.ListModel) TemplateDiskListModel(org.ovirt.engine.ui.uicommonweb.models.templates.TemplateDiskListModel) ArrayList(java.util.ArrayList)

Example 2 with EmptyColumn

use of org.ovirt.engine.ui.common.widget.table.column.EmptyColumn in project ovirt-engine by oVirt.

the class StoragesTree method getNodeHeader.

@Override
protected TreeItem getNodeHeader() {
    EntityModelCellTable<ListModel> table = new EntityModelCellTable<>(false, true);
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.empty(), "30px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.aliasDisk(), "");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.sizeStorageTree(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.statusStorageTree(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.allocationStorageTree(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.interfaceStorageTree(), "110px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.typeDisk(), "110px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.creationDateStorageTree(), "100px");
    table.setRowData(new ArrayList());
    // $NON-NLS-1$
    table.setWidth("100%");
    // $NON-NLS-1$
    table.setHeight("30px");
    TreeItem item = new TreeItem(table);
    item.setUserObject(NODE_HEADER);
    item.getElement().getStyle().setPadding(0, Unit.PX);
    return item;
}
Also used : EntityModelCellTable(org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable) EmptyColumn(org.ovirt.engine.ui.common.widget.table.column.EmptyColumn) TreeItem(com.google.gwt.user.client.ui.TreeItem) ListModel(org.ovirt.engine.ui.uicommonweb.models.ListModel) TemplateStorageListModel(org.ovirt.engine.ui.uicommonweb.models.templates.TemplateStorageListModel) ArrayList(java.util.ArrayList)

Example 3 with EmptyColumn

use of org.ovirt.engine.ui.common.widget.table.column.EmptyColumn in project ovirt-engine by oVirt.

the class SubTabStorageTemplateView method initHeader.

@Override
protected void initHeader() {
    table.addColumn(new EmptyColumn(), constants.aliasTemplate());
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.disksTemplate(), "110px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.provisionedSizeTemplate(), "110px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.actualSizeTemplate(), "110px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.creationDateTemplate(), "170px");
    // $NON-NLS-1$
    table.setHeight("55px");
}
Also used : EmptyColumn(org.ovirt.engine.ui.common.widget.table.column.EmptyColumn)

Example 4 with EmptyColumn

use of org.ovirt.engine.ui.common.widget.table.column.EmptyColumn in project ovirt-engine by oVirt.

the class SubTabStorageVmView method initHeader.

@Override
protected void initHeader() {
    table.addColumn(new EmptyColumn(), constants.aliasVm());
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.disksVm(), "80px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.templateVm(), "160px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.vSizeVm(), "110px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.actualSizeVm(), "110px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.creationDateVm(), "170px");
    // $NON-NLS-1$
    table.setHeight("55px");
}
Also used : EmptyColumn(org.ovirt.engine.ui.common.widget.table.column.EmptyColumn)

Example 5 with EmptyColumn

use of org.ovirt.engine.ui.common.widget.table.column.EmptyColumn in project ovirt-engine by oVirt.

the class SubTabTemplateDiskView method initHeader.

@Override
protected void initHeader() {
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.aliasDisk(), "");
    ImageResourceHeader readOnlyColumnHeader = new ImageResourceHeader(resources.readOnlyDiskIcon(), SafeHtmlUtils.fromSafeConstant(constants.readOnly()));
    // $NON-NLS-1$);
    table.addColumn(new EmptyColumn(), readOnlyColumnHeader, "60px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.provisionedSizeDisk(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.sizeDisk(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.statusDisk(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.allocationDisk(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.interfaceDisk(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.typeDisk(), "120px");
    // $NON-NLS-1$
    table.addColumn(new EmptyColumn(), constants.creationDateDisk(), "150px");
    // $NON-NLS-1$
    table.setHeight("30px");
}
Also used : EmptyColumn(org.ovirt.engine.ui.common.widget.table.column.EmptyColumn) ImageResourceHeader(org.ovirt.engine.ui.common.widget.table.header.ImageResourceHeader)

Aggregations

EmptyColumn (org.ovirt.engine.ui.common.widget.table.column.EmptyColumn)9 ArrayList (java.util.ArrayList)3 EntityModelCellTable (org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable)3 TreeItem (com.google.gwt.user.client.ui.TreeItem)2 ListModel (org.ovirt.engine.ui.uicommonweb.models.ListModel)2 Resources (com.google.gwt.user.cellview.client.DataGrid.Resources)1 PopupSimpleTableResources (org.ovirt.engine.ui.common.PopupSimpleTableResources)1 ImageResourceHeader (org.ovirt.engine.ui.common.widget.table.header.ImageResourceHeader)1 TemplateDiskListModel (org.ovirt.engine.ui.uicommonweb.models.templates.TemplateDiskListModel)1 TemplateStorageListModel (org.ovirt.engine.ui.uicommonweb.models.templates.TemplateStorageListModel)1