private void initialise(final UUID _uuid,
                            final String _instanceKey,
                            final UUID _selectCmdUUID)
        throws EFapsException
    {
        final WebMarkupContainer borderPanel = new WebMarkupContainer("borderPanel");
        this.add(borderPanel);
        borderPanel.add(new BorderContainerBehavior(Design.SIDEBAR, true));
        this.borderPanelId = borderPanel.getMarkupId(true);

        final AbstractCommand cmd = getCommand(_uuid);
        UUID tmpUUID = _uuid;
        this.webForm = cmd.getTargetForm() != null;
        if (cmd instanceof Menu) {
            for (final AbstractCommand childcmd : ((Menu) cmd).getCommands()) {
                if (_selectCmdUUID == null && childcmd.isDefaultSelected()) {
                    tmpUUID = childcmd.getUUID();
                    this.webForm = childcmd.getTargetForm() != null;
                    break;
                } else if (childcmd.getUUID().equals(_selectCmdUUID)) {
                    tmpUUID = childcmd.getUUID();
                    this.webForm = childcmd.getTargetForm() != null;
                    break;
                }
            }
        }
        final UUID uuid4NewPage = tmpUUID;

        final LazyIframe centerPanel = new LazyIframe("centerPanel", new IFrameProvider()
        {

            private static final long serialVersionUID = 1L;

            @Override
            public Page getPage(final Component _component)
            {
                Page error = null;
                WebPage page = null;
                try {
                    if (ContentContainerPage.this.webForm) {
                        final UIForm uiForm = new UIForm(uuid4NewPage, _instanceKey).setPagePosition(PagePosition.TREE);
                        page = new FormPage(Model.of(uiForm), getPageReference());
                    } else {
                        if (getCommand(uuid4NewPage).getTargetStructurBrowserField() == null) {
                            if ("GridX".equals(Configuration.getAttribute(ConfigAttribute.TABLE_DEFAULTTYPETREE))) {
                                page = new GridPage(Model.of(UIGrid.get(uuid4NewPage, PagePosition.TREE)
                                                .setCallInstance(Instance.get(_instanceKey))));
                            } else {
                                final UITable uiTable = new UITable(uuid4NewPage, _instanceKey)
                                                .setPagePosition(PagePosition.TREE);
                                page = new TablePage(Model.of(uiTable));
                            }
                        } else {
                            if ("GridX".equals(Configuration.getAttribute(
                                            ConfigAttribute.STRUCBRWSR_DEFAULTTYPETREE))) {
                                page = new GridPage(Model.of(UIGrid.get(uuid4NewPage, PagePosition.TREE)
                                                .setCallInstance(Instance.get(_instanceKey))));
                            } else {
                                page = new StructurBrowserPage(uuid4NewPage, _instanceKey, getPageReference());
                            }
                        }
                    }
                } catch (final EFapsException e) {
                    error = new ErrorPage(e);
                }
                return error == null ? page : error;
            }
        }, null);

        borderPanel.add(centerPanel);
        centerPanel.add(new ContentPaneBehavior(Region.CENTER, false));
        this.centerPanelId = centerPanel.getMarkupId(true);

        borderPanel.add(new SidePanel("leftPanel", _uuid, _instanceKey, _selectCmdUUID,
                        this.structurbrowser));
    }
private void initialise(final UUID _uuid,
                            final String _instanceKey,
                            final UUID _selectCmdUUID)
        throws EFapsException
    {
        final WebMarkupContainer borderPanel = new WebMarkupContainer("borderPanel");
        this.add(borderPanel);
        borderPanel.add(new BorderContainerBehavior(Design.SIDEBAR, true));
        this.borderPanelId = borderPanel.getMarkupId(true);

        final AbstractCommand cmd = getCommand(_uuid);
        UUID tmpUUID = _uuid;
        this.webForm = cmd.getTargetForm() != null;
        if (cmd instanceof Menu) {
            for (final AbstractCommand childcmd : ((Menu) cmd).getCommands()) {
                if (_selectCmdUUID == null && childcmd.isDefaultSelected()) {
                    tmpUUID = childcmd.getUUID();
                    this.webForm = childcmd.getTargetForm() != null;
                    break;
                } else if (childcmd.getUUID().equals(_selectCmdUUID)) {
                    tmpUUID = childcmd.getUUID();
                    this.webForm = childcmd.getTargetForm() != null;
                    break;
                }
            }
        }
        final UUID uuid4NewPage = tmpUUID;

        final LazyIframe centerPanel = new LazyIframe("centerPanel", new IFrameProvider()
        {

            private static final long serialVersionUID = 1L;

            @Override
            public Page getPage(final Component _component)
            {
                Page error = null;
                WebPage page = null;
                try {
                    if (ContentContainerPage.this.webForm) {
                        final UIForm uiForm = new UIForm(uuid4NewPage, _instanceKey).setPagePosition(PagePosition.TREE);
                        page = new FormPage(Model.of(uiForm), getPageReference());
                    } else {
                        if (getCommand(uuid4NewPage).getTargetStructurBrowserField() == null) {
                            if ("GridX".equals(Configuration.getAttribute(ConfigAttribute.TABLE_DEFAULTTYPETREE))) {
                                page = new GridPage(Model.of(UIGrid.get(uuid4NewPage, PagePosition.TREE)
                                                .setCallInstance(Instance.get(_instanceKey))));
                            } else {
                                final UITable uiTable = new UITable(uuid4NewPage, _instanceKey)
                                                .setPagePosition(PagePosition.TREE);
                                page = new TablePage(Model.of(uiTable));
                            }
                        } else {
                            if ("GridX".equals(Configuration.getAttribute(
                                            ConfigAttribute.STRUCBRWSR_DEFAULTTYPETREE))) {
                                page = new GridPage(Model.of(UIGrid.get(uuid4NewPage, PagePosition.TREE)
                                                .setCallInstance(Instance.get(_instanceKey))));
                            } else {
                                page = new StructurBrowserPage(uuid4NewPage, _instanceKey, getPageReference());
                            }
                        }
                    }
                } catch (final EFapsException e) {
                    error = new ErrorPage(e);
                }
                return error == null ? page : error;
            }
        }, null);

        borderPanel.add(centerPanel);
        centerPanel.add(new ContentPaneBehavior(Region.CENTER, false));
        this.centerPanelId = centerPanel.getMarkupId(true);

        borderPanel.add(new SidePanel("leftPanel", _uuid, _instanceKey, _selectCmdUUID,
                        this.structurbrowser));
    }
