Install net_rim_ui_api net_rim_bb_browser_field2_api


















Overrides: setDirty in class Field Parameters: dirty - Specify true if this field is dirty; otherwise, specify false to set the field to clean. Parameters: label - Label string for this field.

Overrides: setMuddy in class Field Parameters: muddy - True if this field should be made muddy; flase to un-muddy this field.

The system invokes this method when passing on a trackwheel click event. This method is transparent, and the event is not consumed. Overrides: trackwheelClick in class Field Parameters: status - State of the modifier keys. Returns: False event not consumed. The system invokes this method when passing on a trackwheel release event.

Overrides: trackwheelUnclick in class Field Parameters: status - Bitfield of values defined by Keypad. BARE Deprecated. Fields inherited from class net. Fields inherited from interface net. ButtonField Constructs a new ButtonField instance. ButtonField long style Constructs a new ButtonField instance with provided style. ButtonField String label, long style Constructs a new ButtonField instance with provided label and style. Node getTopmostNode int x, int y This method will return the topmost node found at the provided x,y coordinates.

By default, this value is white. Parameters: script - A string representation of arbitrary JavaScript code Returns: The result of the executed JavaScript code Throws: IllegalStateException - this exception is thrown if this method invoked before this BrowserField's document has been created.

This event is communicated via the BrowserFieldListener. The Scriptable provided to extend the ScriptEngine can correspond to an object Scriptable , a function ScriptableFunction or any set of objects and functions. Extensions added will then be available to be used by JavaScript loaded into this BrowserField instance. Parameters: name - The name by which the added Scriptable will be accessible by JavaScript scriptable - The implementation of the ScriptEngine extension itself.

Returns: The URL of the currently loaded page. Returns: The title of the currently loaded page. In the case of non-HTTP requests, this parameter is ignored.

For more information about invoking a browser on a BlackBerry device, including how to invoke a browser that is not specified as the default browser, see the BlackBerry Developer Knowledge Base article DB Note: You can also embed web content in your application by using the BrowserField class.

For more information, see Browser field. Use this technique only if the application cannot be invoked by using any of the techniques described above. You cannot pass application arguments to a BlackBerry Device Software application by using this technique.

Invoking modules directly can have unintended side-effects. You can add menu items to a BlackBerry Device Software application by using the net. For example, you can add a menu item called View Sales Order to the contacts application on a BlackBerry device. When the user clicks View Sales Order, your application opens and displays a list of sales orders for that contact.

When you create an instance of the ApplicationMenuItem class, you can specify the position of the item on the menu. Positions are relative. A lower number corresponds to a higher position on the menu. A separator line is drawn for every 0x increment. Use the following guidelines when you specify the position of an item on the menu. When an ApplicationMenuItem is invoked, the BlackBerry Device Software application passes a context object to your application as follows:.

Message for email messages and PIN messages. Packages: net. The applications on a BlackBerry device that use the ActiveAutoTextEditField or the ActiveRichTextField field for example, the calendar application and the messages application can recognize string patterns and provide specific items for those string patterns in the menu on the BlackBerry device.

For example, if a message contains a phone number, the number is highlighted. If the BlackBerry device user selects the number and presses the Menu key, the special menu item Call number displays.

You can define your own string patterns and associate the patterns with custom menu items. The custom menu items can perform any action, such as starting your application. You can use the PatternRepository class to register a Perl-style regular expression or a specific string with the pattern repository on the BlackBerry device. You can use the ApplicationMenuItem class to define a menu item that is associated with the string pattern. Click for code sample: Register a string pattern and a menu item.

Package: javax.



0コメント

  • 1000 / 1000