Multi-column layout

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

By applying the patch at https://sourceforge.net/tracker/index.php?func=detail&aid=2086368&group_id=176962&atid=879335 the following layouts can be achieved just be ticking the "Same line" 2 or 3 times in a row for sequential fields.

Note that there are currently only three column widths supported: the label width = the largest preferred size of any label on the window; the standard field width = the largest preferred size of any standard field; and the long field width = any field with a display length > 30 spans all remaining columns in the row.

Naturally the more columns you have the skinnier each one should be, or the wider you monitor needs to be!

4colLayout.png

3colPO.png


Advanced layout

Something I'm working on now is complete control over layout using MigLayout: Currently I've got the following working (as displayed in the screenshot)

  • Column span: number of columns a label + field will occupy
  • Row span: number of rows (height) that a field will occupy
  • Column Split: Allow multiple fields to occupy one column (eg. the checkboxes in the screenshot)
  • sizegroup: all fields and lables in the same sizegroup will get the same minimum size (again the checkboxes are a different sizegroup to the other fields) (width only now)
  • hidemode: what to do with hidden fields (include as if visible, set size to zero, or don't include at all)
  • Column skip: leave x columns unoccupied before inserting the next field

Still to do:

  • Complete control of field size

Layout.png

(Note: the lines around fields/labels are debug lines to show the component bounds)