GIGJ.COM
welcome to my space
X
Search:  
Personal Injury | Languages | Soups | Photography | Email | Prepress | Exotic Locations | Computer Games | Related articles
Welcome to:gigj.com
NAVIGATION - HOME
strange things with FormPanel
Published by: jack 2010-03-15
  • When you click on "click me" you'll see result which is shown in attachment screenshot. It's made in Firefox 2.
    In IE6 the only difference is DataList has no horizontal scroll bar.

    Am I doing something wrong?


    public class Test extends LayoutContainer implements EntryPoint {
    public void onModuleLoad() {
    Viewport v = new Viewport();
    v.setLayout(new FitLayout());
    v.add(this);
    RootPanel.get().add(v);
    }


    private ContentPanel north = new ContentPanel();
    private ContentPanel west = new ContentPanel();
    private ContentPanel center = new ContentPanel();
    private ContentPanel east = new ContentPanel();
    private ContentPanel south = new ContentPanel();

    protected void onRender(Element element, int i) {
    super.onRender(element, i);

    createBorderLayout();

    addFormPanel();
    }

    private void addFormPanel() {
    FormPanel formPanel = new FormPanel();
    formPanel.setLabelAlign(FormPanel.LabelAlign.TOP);
    formPanel.setHeaderVisible(false);
    formPanel.setBodyBorder(false);
    C-Sharp Programming [Archive] - Page 29 - CodeGuru Forums::
    Net code · C# beginer strange problem from experienced C/C++ programmer. Get Last Event Time · Drawing Form/Panel contents on Bitmap · Shortcut keys and
    http://www.codeguru.com/forum/archive/index.php/f-11-p-29.html
    HOME
    formPanel.setBorders(false);
    symfony framework forum: General discussion => Building Own Generator::
    36 posts - 7 authors - Last post: Nov 5 correct because contains some strange words, like in the following code: . around the formpanel, this will probable become obsolete.
    http://www.symfony-project.org/forum/index.php/m/61846/
    HOME
    Jewish Comics::
    On the Polish end of things, the obvious taboo is that period that began in the late . and "There Comes Now Raging Fire" in Strange Tales #176 & #177)
    http://jewishcomics.blogspot.com/
    HOME
    formPanel.setLabelWidth(210);
    formPanel.setFieldWidth(240);
    TextField networkAccountName = new TextField();
    networkAccountName.setFieldLabel("Name");
    formPanel.add(networkAccountName);

    DataList list = new DataList();
    list.setSelectionMode(Style.SelectionMode.SINGLE);
    list.setHeight(184);

    ComboBox comboBox = new ComboBox();
    comboBox.setFieldLabel("Combo");
    formPanel.add(comboBox);

    ListStore store = new ListStore();
    for (int i = 0; i < 40; i++) {
    store.add(new TestModelData("Item " + i));
    }

    DataListBinder binder = new DataListBinder(list, store);
    binder.setDisplayProperty("value");
    binder.init();

    StoreFilterField filterField = new StoreFilterField() {
    @Override
    protected boolean doSelect(Store store, TestModelData parent, TestModelData record, String property, String filter) {
    String name = record.getValue().toLowerCase();
    return name.startsWith(filter.toLowerCase());
    }
    };

    filterField.bind(store);
    filterField.setFieldLabel("Filter");
    formPanel.add(filterField);

    AdapterField listField = new AdapterField(list);
    listField.setFieldLabel("Objects");
    listField.setHeight(180);
    formPanel.add(listField);

    final Dialog dialog = new Dialog();
    dialog.setModal(true);
    dialog.setButtons("");
    dialog.add(formPanel);

    center.add(new Button("click me", new SelectionListener() {
    public void componentSelected(ComponentEvent event) {
    dialog.show();
    }
    }));
    }

    private void createBorderLayout() {
    setLayout(new BorderLayout());

    BorderLayoutData northData = new BorderLayoutData(Style.LayoutRegion.NORTH, 100);
    northData.setCollapsible(true);
    northData.setFloatable(true);
    northData.setSplit(true);
    northData.setMargins(new Margins(5, 5, 0, 5));

    BorderLayoutData westData = new BorderLayoutData(Style.LayoutRegion.WEST, 200);
    westData.setSplit(true);
    westData.setCollapsible(true);
    westData.setMargins(new Margins(5));

    BorderLayoutData centerData = new BorderLayoutData(Style.LayoutRegion.CENTER);
    centerData.setMargins(new Margins(5, 0, 5, 0));

    BorderLayoutData eastData = new BorderLayoutData(Style.LayoutRegion.EAST, 200);
    eastData.setSplit(true);
    eastData.setCollapsible(true);
    eastData.setMargins(new Margins(5));

    BorderLayoutData southData = new BorderLayoutData(Style.LayoutRegion.SOUTH, 100);
    southData.setSplit(true);
    southData.setCollapsible(true);
    southData.setFloatable(true);
    southData.setMargins(new Margins(0, 5, 5, 5));

    add(north, northData);
    add(west, westData);
    add(center, centerData);
    add(east, eastData);
    add(south, southData);
    }

    public class TestModelData extends BaseModelData {

    public TestModelData() {
    }

    public TestModelData(String value) {
    set("value", value);
    }

    public String getValue() {
    return get("value");
    }

    }

    }


  • works fine! thanks


  • Try your code with the latest from SVN.





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks
    PRINT Add to favorites
    #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 strange things with FormPanel , Please add it free.
  • precautions should you take when using natural insecticide
  • problems with natural insecticide
  • 3 facts the help you trust baby lulu crib bedding
  • 3 key elements of the schwinn baby stroller system
  • 3 great reasons to choose carter s baby blankets
  • wise use of natural insecticides
  • modern materials improve fine bubble diffusers used in wastewater aeration
  • using soaps as a natural insecticide
  • what is natural insecticide
  • the problem with natural insecticide
  • is natural insecticide is harmful to humans and animals
  • where to buy natural insecticide
  • killing ants with natural insecticides
  • why use natural insecticide
  •  
  • the future of natural insecticide
  • a different kind of worm farm
  • 3 different types of a baby stroller cover explored
  • bayer fertilizer
  • 3 different ranges stroller baby toy belen collections to elaborate strollers
  • things to try before resorting to natural insecticide
  • what kinds of natural insecticide are on the market
  • natural insecticide for people and pets
  • natural insecticide and the third world
  • jobs that thrive because of natural insecticides
  • because just isn t the answer
  • memory gardens blooming white
  • making your own natural insecticides
  • most growers use add it fertilizer injectors

  • 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