java - smartgwt - DynamicForm relative column width -
If I am creating a dynamic form shown below the dynamiform formiits, then 2 rows are placed. I expected that they would be in a row, the place should be distributed in the form of crossing: 20 pixels for the first column, 250 for the second and the rest for the third.
Last DynamicForm df = new DynamicForm (); Form form [] fi = new form entity [3]; // Filling up the list with a checkbox etam, a text itam and a selectItem df.setColWidths ("20", "250", "*"); df.setNumCols (3); Df.setFields (Internet); The result looks like this:
I have all the form images in a row.
Actually the title of the form item also takes a column. If you want to show the title too, it will double the number of columns.
See for more information.
As you comment:
// Fill the list with a checkbox etam, a text itam and a sitemap? Try this:
last DynamicForm df = new DynamicForm (); // format [] fi = new form [3]; // a checkbox etam, a text itam and a selectItem checkboxIITIM CI = fill the list with the new checkbox (); Ci.setShowTitle (wrong); ci.setTitle (""); TextItium TI = New Textile (); ti.setShowTitle (wrong); Select = new selection (); Si.setShowTitle (wrong); Si.setValues ("PDF"); df.setItems (ci, ti, c); Df.setColWidths ("20", "250", "*"); Df.setNumCols (3); // df.setFields (fi); . Connecting RootPanel.get () (DF); Snapshot:
According to your snapshot:
Try this one
last DynamicForm df = new DynamicForm (); // format [] fi = new form [3]; CheckboxIITIM CI = new checkboxime (); ci.setShowTitle (wrong); Ci.setTitle (""); Select = new selection (); Si.setTitle ("language"); Si.setValues ("PDF"); Df.setItems (CI, C); df.setColWidths ("20", "250", "*"); Df.setNumCols (3); // df.setFields (fi); . Connecting RootPanel.get () (DF); Snapshot:
जावा प्रोग्रामिंग छोटे कार्यक्रम
ReplyDeleteकमांड लाइन नमूना कार्यक्रम से पासवर्ड छिपाएं