Blogs

The Unified Communications 9.0 Partner Bundle packages Cisco’s Collaboration application software for our Collaboration partner community to leverage for their internal lab or demonstration systems. The 9.0 version is now available for order. Learn More >> ...Read More

 

Cisco Technology Developer Partners,

Cisco is proud to announce the availability of our Cisco Unified Communications System Release 8.6 Not-For-Resale software bundle on Cisco Marketplace (Partner Login Required).

To purchase the latest Unified Communications NFR Software bundle
- Navigate to Cisco Marketplace
- Login using your Cisco.com UserID ...Read More

 

Cisco is pleased to announce the opening of the Java Midlet API and support for Cisco wireless devices, including the 7925 and 7926 models. Please see the Resources section for documentation, firmware, tools and more to help you understand Java Midlets and how you can leverage advanced application capabilities in your wireless Cisco devices.
...Read More

 

Showing 3 results.

Forums

« Back to Technical Discussion

How do we cause a particular item to be selected when showing a form?

Combination View Flat View Tree View
We tried implementing our own setFocus(item) function as follows:
 

public void setFocus(Item item) {
Display.getDisplay(AMC.getMIDlet()).setCurrentItem(item);
}

 
The way we use this is that we call it as part of the implementation of the constructor of the Form with the intent that the specific item passed in would have focus when the form is displayed.
 
This approach works correctly in the WTK emulator but does not work correctly on the 7925 device.  What we see on the device is that the first item on the form is highlighted and has focus instead of the one we requested with our call to setForm().
 
Is there some other way to do this that will work correctly on the device?  One theory I have is that since we are calling it before the Form has actually been displayed we may be calling it too early in the lifecycle of the Form.  Would it work better if I tried this instead?
 
Display.runSerially(setFocus(item));
 
I believe this would delay invoking the call until after the UI thread has returned from creating the Form.

Collateral


No files available