private void initialise ( final UUID _uuid , final String _instanceKey , final UUID _selectCmdUUID ) throws EFapsException { final WebMarkupContainer borderPanel = new WebMarkupContainer ( "borderPanel" ) ; this . add ( borderPanel ) ; borderPanel . add ( new BorderContainerBehavior ( Design . SIDEBAR , true ) ) ; this . borderPanelId = borderPanel . getMarkupId ( true ) ; final AbstractCommand cmd = getCommand ( _uuid ) ; UUID tmpUUID = _uuid ; this . webForm = cmd . getTargetForm ( ) != null ; if ( cmd instanceof Menu ) { for ( final AbstractCommand childcmd : ( ( Menu ) cmd ) . getCommands ( ) ) { if ( _selectCmdUUID == null && childcmd . isDefaultSelected ( ) ) { tmpUUID = childcmd . getUUID ( ) ; this . webForm = childcmd . getTargetForm ( ) != null ; break ; } else if ( childcmd . getUUID ( ) . equals ( _selectCmdUUID ) ) { tmpUUID = childcmd . getUUID ( ) ; this . webForm = childcmd . getTargetForm ( ) != null ; break ; } } } final UUID uuid4NewPage = tmpUUID ; final LazyIframe centerPanel = new LazyIframe ( "centerPanel" , new IFrameProvider ( ) { private static final long serialVersionUID = 1L ; @ Override public Page getPage ( final Component _component ) { Page error = null ; WebPage page = null ; try { if ( ContentContainerPage . this . webForm ) { final UIForm uiForm = new UIForm ( uuid4NewPage , _instanceKey ) . setPagePosition ( PagePosition . TREE ) ; page = new FormPage ( Model . of ( uiForm ) , getPageReference ( ) ) ; } else { if ( getCommand ( uuid4NewPage ) . getTargetStructurBrowserField ( ) == null ) { if ( "GridX" . equals ( Configuration . getAttribute ( ConfigAttribute . TABLE_DEFAULTTYPETREE ) ) ) { page = new GridPage ( Model . of ( UIGrid . get ( uuid4NewPage , PagePosition . TREE ) . setCallInstance ( Instance . get ( _instanceKey ) ) ) ) ; } else { final UITable uiTable = new UITable ( uuid4NewPage , _instanceKey ) . setPagePosition ( PagePosition . TREE ) ; page = new TablePage ( Model . of ( uiTable ) ) ; } } else { if ( "GridX" . equals ( Configuration . getAttribute ( ConfigAttribute . STRUCBRWSR_DEFAULTTYPETREE ) ) ) { page = new GridPage ( Model . of ( UIGrid . get ( uuid4NewPage , PagePosition . TREE ) . setCallInstance ( Instance . get ( _instanceKey ) ) ) ) ; } else { page = new StructurBrowserPage ( uuid4NewPage , _instanceKey , getPageReference ( ) ) ; } } } } catch ( final EFapsException e ) { error = new ErrorPage ( e ) ; } return error == null ? page : error ; } } , null ) ; borderPanel . add ( centerPanel ) ; centerPanel . add ( new ContentPaneBehavior ( Region . CENTER , false ) ) ; this . centerPanelId = centerPanel . getMarkupId ( true ) ; borderPanel . add ( new SidePanel ( "leftPanel" , _uuid , _instanceKey , _selectCmdUUID , this . structurbrowser ) ) ; }
Method to initialize the Page.

@param _uuid uuid of the command
@param _instanceKey key to the instance
@param _selectCmdUUID uuid of the selected Command
@throws EFapsException on error
Method to initialize the Page .