Package com.gwtext.client.widgets.layout

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


        tp.setLayoutOnTabChange( true );
        tp.setActiveTab( 0 );
        tp.setEnableTabScroll( true );
        tp.setMinTabWidth( 90 );

        centerLayoutData = new BorderLayoutData( RegionPosition.CENTER );
        centerLayoutData.setMargins( new Margins( 5,
                                                  0,
                                                  5,
                                                  5 ) );
View Full Code Here


        mainPanel = new Panel();
        mainPanel.setLayout(new BorderLayout());
        mainPanel.setMargins(0, 0, 0, 0);

        BorderLayoutData northLayoutData = new BorderLayoutData(RegionPosition.NORTH);
        northLayoutData.setMargins(0, 0, 0, 0);

        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());
View Full Code Here

        mainPanel = new Panel();
        mainPanel.setLayout(new BorderLayout());
        mainPanel.setMargins(0, 0, 0, 0);

        BorderLayoutData northLayoutData = new BorderLayoutData(RegionPosition.NORTH);
        northLayoutData.setMargins(0, 0, 0, 0);

        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());
View Full Code Here

        tp.setLayoutOnTabChange( true );
        tp.setActiveTab( 0 );
        tp.setEnableTabScroll( true );
        tp.setMinTabWidth( 90 );

        centerLayoutData = new BorderLayoutData( RegionPosition.CENTER );
        centerLayoutData.setMargins( new Margins( 5,
                                                  0,
                                                  5,
                                                  5 ) );
View Full Code Here

    super();
    setLayout( new BorderLayout() );
    setPaddings( 10 );

    BorderLayoutData data = new BorderLayoutData( RegionPosition.CENTER );
    this.messageListPanel = new MessageListPanel();
    this.messageListPanel.getGridPanel().addGridRowListener( new ContextMenuListener() );
    this.messageListPanel.getGridPanel().getSelectionModel().addListener( new MessageRowSelectionListener() );
    this.messageListPanel.getGridPanel().addGridListener( new MessageGridListener() );
    add( this.messageListPanel, data );
View Full Code Here

      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 );
View Full Code Here

          }
        }
      }
    });

    add(this.gridPanel, new BorderLayoutData(RegionPosition.CENTER));

    // Identity details
    this.detailsFormPanel = new ModelFormPanel<Identity>();
    this.detailsFormPanel.setFrame(true);
    this.detailsFormPanel.setBorder(false);
    this.detailsFormPanel.setLabelAlign(Position.RIGHT);
    this.detailsFormPanel.setLabelWidth(110);
    this.detailsFormPanel.setButtonAlign(Position.RIGHT);
    this.detailsFormPanel.setAutoHeight(true);

    Checkbox standardCheckbox = new Checkbox(TextProvider.get().identities_panel_label_standard(), "standard");
    standardCheckbox.setDisabled(true);
    this.detailsFormPanel.add(standardCheckbox);

    TextField textfield = null;
    KeyListener keyListener = new KeyListener() {

      public void onKey( int key, EventObject e ) {

        if (key == KeyboardListener.KEY_ENTER) {
          resumeIdentities();
        }
      }
    };

    this.formFields = new ArrayList<Component>();

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_name(),
        "displayName"), new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(
        textfield = new TextField(TextProvider.get().identities_panel_label_email(), "email"),
        new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_organisation(),
        "organisation"), new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_reply(),
        "replyTo"), new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_bcc(), "bcc"),
        new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextArea(TextProvider.get().identities_panel_label_signature(),
        "signature"), new AnchorLayoutData("60%"));
    this.formFields.add(textfield);

    // Checkbox checkbox = new Checkbox(
    // TextProvider.get().identities_panel_label_htmlsignature(),
    // "htmlSignature" );
    // this.detailsFormPanel.add( checkbox );
    // this.formFields.add( checkbox );

    Button button = new Button(TextProvider.get().common_button_apply(), new ButtonListenerAdapter() {

      @Override
      public void onClick( Button button, EventObject e ) {

        resumeIdentities();
      }
    });
    this.detailsFormPanel.addButton(button);
    this.formFields.add(button);

    add(this.detailsFormPanel, new BorderLayoutData(RegionPosition.SOUTH));
  }
View Full Code Here

    setAutoScroll( true );

    createTopBanner();
    createContentPanel();

    BorderLayoutData topData = new BorderLayoutData( RegionPosition.NORTH );
    topData.setFloatable( true );
    topData.setMinHeight( 0 );
    BorderLayoutData centerData = new BorderLayoutData( RegionPosition.CENTER );
    centerData.setMinHeight( 0 );

    add( this.topBanner, topData );
    add( this.contentPanel, centerData );
    setBodyStyle( "background-color: #FFFFFF" );
View Full Code Here

        ((TextArea) field).setCaretPosition( 0, 0 );
      }
    } );
    this.textPanelWrapper.add( this.plainMessageField );

    add( this.formPanel, new BorderLayoutData( RegionPosition.NORTH ) );
    add( this.textPanelWrapper, new BorderLayoutData( RegionPosition.CENTER ) );

    WindowRegistry.CONTACT_LIST_WINDOW.get( ContactListWindow.class ).addOkButtonListener(
        new ButtonListenerAdapter() {

          @Override
View Full Code Here

        startExtendedSearch( extendedSearchPanel.getParams() );
      }
    } );

    this.gridPanelWrapper.add( this.extendedSearchPanel, new BorderLayoutData( RegionPosition.NORTH ) );
    this.gridPanelWrapper.add( this.gridPanel, new BorderLayoutData( RegionPosition.CENTER ) );

    add( this.gridPanelWrapper );

    this.messageLoadTimer = new MessagePreviewTimer();
View Full Code Here

TOP

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

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.