protected void openGalleryDialog() {

        String title = org.opencms.gwt.client.Messages.get().key(
            org.opencms.gwt.client.Messages.GUI_GALLERY_SELECT_DIALOG_TITLE_0);
        final CmsFramePopup popup = new CmsFramePopup(title, buildGalleryUrl());
        popup.setCloseHandler(new Runnable() {

            public void run() {

                m_textbox.setGhostMode(false);

            }

        });
        popup.setId(m_id);
        popup.getFrame().setSize("700px", "490px");
        popup.center();

        CmsPushButton button = new CmsPushButton(I_CmsButton.DELETE_SMALL);
        button.setButtonStyle(ButtonStyle.FONT_ICON, null);
        button.setSize(Size.small);
        Style style = button.getElement().getStyle();
        style.setRight(4, Unit.PX);
        style.setTop(0, Unit.PX);
        style.setPosition(Position.ABSOLUTE);
        style.setCursor(Cursor.POINTER);
        button.addClickHandler(new ClickHandler() {

            /**
             * @see com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event.dom.client.ClickEvent)
             */
            public void onClick(ClickEvent event) {

                popup.hide();
            }
        });

        popup.insertFront(button);
    }
protected void openGalleryDialog ( ) { String title = org . opencms . gwt . client . Messages . get ( ) . key ( org . opencms . gwt . client . Messages . GUI_GALLERY_SELECT_DIALOG_TITLE_0 ) ; final CmsFramePopup popup = new CmsFramePopup ( title , buildGalleryUrl ( ) ) ; popup . setCloseHandler ( new Runnable ( ) { public void run ( ) { m_textbox . setGhostMode ( false ) ; } } ) ; popup . setId ( m_id ) ; popup . getFrame ( ) . setSize ( "700px" , "490px" ) ; popup . center ( ) ; CmsPushButton button = new CmsPushButton ( I_CmsButton . DELETE_SMALL ) ; button . setButtonStyle ( ButtonStyle . FONT_ICON , null ) ; button . setSize ( Size . small ) ; Style style = button . getElement ( ) . getStyle ( ) ; style . setRight ( 4 , Unit . PX ) ; style . setTop ( 0 , Unit . PX ) ; style . setPosition ( Position . ABSOLUTE ) ; style . setCursor ( Cursor . POINTER ) ; button . addClickHandler ( new ClickHandler ( ) { public void onClick ( ClickEvent event ) { popup . hide ( ) ; } } ) ; popup . insertFront ( button ) ; }
Internal method which opens the gallery dialog.<p>