Due to the @DefaultProperty annotation on most Pivot WTK classes, you can simplify your BXML quite a lot now.
See the section titled 'Default Properties' in the BXML Primer http://pivot.apache.org/tutorials/bxml-primer.html In the BXML below, it means you no longer need to specify these tags <content></content> <view></view> Unfortunately the annotation won't usually show up in the Javadoc for the class, but can be seen in the source code. For example, you can see that 'content' is set as the default property in the source for Border @DefaultProperty("content") http://svn.apache.org/repos/asf/pivot/trunk/wtk/src/org/apache/pivot/wtk/Border.java The full source can be downloaded here, or grabbed from SVN http://pivot.apache.org/download.cgi#2.0 http://pivot.apache.org/svn.html The FAQ explains how to reference the source in Eclipse http://pivot.apache.org/faq.html > <Frame title="Genesis Client" maximized="true" > styles="{showWindowControls:false}" > xmlns:bxml="http://pivot.apache.org/bxml" > xmlns:content="org.apache.pivot.wtk.content" > xmlns:genesisClientStarter="com.blackbox.x.client" > xmlns="org.apache.pivot.wtk"> > <content> > <Border styles="{color:10, cornerRadii:20}"> > <content> > <TablePane> > <columns> > <TablePane.Column /> > </columns> > <rows> > <TablePane.Row> > <Border> > <content> > <BoxPane orientation="horizontal" > > <ImageView bxml:id="car" > styles="{verticalAlignment:'center'}"/> > <ImageView bxml:id="vci_status" > styles="{verticalAlignment:'bottom'}"/> > <ImageView bxml:id="pc" > styles="{verticalAlignment:'center'}"/> > <ImageView bxml:id="pc_status" > styles="{verticalAlignment:'bottom'}"/> > <ImageView bxml:id="server" > styles="{verticalAlignment:'center'}"/> > </BoxPane> > </content> > </Border> > </TablePane.Row> > <TablePane.Row> > <Border> > <content> > <BoxPane orientation="horizontal"> > <ImageView bxml:id="rx" /> > <ImageView bxml:id="tx" /> > </BoxPane> > </content> > </Border> > </TablePane.Row> > > <TablePane.Row height="300"> > <Border> > <content> > > <ScrollPane horizontalScrollBarPolicy="fill_to_capacity"> > > <view> > > <TableView bxml:id="tableView" selectMode="single"> > > <columns> > > <TableView.Column name="message" width="800" > > headerData="Header" /> > > </columns> > > </TableView> > > </view> > > </ScrollPane> > </content> > </Border> > </TablePane.Row> > <TablePane.Row> > <Border> > <content> > > <ActivityIndicator bxml:id="activityIndicator" > > preferredWidth="24" preferredHeight="24" /> > > </content> > </Border> > </TablePane.Row> > </rows> > </TablePane> > </content> > </Border> > </content> > </Frame>
