Package com.gwtext.client.widgets

Examples of com.gwtext.client.widgets.Panel


  /**
   *
   */
  private void createTopBanner() {

    this.topBanner = new Panel();
    this.topBanner.setBorder( false );
    this.topBanner.setFrame( true );
    this.topBanner.setLayout( new FitLayout() );
    this.topBanner.setHeader( false );
    this.topBanner.setAutoScroll( false );
View Full Code Here


  /**
   *
   */
  private void createContentPanel() {

    this.contentPanel = new Panel();
    this.contentPanel.setPaddings( 5 );
    this.contentPanel.setFrame( false );
    this.contentPanel.setBorder( false );
    this.contentPanel.setAutoScroll( false );
    this.contentPanel.setAutoHeight( true );
View Full Code Here

        "100%" ) );

    this.subjectText = new TextField( TextProvider.get().window_compose_message_label_subject() );
    this.formPanel.add( this.subjectText, new AnchorLayoutData( "100%" ) );

    this.attachmentsPanel = new Panel();
    this.attachmentsPanel.setLayout( new ColumnLayout() );
    this.formPanel.add( this.attachmentsPanel, new AnchorLayoutData( "100%" ) );

    this.textPanelWrapperLayout = new CardLayout( true );
    this.textPanelWrapper = new Panel();
    this.textPanelWrapper.setBorder( false );
    this.textPanelWrapper.setLayout( this.textPanelWrapperLayout );

    this.htmlMessageField = new HtmlEditor();
    this.textPanelWrapper.add( this.htmlMessageField );
View Full Code Here

  /**
   * Set the proper window size and position.
   */
  private void calculateSize() {

    Panel panel = PanelRegistry.LIST_DETAILS_PANEL.get();
    int posx = panel.getAbsoluteLeft();
    int posy = panel.getAbsoluteTop();
    int width = panel.getWidth();
    int height = panel.getHeight();
    setPosition( posx, posy );
    setWidth( width );
    setHeight( height );
  }
View Full Code Here

    setBorder( false );
    setLayout( new FitLayout() );

    this.columnModel = createColumnModel();

    this.gridPanelWrapper = new Panel();
    this.gridPanelWrapper.setBorder( false );
    this.gridPanelWrapper.setFrame( false );
    this.gridPanelWrapper.setLayout( new BorderLayout() );

    this.gridPanel = new GridPanel();
