GIGJ.COM
welcome to my space
X
Welcome to:gigj.com
Personal Injury | Languages | Soups | Photography | Email | Prepress | Exotic Locations | Computer Games | Related articles
Search:  
NAVIGATION - HOME
Abnormal Behavior of Form Compoments (ComboBox and DateField)
Published by: rose 2010-03-17

  • Hi,

    If I add the FormPanel from FormPanelPage to a Window, the buttons (circled in red) are not rendered properly. But, if FormPanel is added to ContentPanel, it is normal.


    http://img503.imageshack.us/img503/6550/normalqp3.png

    http://img411.imageshack.us/img411/9510/abnormalef6.png

    /*
    * Ext GWT - Ext for GWT
    * (c) 2007, 2008, Ext JS, LLC.
    Guide to Operations::
    This chapter provides an overview of the various components that comprise an ABS /MDMS its onsite and offsite location and date fields are invalid,
    http://www.sysworks.com.au/disk$axpdocjun031/sysman/abs41/abs041_ops_gd.html
    HOME
    * licensing@extjs.com
    *
    * http://extjs.com/license
    */
    package com.extjs.gxt.samples.explorer.client.pages;

    import java.util.Collections;
    import java.util.Comparator;
    import java.util.List;

    import com.extjs.gxt.samples.resources.client.Stock;
    import com.extjs.gxt.samples.resources.client.TestData;
    import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
    import com.extjs.gxt.ui.client.Style.Scroll;
    import com.extjs.gxt.ui.client.store.ListStore;
    import com.extjs.gxt.ui.client.widget.LayoutContainer;
    import com.extjs.gxt.ui.client.widget.Window;
    import com.extjs.gxt.ui.client.widget.button.Button;
    import com.extjs.gxt.ui.client.widget.form.CheckBox;
    import com.extjs.gxt.ui.client.widget.form.CheckBoxGroup;
    import com.extjs.gxt.ui.client.widget.form.ComboBox;
    import com.extjs.gxt.ui.client.widget.form.DateField;
    import com.extjs.gxt.ui.client.widget.form.FormPanel;
    import com.extjs.gxt.ui.client.widget.form.NumberField;
    import com.extjs.gxt.ui.client.widget.form.Radio;
    import com.extjs.gxt.ui.client.widget.form.RadioGroup;
    import com.extjs.gxt.ui.client.widget.form.TextArea;
    import com.extjs.gxt.ui.client.widget.form.TextField;
    import com.extjs.gxt.ui.client.widget.form.TimeField;
    import com.extjs.gxt.ui.client.widget.layout.FitLayout;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.Command;
    import com.google.gwt.user.client.DeferredCommand;
    import com.google.gwt.user.client.ui.RootPanel;

    public class FormPanelPage extends LayoutContainer implements EntryPoint {

    public void onModuleLoad() {
    RootPanel.get().add(this);
    }

    public FormPanelPage() {
    // next 2 line is only used to pass layout to containing container
    // this will have NO effect outside of the explorer demo
    Copyright notice ** ** ** ** (c) 2003-2008 RSSOwl Development Team ::
    Changing fonts did not update all GUI components. Made RSSOwl more robust for extreme user behaviour when threads where running in the background
    http://www.rssowl.org/CHANGELOG.txt
    HOME
    setData("layout", new FitLayout());

    setScrollMode(Scroll.AUTO);

    final Window window = new Window();
    window.setTitle("Testing");
    window.setHeight(400);
    window.setWidth(600);
    FormPanel panel = new FormPanel();
    panel.setFrame(true);
    panel.setFieldWidth(210);
    panel.setLabelWidth(100);
    panel.setButtonAlign(HorizontalAlignment.CENTER);
    panel.setHeading("Simple Form");
    panel.setIconStyle("icon-form");
    panel.setWidth(400);
    panel.setStyleAttribute("padding", "20");

    TextField text = new TextField();
    text.setFieldLabel("Name");
    text.setEmptyText("Enter your full name");
    text.setAllowBlank(false);
    text.setMinLength(4);
    panel.add(text);

    NumberField number = new NumberField();
    number.setFieldLabel("Age");
    number.setEmptyText("Enter your age");
    number.setAllowBlank(false);
    panel.add(number);

    text = new TextField();
    text.setFieldLabel("Email");
    panel.add(text);

    List stocks = TestData.getStocks();
    Collections.sort(stocks, new Comparator() {
    public int compare(Stock arg0, Stock arg1) {
    return arg0.getName().compareTo(arg1.getName());
    }
    });

    ListStore store = new ListStore();
    store.add(stocks);

    ComboBox combo = new ComboBox();
    combo.setFieldLabel("Company");
    combo.setDisplayField("name");
    combo.setStore(store);
    panel.add(combo);

    DateField date = new DateField();
    date.setFieldLabel("Birthday");
    panel.add(date);

    TimeField time = new TimeField();
    time.setFieldLabel("Time");
    panel.add(time);

    CheckBox check1 = new CheckBox();
    check1.setBoxLabel("Classical");

    CheckBox check2 = new CheckBox();
    check2.setBoxLabel("Rock");
    check2.setValue(true);

    CheckBox check3 = new CheckBox();
    check3.setFieldLabel("Blue");

    CheckBoxGroup checkGroup = new CheckBoxGroup();
    checkGroup.setFieldLabel("Music");
    checkGroup.add(check1);
    checkGroup.add(check2);
    checkGroup.add(check3);
    panel.add(checkGroup);

    Radio radio = new Radio();
    radio.setName("radio");
    radio.setFieldLabel("Red");
    radio.setValue(true);

    Radio radio2 = new Radio();
    radio2.setName("radio");
    radio2.setFieldLabel("Blue");

    RadioGroup radioGroup = new RadioGroup("test");
    radioGroup.setFieldLabel("Favorite Color");
    radioGroup.add(radio);
    radioGroup.add(radio2);
    panel.add(radioGroup);

    TextArea description = new TextArea();
    description.setPreventScrollbars(true);
    description.setFieldLabel("Description");
    panel.add(description);

    panel.addButton(new Button("Save"));
    panel.addButton(new Button("Cancel"));

    window.add(panel);
    DeferredCommand.addCommand(new Command() {

    public void execute() {
    window.show();
    }

    });
    }

    }


  • It works fine when I try the latest build from SVN.


  • You code works fine in my tests. What version of GXT, browser, and OS?


  • anyone?





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks

    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Abnormal Behavior of Form Compoments (ComboBox and DateField) , Please add it free.
  • can gay people inherit the kingdom of god
  • how can you get rabbi 039 s
  • my best friend is moving what should i give her
  • i need help with my ipod
  • i am stressing is he going to come home this week from work this is so hard
  • great authors in american schools
  • right method of training for a rowdy dog
  • what 039 s a question to make someone think
  • what would you do if you found out you were hiv positive
  • when should a baby move up to the medium flow nipple
  • some christian advice
  • i want to spice things up suggestions please
  • what would happen if your brain didn 039 t instigate a fever when your body caught a cold
  • what if you had silver shoes and black jeans what color top would go best
  • i 039 m a ten year old kid and i 039 m gifted but i suffer from poor memory what do i do
  • she wont go away
  • nick jonas pictures
  • how can i get this guy to be more interested
  • which book i should study for grade 12 english need to know tonight please
  • i have a brown vaginal discharge and a bad odor does anyone have any idea what it could be
  • why would he continue to text some random person
  • trying to breed pugs but female to fierce
  • question about handbag names
  • dog biting crook ok
  • i need advice to help my friend
  • what hairstyle should i get pics
  • does your boyfriend husband partner help you around the house

  • About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 gigj.com All Rights Reserved
    Site made&Support support@gigj.com    E-mail: web@gigj.com