Adding support for FormLayout
"Oscar Trigueiros" <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
Greatings,
What is the best way to add suport for a new layout manager, reading the code I it seens that all there is to do is adding one more if to the code of
LayoutConverter.convert check if
....
else if (s.equals( LayoutConverter.FORM_LAYOUT )) {
if (st.hasMoreTokens()) {
String[] para = ......;
if (para.length == 1) {
lm = new FormLayout(para[0]);
}
else if (para.length == 2){
lm = new FormLayout(para[0],para[1]);
}
else if (SwingEngine.DEBUG_MODE) {
System.err.println( "Not expected params..." );
}
}
}
......
On the other hand there is a reference do BoxLayout as one additional tag.
How should I procede to add support for the new layout manager ?
Many thanks, Oscar
____________________________________________
Oscar Trigueiros
SIEMENS
IC - Information and Communications
Rua Irmãos Siemens, nº 1
PT-2720-093 Amadora
* Phone: (+351) 21 040 8180
* Fax: (+351) 21 424 2337
* Email: [email protected]