ApiWidgetName not found for several justinmind controls
We are implementing justinmind plugin in Eclipse SDK.
We have requirement to get the control type of all dropped controls in screen.
For example, We want to get the control type of below controls.
1. Label
2. Textbox
3. Line
4. Select List/Custom Select List
5. Dynamic Panel
6. Data Grid
7. Data List
etc..
We are able to get the control type of several controls (label, textbox, button) using below code.
IPrototype prototype = API.getPrototypeLoader().loadPrototype(temp_directory+File.separator+"work");
List<ICanvas> canvas = prototype.getApiCanvases();
for(ICanvas iCanvas:canvas)
{
List<ICanvasComponent> lstICanvasComponent = iCanvas.getApiRoot().getApiChildren();
for (ICanvasComponent iCanvasComponent : lstICanvasComponent)
{
String controlType = iCanvasComponent.getApiWidgetName();
System.out.println("Control Type :" + controlType);
}
}
Output:
Control Type :Label
Control Type :Button
etc...
So, can you please suggest how to get control type of rest of justinmind controls ?
PFA for identifying the control names.
I'm not able to get the widget name of below listed controls.
1.Basic
Paragraph
Text
Button
Image
Input Text Field
Text Table
2.Lines and Shapes
Line
Rectangle
3.Forms and Inputs
Check Box
Radio Button
Date
Select List
Custom Select List
File Upload
List Box
4.Dynamic Content
Data List
Data Grid
Dynamic Panel
Summary
can you please suggest about solution or alternate way ?
PFA for identifying the control names.
I'm not able to get the widget name of below listed controls.
1.Basic
Paragraph
Text
Button
Image
Input Text Field
Text Table
2.Lines and Shapes
Line
Rectangle
3.Forms and Inputs
Check Box
Radio Button
Date
Select List
Custom Select List
File Upload
List Box
4.Dynamic Content
Data List
Data Grid
Dynamic Panel
Summary
can you please suggest about solution or alternate way ?
Dear Jolly,
The following method "String controlType = iCanvasComponent.getApiWidgetName();" returns the name of the element, or in case it is a "mywidget" gets the name of that "mywidget".
Also, can you specify which are the Justinmind controls you are having issues?
Best,
Dear Jolly,
The following method "String controlType = iCanvasComponent.getApiWidgetName();" returns the name of the element, or in case it is a "mywidget" gets the name of that "mywidget".
Also, can you specify which are the Justinmind controls you are having issues?
Best,
Replies have been locked on this page!