Upvote 1

ApiWidgetName not found for several justinmind controls

Known jolly thakkar 7 years ago

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 ?

Best Answer
photo

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 ?

Replies (1)
photo
2

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,

photo
1

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 ?

photo
2

Dear Jolly,


Can you send me the complete project of the API? Also, can you let me know which version of the API are you using?


Best,


Sonia Durán

photo
1

We are making justinmind plugin in Eclipse SDK as described earlier in this topic.


Version Information:

Eclipse SDK : screenshot "EclipseVersion" attached

JustInMind : screenshot "JIMVersion" attached


API Details:

JustInMind PlugIn project "JustInMindControlTypeDemo" attached

Prototype File "TestPrototype.vp" attached.

photo
2

Dear Jolly,


We've been testing this issue and it will be solved on our next release.


Best,


Sonia Durán

photo
1

Thanks for update!


At what time should i expect the next version's release?

photo
1

Dear Jolly,


Unfortunately there is no set date yet. Probably in January.


Best,


Sonia Durán

photo
Leave a Comment
 
Attach a file