Re[2]: Refection vs Code Generation

Lutz Neumann <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Organization Softronix GmbH
Message-ID <[email protected]>
It's done in code, before you render your ui with SwixML:

    SwingEngine swix = new SwingEngine(this);
    .
    .
    // register custom widgets
    swix.getTaglib().registerTag( "exttable", ExtTable.class );
    swix.getTaglib().registerTag( "extscrollpane", ExtScrollPane.class );
    .
    .
    // register additional constant providers
    PrimitiveConverter.addConstantProvider(Font.class);
    .
    .
    // register (new/modified) converters
    ConverterLibrary.getInstance().register(Color.class, new ExtColorConverter());
    .
    .
    swix.render("whatever.xml");
    .
    .

- Lutz

> Question, when you "extend" swixml, is it done via xml
> declaring the extending classes, or is it
> programatically done at runtime before/after the
> swixml engine is started and loads xml uis?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.