This I must stress is a work in progress, but has enough functionality to be useful now.
Basically, this program will try to create JavaObjects and subs to allow you to access items not included in the IDE.
The screen has a TextField where you enter the item ie TableView. It is not case sensitive so tableview and TableView are counted as equal.
The button is there for people who like clicking after entering text ( although hitting return in the TextField will do the same thing)
Below the TextField is a ComboBox - this will be populated with the class names that contain the item you entered. 99% of the time just choose the javafx... class. (yes there are slashes between the path parts)
On selecting the class the ComboBox below will be populated with the methods for the class.
You will notice that the TextArea now has some generated code in it at this stage. These are the constructors for the item you chose in the first ComboBox.
When you select an item in the bottom ComboBox, more code is generated, this is a sub you can copy to your code. The sub is general purpose it relates to all controls of that type.
Suppose the generated code is
To use it, the ob is the TableView you want it to work on so calling
Will apply the css to myTableView
All the subs follow a similar format where ob is the Object to work on.
Simply copy and paste the code into your program.
The second ComboBox allows you to select another method, and generate further code.
If you want change the item in the TextBox or top ComboBox , you will need to restart the program.
Notes:
1, It has the java path built in and assumes that JAVA_HOME points to the JDK .bin folder.
2, If after you type in the TextField and it goes blank, it's because it cannot find the class you requested.
3, If you know you want, for example, TableView css methods, you can type TableView css, and it will only list out methods that contain css in the lower ComboBox.
4, If the code looks odd, eg it says sub return type As java.util.HashMap it's because it doesn't know how to map that to B4J - you will need to manually correct it.
As I progress it will map things better to B4J.
Remember - This is a Beta version, don't rely on the generated code being 100% correct.
Basically, this program will try to create JavaObjects and subs to allow you to access items not included in the IDE.
The screen has a TextField where you enter the item ie TableView. It is not case sensitive so tableview and TableView are counted as equal.
The button is there for people who like clicking after entering text ( although hitting return in the TextField will do the same thing)
Below the TextField is a ComboBox - this will be populated with the class names that contain the item you entered. 99% of the time just choose the javafx... class. (yes there are slashes between the path parts)
On selecting the class the ComboBox below will be populated with the methods for the class.
You will notice that the TextArea now has some generated code in it at this stage. These are the constructors for the item you chose in the first ComboBox.
When you select an item in the bottom ComboBox, more code is generated, this is a sub you can copy to your code. The sub is general purpose it relates to all controls of that type.
Suppose the generated code is
B4X:
Sub TableView_applyCSS(ob as JavaObject,arg As String)
...
End Sub
B4X:
TableView_applyCSS(myTableView,"-fx-background-color: red")
All the subs follow a similar format where ob is the Object to work on.
Simply copy and paste the code into your program.
The second ComboBox allows you to select another method, and generate further code.
If you want change the item in the TextBox or top ComboBox , you will need to restart the program.
Notes:
1, It has the java path built in and assumes that JAVA_HOME points to the JDK .bin folder.
2, If after you type in the TextField and it goes blank, it's because it cannot find the class you requested.
3, If you know you want, for example, TableView css methods, you can type TableView css, and it will only list out methods that contain css in the lower ComboBox.
4, If the code looks odd, eg it says sub return type As java.util.HashMap it's because it doesn't know how to map that to B4J - you will need to manually correct it.
As I progress it will map things better to B4J.
Remember - This is a Beta version, don't rely on the generated code being 100% correct.
Attachments
Last edited: