Package com.gwtext.client.widgets.form

Examples of com.gwtext.client.widgets.form.FormPanel


  public void addHeader(String img, Widget content) {
        HorizontalPanel h = new HorizontalPanel();
        h.add( new Image( img ) );
        h.add( new HTML( " " ) );
        h.add( content );
        FormPanel f = newForm( null );
        f.add( h );
        layout.add( f );
    }
View Full Code Here


        f.add( h );
        layout.add( f );
    }

  private FormPanel newForm(final String hdr) {
    FormPanel fp = new FormPanel();
    fp.setWidth("100%");
    fp.setFrame(true);
    if (hdr != null) {
      fp.setTitle(hdr);
    }
    return fp;
  }
View Full Code Here

    return fp;
  }

    public void endSection() {

    FormPanel f = newForm(this.sectionName);

    f.add(this.currentTable);


    this.layout.add(f);
    this.sectionName = null;
  }
View Full Code Here

        this.packageName = asset.metaData.packageName;
        this.dt.tableName = asset.metaData.name;

        layout = new VerticalPanel();

        FormPanel config = new FormPanel();
        config.setTitle( constants.DecisionTable() );

        config.setBodyBorder( false );
        config.setCollapsed( true );
        config.setCollapsible( true );
       


        FieldSet conditions = new FieldSet( constants.ConditionColumns() );
        conditions.setCollapsible( true );
        conditions.add( getConditions() );
        config.add( conditions );

        FieldSet actions = new FieldSet( constants.ActionColumns() );
        actions.setCollapsible( true );
        actions.add( getActions() );
        config.add( actions );

        FieldSet grouping = new FieldSet( constants.options() );
        grouping.setCollapsible( true );
        grouping.setCollapsed( true );
        grouping.add( getGrouping() );
        grouping.add( getAttributes() );
        config.add( grouping );
        layout.add( config );
       
        VerticalPanel buttonPanel = new   VerticalPanel();
        buttonPanel.add(getToolbarMenuButton());
        layout.add( buttonPanel);
View Full Code Here

    super.initComponent();
  }

  private FormPanel createFieldPanel( TextField field ) {

    FormPanel fieldPanel = new FormPanel();
    fieldPanel.setPaddings( 1, 0, 20, 0 );
    fieldPanel.setBorder( false );
    fieldPanel.setLabelWidth( 70 );
    fieldPanel.add( field );

    return fieldPanel;
  }
View Full Code Here

    setWidth( 300 );
    setHeight( 180 );
    setPlain( true );
    setClosable( false );
    setBorder( false );
    this.formPanel = new FormPanel();
    this.formPanel.setFrame( true );
    this.formPanel.setBorder( false );
    this.formPanel.setPaddings( 10 );
    this.formPanel.setLabelWidth( 100 );
    this.formPanel.add( new HTMLPanel( TextProvider.get().logindialog_message() ) );
View Full Code Here

    this.identityStore = new IdentityStore();
    this.identityStore.setUserAccount( GWTSessionManager.get().getUserAccount() );
    this.priorityStore = new SimpleStore( new String[] { "code", "text" }, getPriorities() );

    this.formPanel = new FormPanel();
    this.formPanel.setLabelAlign( Position.RIGHT );
    this.formPanel.setAutoHeight( true );
    this.formPanel.setFrame( true );
    this.formPanel.setBorder( true );
    this.formPanel.setLabelWidth( LABEL_WIDTH );
View Full Code Here

    this.contactListPanel.setAutoHeight( false );
    this.contactListPanel.setHeight( 250 );
    this.contactListPanel.addGridRowListener( new ContactGridRowListener() );
    add( this.contactListPanel, new BorderLayoutData( RegionPosition.NORTH ) );

    FormPanel addressPanel = createAddressLines();
    add( addressPanel, new BorderLayoutData( RegionPosition.CENTER ) );

    this.okButton = new Button( TextProvider.get().common_button_ok() );
    addButton( this.okButton );
