| Summary: | Adding Support for RelativeLayout | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Alessio Pollero <alessio.pollero> | ||||||
| Component: | WindowBuilder | Assignee: | Project inbox <wb.swing-inbox> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P4 | CC: | alessio.pollero, clayberg | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Alessio Pollero
Created attachment 210240 [details]
Screenshot
As you can see from the image when i drag some components (like a JButton) into a container set with RelativeLayout the component is not rendered and it is not really added in the code ...
Created attachment 210241 [details]
Sample Project
A simple sample project where you can see that no code is really written by windowbuilder when a component is added in the designer.
The only generated code is :
/**
* @wbp.nonvisual location=338,271
*/
private final JButton button = new JButton("New button");
Since there is no JavaBean spec for automatically including custom layout managers into a UI layout tool, custom design time code must be written in every case. Adding support for custom layouts requires a lot of work, but WB provides dozens of examples implementing all of the standard Java layout managers as well as a couple of popular 3rd party layout managers. The WB committer team has no plans to add support for this layout, but we would be happy to review any community submitted patches that add the needed support. Any such support should be located in its own separate plugin (for example, see the support for MiGLayout or JGoodies FormLayout). Ok, so if i want to write the integration with this LayoutManagers, is there any kind of documentation to look ? Where can i find the examples you mentioned ? You should review the New Components Tutorial and Designer Customization API in the WB docs, and look at the org.eclipse.wb.swing.MigLayout, org.eclipse.wb.swing.FormLayout and org.eclipse.wb.swing projects in the WB source. |