Search in sources :

Example 1 with PublicationSystem

use of cz.metacentrum.perun.webgui.model.PublicationSystem in project perun by CESNET.

the class PublicationSystemsTabItem method draw.

public Widget draw() {
    // main panel
    VerticalPanel vp = new VerticalPanel();
    vp.getElement().setAttribute("style", "padding-top: 5px;");
    vp.setSize("100%", "100%");
    // MENU
    TabMenu menu = new TabMenu();
    vp.add(menu);
    vp.setCellHeight(menu, "30px");
    menu.addWidget(UiElements.getRefreshButton(this));
    GetPublicationSystems call = new GetPublicationSystems();
    call.setCheckable(false);
    CellTable<PublicationSystem> table = call.getTable();
    table.addStyleName("perun-table");
    ScrollPanel sp = new ScrollPanel();
    sp.add(table);
    sp.addStyleName("perun-tableScrollPanel");
    vp.add(sp);
    // resize perun table to correct size on screen
    session.getUiElements().resizeSmallTabPanel(sp, 350, this);
    this.contentWidget.setWidget(vp);
    return getWidget();
}
Also used : PublicationSystem(cz.metacentrum.perun.webgui.model.PublicationSystem) GetPublicationSystems(cz.metacentrum.perun.webgui.json.cabinetManager.GetPublicationSystems) TabMenu(cz.metacentrum.perun.webgui.widgets.TabMenu)

Aggregations

GetPublicationSystems (cz.metacentrum.perun.webgui.json.cabinetManager.GetPublicationSystems)1 PublicationSystem (cz.metacentrum.perun.webgui.model.PublicationSystem)1 TabMenu (cz.metacentrum.perun.webgui.widgets.TabMenu)1