Package com.gwtext.client.widgets.layout

Examples of com.gwtext.client.widgets.layout.FitLayout


     * @param mainPanel the application's "main" / top level panel which can contain child panels and components.
     */
    public Viewport(Panel mainPanel) {

        final Panel viewportPanel = new Panel();
        viewportPanel.setLayout(new FitLayout());
        viewportPanel.add(mainPanel);

        jsObj = create(viewportPanel.getConfig());
        doLayout();       

View Full Code Here


     * @param mainPanel the application's "main" / top level panel which can contain child panels and components.
     */
    public Viewport(Panel mainPanel) {

        final Panel viewportPanel = new Panel();
        viewportPanel.setLayout(new FitLayout());
        viewportPanel.add(mainPanel);

        jsObj = create(viewportPanel.getConfig());
        doLayout();       

View Full Code Here

        BorderLayoutData centerLayoutData = new BorderLayoutData(RegionPosition.CENTER);
        centerLayoutData.setMargins(new Margins(5, 0, 5, 5));

        Panel centerPanelWrappper = new Panel();
        centerPanelWrappper.setLayout(new FitLayout());
        centerPanelWrappper.setBorder(false);
        centerPanelWrappper.setBodyBorder(false);

        if (bi.showChrome) {
            //setup the west regions layout properties
            BorderLayoutData westLayoutData = new BorderLayoutData(RegionPosition.WEST);
            westLayoutData.setMargins(new Margins(5, 5, 0, 5));
            westLayoutData.setCMargins(new Margins(5, 5, 5, 5));
            westLayoutData.setMinSize(155);
            westLayoutData.setMaxSize(350);
            westLayoutData.setSplit(true);

            //create the west panel and add it to the main panel applying the west region layout properties
            Panel westPanel = new Panel();
            westPanel.setId("side-nav");
            westPanel.setTitle(((Constants) GWT.create(Constants.class)).Navigate());
            westPanel.setLayout(new FitLayout());
            westPanel.setWidth(210);
            westPanel.setCollapsible(true);//MN createWestPanel();
            westPanel.add(accordion);
            mainPanel.add(westPanel, westLayoutData);
        }
View Full Code Here

            dialog.setPosition( popLeft,
                                popTop );
        }

        Panel p = new Panel();
        p.setLayout( new FitLayout() );
        p.add( form );
        dialog.add( p );
        p.setBodyBorder( false );
        p.setPaddings( 0 );
View Full Code Here

        BorderLayoutData centerLayoutData = new BorderLayoutData(RegionPosition.CENTER);
        centerLayoutData.setMargins(new Margins(5, 0, 5, 5));

        Panel centerPanelWrappper = new Panel();
        centerPanelWrappper.setLayout(new FitLayout());
        centerPanelWrappper.setBorder(false);
        centerPanelWrappper.setBodyBorder(false);

        if (bi.showChrome) {
            //setup the west regions layout properties
            BorderLayoutData westLayoutData = new BorderLayoutData(RegionPosition.WEST);
            westLayoutData.setMargins(new Margins(5, 5, 0, 5));
            westLayoutData.setCMargins(new Margins(5, 5, 5, 5));
            westLayoutData.setMinSize(155);
            westLayoutData.setMaxSize(350);
            westLayoutData.setSplit(true);

            //create the west panel and add it to the main panel applying the west region layout properties
            Panel westPanel = new Panel();
            westPanel.setId("side-nav");
            westPanel.setTitle(((Constants) GWT.create(Constants.class)).Navigate());
            westPanel.setLayout(new FitLayout());
            westPanel.setWidth(210);
            westPanel.setCollapsible(true);//MN createWestPanel();
            westPanel.add(accordion);
            mainPanel.add(westPanel, westLayoutData);
        }
View Full Code Here

            dialog.setPosition( popLeft,
                                popTop );
        }

        Panel p = new Panel();
        p.setLayout( new FitLayout() );
        p.add( form );
        dialog.add( p );
        p.setBodyBorder( false );
        p.setPaddings( 0 );
View Full Code Here

   *
   */
  PreferencesWindow() {

    super( TextProvider.get().dialog_preferences_header(), 600, 560, true, true );
    setLayout( new FitLayout() );
    setModal( true );
    setButtonAlign( Position.CENTER );
    setCloseAction( Window.HIDE );

    this.tabPanel = new TabPanel();
View Full Code Here

   */
  MailFolderWindow() {

    super();
    setModal( true );
    setLayout( new FitLayout() );
    setCloseAction( Window.HIDE );

    setWidth( 250 );
    setHeight( 300 );
    setResizable( false );
View Full Code Here

    super( "", false, true );
    setClosable( true );
    setMaximizable( true );
    setCollapsible( true );
    setLayout( new FitLayout() );
    setTopToolbar( ToolbarManager.get().getOpenMessageToolbar() );
    setCloseAction( Window.HIDE );

    this.messageReadingPanePanel = (MessageReadingPanePanel) PanelRegistry.MESSAGE_READING_PANE_FOR_WINDOW.get();
    add( this.messageReadingPanePanel );
View Full Code Here

  public ExtendedSearchPanel( boolean visible ) {

    super();
    setFrame( true );
    setBorder( false );
    setLayout( new FitLayout() );
    setVisible( visible );
    setPaddings( 1, 1, 1, 1 );

    this.from = new TextField( TextProvider.get().extended_search_panel_from(), SearchFields.FROM.name(), 150 );
    this.to = new TextField( TextProvider.get().extended_search_panel_to(), SearchFields.TO.name(), 150 );
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.layout.FitLayout

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.