Package com.gwtext.client.core

Examples of com.gwtext.client.core.RegionPosition


   */
  private void setReadingPaneState() {

    Preferences preferences = GWTSessionManager.get().getPreferences();

    RegionPosition readingPanePos = null;
    if ( preferences.getReadingPane() == Preferences.READING_PANE_RIGHT ) {
      readingPanePos = RegionPosition.EAST;
    } else {
      readingPanePos = RegionPosition.SOUTH;
    }

    this.readingPaneLayoutData = new BorderLayoutData( readingPanePos );
    this.readingPaneLayoutData.setSplit( true );

    this.readingPanePanel = PanelRegistry.MESSAGE_READING_PANE_PREVIEW.get();
    if ( readingPanePos.equals( RegionPosition.SOUTH ) ) {
      this.readingPanePanel.setHeight( (Window.getClientHeight() - 80) / 2 );
    } else {
      this.readingPanePanel.setWidth( 400 );
    }
    add( this.readingPanePanel, this.readingPaneLayoutData );
View Full Code Here

TOP

Related Classes of com.gwtext.client.core.RegionPosition

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.