View Full Code Here

   * @param textField
   * @return
   */
  private FormPanel createAddressLines() {

    FormPanel addressPanel = new FormPanel();
    addressPanel.setFrame( true );
    addressPanel.setAutoHeight( true );

    this.to = new EmailAddressInputField( TextProvider.get().dialog_contactlist_label_to() );
    MultiFieldPanel multiField = new MultiFieldPanel();
    this.to.setWidth( "100%" );
    this.to.setHideLabel( true );
    this.toButton = new Button( this.to.getFieldLabel() );
    this.toButton.setMinWidth( LABEL_WIDTH );
    this.toButton.addListener( new ButtonListenerAdapter() {

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

        RowSelectionModel sm = contactListPanel.getGridPanel().getSelectionModel();
        if ( sm.getCount() > 0 ) {
          String address = sm.getSelected().getAsString( ContactListFields.INTERNET_ADDRESS.name() );
          if ( address != null && address.length() > 0 ) {
            to.addEmailAddress( address );
          }
        }
      }
    } );
    multiField.addToRow( this.toButton, LABEL_WIDTH + 5 );
    multiField.addToRow( this.to, new ColumnLayoutData( 1.0 ) );
    addressPanel.add( multiField, new AnchorLayoutData( "100%" ) );

    this.cc = new EmailAddressInputField( TextProvider.get().dialog_contactlist_label_cc() );
    multiField = new MultiFieldPanel();
    this.cc.setWidth( "100%" );
    this.cc.setHideLabel( true );
    this.ccButton = new Button( this.cc.getFieldLabel() );
    this.ccButton.setMinWidth( LABEL_WIDTH );
    this.ccButton.addListener( new ButtonListenerAdapter() {

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

        RowSelectionModel sm = contactListPanel.getGridPanel().getSelectionModel();
        if ( sm.getCount() > 0 ) {
          String address = sm.getSelected().getAsString( ContactListFields.INTERNET_ADDRESS.name() );
          if ( address != null && address.length() > 0 ) {
            cc.addEmailAddress( address );
          }
        }
      }
    } );
    multiField.addToRow( this.ccButton, LABEL_WIDTH + 5 );
    multiField.addToRow( this.cc, new ColumnLayoutData( 1.0 ) );
    addressPanel.add( multiField, new AnchorLayoutData( "100%" ) );

    this.bcc = new EmailAddressInputField( TextProvider.get().dialog_contactlist_label_bcc() );
    multiField = new MultiFieldPanel();
    this.bcc.setWidth( "100%" );
    this.bcc.setHideLabel( true );
    this.bccButton = new Button( this.bcc.getFieldLabel() );
    this.bccButton.setMinWidth( LABEL_WIDTH );
    this.bccButton.addListener( new ButtonListenerAdapter() {

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

        RowSelectionModel sm = contactListPanel.getGridPanel().getSelectionModel();
        if ( sm.getCount() > 0 ) {
          String address = sm.getSelected().getAsString( ContactListFields.INTERNET_ADDRESS.name() );
          if ( address != null && address.length() > 0 ) {
            bcc.addEmailAddress( address );
          }
        }
      }
    } );
    multiField.addToRow( this.bccButton, LABEL_WIDTH + 5 );
    multiField.addToRow( this.bcc, new ColumnLayoutData( 1.0 ) );
    addressPanel.add( multiField, new AnchorLayoutData( "100%" ) );

    return addressPanel;
  }
View Full Code Here

        window.setTitle("Search results");
        window.setWidth(500);
        window.setHeight(365);
        window.setLayout(new FitLayout());

        FormPanel panel = new FormPanel();

        Button showInTreeButton = new Button("Select in tree", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                doSelect(searchGrid.getSelection());
            }
        });

        Button closeButton = new Button("Close", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                window.close(); // TODO: cancel existing search
                window.destroy();
            }
        });

        panel.add(searchGrid, new AnchorLayoutData("100% 100%"));
        panel.addButton(showInTreeButton);
        panel.addButton(closeButton);

        window.add(panel);

        searchGrid.getProxy().setValueType(getSearchedValueType());
        searchGrid.setSearchFieldText(searchText);
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.form.FormPanel

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.