Package org.uberfire.client.workbench.panels.impl

Examples of org.uberfire.client.workbench.panels.impl.HorizontalSplitterPanel


        final Widget parent = targetPanel.asWidget().getParent();

        if ( parent instanceof SimplePanel ) {

            final SimplePanel sp = (SimplePanel) parent;
            final HorizontalSplitterPanel hsp = factory.newHorizontalSplitterPanel( targetPanel,
                                                                                    newPanel,
                                                                                    Position.WEST,
                                                                                    preferredSize,
                                                                                    preferredMinSize );
View Full Code Here


        }
    }

    @Override
    public void remove( final WorkbenchPanelView panel ) {
        final HorizontalSplitterPanel vsp = (HorizontalSplitterPanel) panel.asWidget().getParent().getParent().getParent();
        final Widget parent = vsp.getParent();
        final Widget eastWidget = vsp.getWidget( Position.EAST );

        vsp.clear();

        //Set parent's content to the EAST widget
        if ( parent instanceof SimplePanel ) {
            ( (SimplePanel) parent ).setWidget( eastWidget );
        }
View Full Code Here

    public void remove( final BaseWorkbenchPanelView<?> view,
                        final Widget parent ) {
        Position position = Position.NONE;

        if ( parent instanceof HorizontalSplitterPanel ) {
            final HorizontalSplitterPanel hsp = (HorizontalSplitterPanel) parent;
            if ( view.asWidget().equals( hsp.getWidget( Position.EAST ) ) ) {
                position = Position.EAST;
            } else if ( view.asWidget().equals( hsp.getWidget( Position.WEST ) ) ) {
                position = Position.WEST;
            }
        } else if ( parent instanceof VerticalSplitterPanel ) {
            final VerticalSplitterPanel vsp = (VerticalSplitterPanel) parent;
            if ( view.asWidget().equals( vsp.getWidget( Position.NORTH ) ) ) {
View Full Code Here

        final Widget parent = targetPanel.asWidget().getParent();

        if ( parent instanceof SimplePanel ) {

            final SimplePanel sp = (SimplePanel) parent;
            final HorizontalSplitterPanel hsp = factory.newHorizontalSplitterPanel( newPanel,
                                                                                    targetPanel,
                                                                                    Position.EAST,
                                                                                    preferredSize,
                                                                                    preferredMinSize );
View Full Code Here

        }
    }

    @Override
    public void remove( final WorkbenchPanelView panel ) {
        final HorizontalSplitterPanel vsp = (HorizontalSplitterPanel) panel.asWidget().getParent().getParent().getParent();
        final Widget parent = vsp.getParent();
        final Widget westWidget = vsp.getWidget( Position.WEST );

        vsp.clear();

        //Set parent's content to the WEST widget
        if ( parent instanceof SimplePanel ) {
            ( (SimplePanel) parent ).setWidget( westWidget );
        }
View Full Code Here

    public HorizontalSplitterPanel newHorizontalSplitterPanel( final WorkbenchPanelView eastPanel,
                                                               final WorkbenchPanelView westPanel,
                                                               final Position position,
                                                               final Integer preferredSize,
                                                               final Integer preferredMinSize ) {
        final HorizontalSplitterPanel hsp = iocManager.lookupBean( HorizontalSplitterPanel.class ).getInstance();
        hsp.setup( eastPanel,
                   westPanel,
                   position,
                   preferredSize,
                   preferredMinSize );
        return hsp;
View Full Code Here

TOP

Related Classes of org.uberfire.client.workbench.panels.impl.HorizontalSplitterPanel

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.