View Full Code Here

  /**
   *
   */
  private void createTopBanner() {

    this.topBanner = new Panel();
    this.topBanner.setBorder( false );
    this.topBanner.setFrame( true );
    this.topBanner.setLayout( new RowLayout() );
    this.topBanner.setHeader( false );
    this.topBanner.setAutoHeight( true );

    this.subjectLine = new Panel();
    this.subjectLine.setPaddings( 1, 0, 0, 2 );
    this.subjectLine.setAutoHeight( true );
    this.subjectLine.setLayout( new ColumnLayout() );
    this.subjectPanel = new HTMLPanel();
    this.subjectPanel.addStyleName( "message-subject" );
    this.subjectLine.add( this.subjectPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.subjectLine, new RowLayoutData() );
    this.subjectLine.setVisible( false );

    this.fromLine = new Panel();
    this.fromLine.setPaddings( 1, 0, 0, 2 );
    this.fromLine.setLayout( new ColumnLayout() );
    this.fromLine.setAutoHeight( true );
    HTMLPanel label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_from() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.fromLine.add( label );
    this.fromPanel = new EmailAddressLinePanel();
    this.fromLine.add( this.fromPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.fromLine, new RowLayoutData() );
    this.fromLine.setVisible( false );

    this.toLine = new Panel();
    this.toLine.setPaddings( 1, 0, 0, 2 );
    this.toLine.setLayout( new ColumnLayout() );
    this.toLine.setAutoHeight( true );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_to() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.toLine.add( label );
    this.toPanel = new EmailAddressLinePanel();
    this.toLine.add( this.toPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.toLine, new RowLayoutData() );
    this.toLine.setVisible( false );

    this.ccLine = new Panel();
    this.ccLine.setPaddings( 1, 0, 0, 2 );
    this.ccLine.setAutoHeight( true );
    this.ccLine.setLayout( new ColumnLayout() );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_cc() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.ccLine.add( label );
    this.ccPanel = new EmailAddressLinePanel();
    this.ccLine.add( this.ccPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.ccLine, new RowLayoutData() );
    this.ccLine.setVisible( false );

    this.replyToLine = new Panel();
    this.replyToLine.setPaddings( 1, 0, 0, 2 );
    this.replyToLine.setAutoHeight( true );
    this.replyToLine.setLayout( new ColumnLayout() );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_replyto() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.replyToLine.add( label );
    this.replyToPanel = new EmailAddressLinePanel();
    this.replyToLine.add( this.replyToPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.replyToLine, new RowLayoutData() );
    this.replyToLine.setVisible( false );

    this.dateLine = new Panel();
    this.dateLine.setPaddings( 1, 0, 0, 2 );
    this.dateLine.setAutoHeight( true );
    this.dateLine.setLayout( new ColumnLayout() );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_date() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.dateLine.add( label );
    this.datePanel = new HTMLPanel();
    this.datePanel.setHtml( GWTUtil.formatDate( new Date() ) );
    this.dateLine.add( this.datePanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.dateLine, new RowLayoutData() );
    this.dateLine.setVisible( false );

    this.attachmentLine = new Panel();
    this.attachmentLine.setAutoHeight( true );
    this.attachmentLine.setBorder( false );
    this.attachmentLine.setFrame( false );
    this.attachmentLine.setPaddings( 1, 0, 0, 2 );
    this.attachmentLine.setLayout( new ColumnLayout() );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_attachment() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.attachmentLine.add( label );
    this.attachmentPanel = new Panel();
    this.attachmentPanel.setLayout( new ColumnLayout() );
    this.attachmentLine.add( this.attachmentPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.attachmentLine, new RowLayoutData() );
    this.attachmentLine.setVisible( false );

    this.imageLoadLine = new Panel();
    this.imageLoadLine.setAutoHeight( true );
    this.imageLoadLine.setBorder( false );
    this.imageLoadLine.setFrame( false );
    this.imageLoadLine.setPaddings( 1, 0, 0, 2 );
    this.imageLoadLine.setLayout( new ColumnLayout() );
View Full Code Here

    this.tabPanel.setBorder( false );

    this.contactFormPanel = createContactFormPanel();
    this.tabPanel.add( this.contactFormPanel );

    Panel addressPanel = new Panel( TextProvider.get().contact_window_address_panel() );
    addressPanel.setBorder( false );
    addressPanel.setAutoScroll( true );
    addressPanel.setLayout( new RowLayout() );

    this.privateAddressFormPanel = createPrivateAddressFormPanel();
    addressPanel.add( this.privateAddressFormPanel );
    this.businessAddressFormPanel = createBusinessAddressFormPanel();
    addressPanel.add( this.businessAddressFormPanel );
    this.tabPanel.add( addressPanel );

    this.noticeFormPanel = createNoticeFormPanel();
    this.tabPanel.add( this.noticeFormPanel );
View Full Code Here

//        Application.get().getPlaceManager().setCurrentPlace(ProjectListPlace.DEFAULT_PLACE);
    }


    private Optional<ProjectId> getProjectIdForActiveTab() {
        Panel activeTab = getActiveTab();
        final Optional<ProjectId> projectId;
        if(activeTab instanceof ProjectDisplay) {
            projectId = Optional.of(((ProjectDisplay) activeTab).getProjectId());
        }
        else {
View Full Code Here

        FlexTable topEditProfileTable = new FlexTable();
        topEditProfileTable.setWidget(0, 0, editProfileFormPanel);
        topEditProfileTable.getFlexCellFormatter().setAlignment(0, 0, HasAlignment.ALIGN_CENTER,
                HasAlignment.ALIGN_MIDDLE);
        Panel panel = new Panel();
        panel.setBorder(false);
        panel.setPaddings(15);
        panel.setCls("loginpanel");
        panel.setLayout(new FitLayout());
        win.setLayout(new FitLayout());

        panel.add(topEditProfileTable, new AnchorLayoutData("-100 30%"));

        win.setTitle("Edit Profile");
        win.setClosable(true);
        win.setWidth(408);
        win.setHeight(400);
View Full Code Here

            // multiple tabs
            for (Iterator iterator = ((Collection) tabs).iterator(); iterator.hasNext();) {
                Object tabObj = iterator.next();
                if (tabObj instanceof Map) {
                    Map tabMap = (Map) tabObj;
                    Panel tab = createInnerPanel(tabMap);
                    tab.setVisible(false);
                    setTabVisible(tab, false);
                    tabPanel.add(tab);
                    tabPanel.hideTabStripItem(tab);

                    String title = (String) tabMap.get(FormConstants.TITLE);
                    if (title != null) {
                       tab.setTitle(title);
                    }
                    String headerCssClass = (String) tabMap.get(FormConstants.HEADER_CSS_CLASS);
                    if (headerCssClass != null) {
                        Ext.get(tabPanel.getTabEl(tab)).addClass(headerCssClass);
                    }
                }
            }
        } else { // one tab
            Panel createInnerPanel = createInnerPanel(formConf);
            if (createInnerPanel != null) {
                tabPanel.add(createInnerPanel);
            }
        }
        return tabPanel;
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.Panel

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.