Package com.gwtext.client.widgets.portal

Examples of com.gwtext.client.widgets.portal.PortalColumn


    this.contentPanel.setAutoHeight( true );

    Portal portal = new Portal();
    portal.setBorder( false );

    PortalColumn firstCol = new PortalColumn();
    firstCol.setPaddings( 5, 5, 5, 5 );
    PortalColumn secondCol = new PortalColumn();
    secondCol.setPaddings( 5, 5, 5, 5 );

    for (int i = 0; i < this.contactPortlets.length; i++) {
      this.contactPortlets[i] = createPortlet();
    }

    firstCol.add( this.contactPortlets[0] );
    secondCol.add( this.contactPortlets[1] );
    firstCol.add( this.contactPortlets[2] );
    secondCol.add( this.contactPortlets[3] );
    firstCol.add( this.contactPortlets[4] );
    secondCol.add( this.contactPortlets[5] );

    portal.add( firstCol, new ColumnLayoutData( 0.5 ) );
    portal.add( secondCol, new ColumnLayoutData( 0.5 ) );

    this.contentPanel.add( portal );
View Full Code Here


        }
    }

    protected void removePortletFromTabConfig(final EntityPortlet portlet) {
        for (final TabColumnConfiguration column : tabColumnConfigToColumn.keySet()) {
            final PortalColumn portalColumn = tabColumnConfigToColumn.get(column);
            final List<PortletConfiguration> portlets = column.getPortlets();
            final Component[] comps = portalColumn.getComponents();
            for (int i = 0; i < comps.length; i++) {
                if (comps[i].equals(portlet)) {
                    if (portlets.size() > i) { // TODO: check should not be
                        // needed, but it seems that
                        // portlets are destroyed several
View Full Code Here

        }
    }

    protected void addColumn(final TabColumnConfiguration colConfig) {
        final float width = colConfig.getWidth();
        final PortalColumn portalColumn = new PortalColumn();
        portalColumn.setPaddings(10, 10, 10, 10);
        portal.add(portalColumn, new ColumnLayoutData(width));
        columnToPortletsMap.put(portalColumn, new ArrayList<EntityPortlet>());
        tabColumnConfigToColumn.put(colConfig, portalColumn);
    }
View Full Code Here

    }

    protected void addPortletToColumn(final EntityPortlet portlet, final TabColumnConfiguration tabColumnConfiguration,
                                      final PortletConfiguration portletConfiguration, final boolean updateColConfig) {
        ((AbstractEntityPortlet) portlet).setPortletConfiguration(portletConfiguration);
        final PortalColumn portalColumn = tabColumnConfigToColumn.get(tabColumnConfiguration);
        portalColumn.add((Portlet) portlet);
        columnToPortletsMap.get(portalColumn).add(portlet);

        ((AbstractEntityPortlet) portlet).setTab(this);

        if (updateColConfig) {
View Full Code Here

        }
    }

    public EntityPortlet getPortletByClassName(final String javaClassName) {
        for (final PortalColumn portalColumn2 : columnToPortletsMap.keySet()) {
            final PortalColumn portalColumn = portalColumn2;
            final List<EntityPortlet> portlets = columnToPortletsMap.get(portalColumn);
            for (final EntityPortlet entityPortlet : portlets) {
                if (entityPortlet.getClass().getName().equals(javaClassName)) {
                    return entityPortlet;
                }
View Full Code Here

        return null;
    }

    protected EntityPortlet getDefaultControllingPortlet() {
        // take the first portlet from the first column
        final PortalColumn portalColumn = columnToPortletsMap.keySet().iterator().next();
        if (portalColumn == null) {
            return null;
        }
        final List<EntityPortlet> portlets = columnToPortletsMap.get(portalColumn);
        if (portlets.isEmpty()) {
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.portal.PortalColumn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.