Hi,
sorry for the delay ...
> I rewrote the function TableViewFileRenderer() in the file
> TerraFileBrowserSkin.java,but I dont know how to refer to external java
> application in the .bxml file?
Why did you need to rewrite it ? Wouldn't it be better to write in a
your class, and use it (see bottom) ?
Or if useful, extend TerraFileBrowserSkin in your class, to have a
good starting point.
> In the example:File Drop Target Demo,there are sentences as follows:
> <TableView.Column name="name" width="3*" headerData="File">
> <cellRenderer>
> <terra:TerraFileBrowserSkin.TableViewFileRenderer/>
> </cellRenderer>
> </TableView.Column>
> What does this mean?
this means: use as a renderer an instance of the class
TerraFileBrowserSkin.TableViewFileRenderer (inner and public static
class), from the namespace defined in the package "terra" defined at
the beginning of that bxml file as:
xmlns:terra="org.apache.pivot.wtk.skin.terra"
> When I add TerraFileBrowserSkin.java I've changed to the TableView.Column
> like this,I got an error:Property elements cannot have a namespace prefix.Why?
you have to write a full line like this:
<terra:TerraFileBrowserSkin.TableViewFileRenderer/>
because it's the right way (bxml-speaking ) to use
namespace:class.staticProperty
Remember, the "BXML Primer" is your (and our :-) ) friend:
http://pivot.apache.org/tutorials/bxml-primer.html
I read/re-read it often ...
Hope this helps,
Sandro