Open Source & Free  

SQL Explorer, Global Toolbar, Location & Docs

SQL Explorer, Global Toolbar, Location & Docs

Header Image

I was working on documenting the SQLite support in Codename One, you can see some of that work both in the
db package and in the
developer guide. As a demo for
SQL I decided to just create a tool that allows you to type arbitrary SQL to execute it on the device and see
the results in a Table…​

Beside being a cool example this can be a hugely powerful debugging tool to one of the more painful API’s to
debug on the device. You can integrate this as a hidden feature into your application and use it to debug odd “on device”
issues by querying the DB!

Toolbars All Around

The Toolbar API is the way forward
but up until now we didn’t include the option to set the Toolbar globally so for every Form you had to do the:

Toolbar tb = new Toolbar();
form.setToolbar(tb);

You can now set the Toolbar to be on by default on all forms so form.getToolbar() will return a valid Toolbar
that you can use right away. There are two ways to enable it, in code using:

Toolbar.setGlobalToolbar(true);

Or using the theme constant:

globalToobarBool=true

Debugging Location Calls

Piotr contributed another pull request
that refines the behavior of the simulator when working with the location API. This highlights a relatively
accessible path to code contribution thru the Java SE code which should be easier.

Check out my post on contributing code to the Codename One project
here

Documentation Progress

Our manual is over 650 pages. We just finished a rewrite of the IO section which is HUGE!

Similarly to the galleries we made for components and layouts we created sections for the
database,
XPath processing/parsing language &
general IO (storage, filesystem, parsing, networking etc.).

Check out these sections and let us know what you think.

4 Comments

Leave a Reply