Package net.rim.device.api.browser.field2

Examples of net.rim.device.api.browser.field2.BrowserFieldHistory


//        }
//      return iframe;
//   }
   
    public float getZoomScale() {
        BrowserField bf = getBrowserFieldScreen().getWidgetBrowserField();
        return bf.getZoomScale();
    }
View Full Code Here


        byte[] bmpBytes = requestBitmapBytes(uri);
        return Bitmap.createBitmapFromBytes(bmpBytes, 0, bmpBytes.length, 1);
    }
   
    public static byte[] requestBitmapBytes(String uri) throws Exception {
        BrowserField browserField = (BrowserField) BBMPlatformExtension._browserField.get();
        final BrowserFieldConfig bfConfig = browserField.getConfig();
        final BrowserFieldController bfController =
                (BrowserFieldController) bfConfig.getProperty(BrowserFieldConfig.CONTROLLER);
       
        InputConnection ic = null;
        DataInputStream is = null;
View Full Code Here

     * <description> Obtains the BrowserFieldConfig object by accessing the Screen.
     *
     * @return <description>
     */
    private BrowserFieldConfig getBrowserFieldConfig() {
        BrowserField bField = BrowserFieldScreen.getBrowserField();
        return bField.getConfig();
    }
View Full Code Here

            // Update the transport order.
            updateConnectionFactory();
        }

        // Create Browser field.
        _browserField = new BrowserField( _bfConfig );
        _browserField.addListener( new WidgetBrowserFieldListener( _wConfig ) );

        // Remove animation max value.
        _browserField.getRenderingOptions().setProperty( RenderingOptions.CORE_OPTIONS_GUID,
                RenderingOptions.ANIMATION_COUNT_VALUE, Integer.MAX_VALUE );
View Full Code Here

     * @param query
     *            Query string to search on
     */
    private void executeSearch(final int searchEngine, final String query) {
        try {
            final BrowserField browserField = _browserScreen.getBrowserField();
            if (searchEngine == YAHOO_SEARCH) {
                browserField
                        .requestContent(URI.create(
                                "http://search.yahoo.com/search?p=" + query)
                                .toString());
            } else if (searchEngine == WIKIPEDIA_SEARCH) {
                browserField.requestContent(URI.create(
                        "http://en.wikipedia.org/wiki/Special:Search?search="
                                + query + "&go=Go").toString());
            }
        } catch (final MalformedURIException e) {
            BrowserField2Demo.errorDialog("URI.create(String threw "
View Full Code Here

        addKeyListener(new BrowserFieldScreenKeyListener());

        final BrowserFieldConfig config = new BrowserFieldConfig();
        config.setProperty(BrowserFieldConfig.ALLOW_CS_XHR, Boolean.TRUE);
        _browserField = new BrowserField(config);
        _browserField.addListener(new DemoBrowserListener());
        add(_browserField);
        _request = request;
    }
View Full Code Here

        // Disable JavaScript
        browserFieldConfig.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED,
                Boolean.FALSE);

        _browserField = new BrowserField(browserFieldConfig);

        add(new SeparatorField());

        // Get the URL from the ConnectionDescriptor
        final String url = getUrl(connectionDescriptor);
View Full Code Here

        return Bitmap.createBitmapFromBytes(bmpBytes, 0, bmpBytes.length, 1);
    }
   
    public static byte[] requestBitmapBytes(String uri) throws Exception {
        BrowserField browserField = (BrowserField) BBMPlatformExtension._browserField.get();
        final BrowserFieldConfig bfConfig = browserField.getConfig();
        final BrowserFieldController bfController =
                (BrowserFieldController) bfConfig.getProperty(BrowserFieldConfig.CONTROLLER);
       
        InputConnection ic = null;
        DataInputStream is = null;
       
        try {
View Full Code Here

            if( _configXML == null || _configXML.length() == 0 ) {
                return null;
            }
            try {
                // Obtain the Browser field config
                BrowserFieldConfig bfConfig = getBrowserFieldConfig();

                // Create doc builder
                DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();

                // Parse
                Object o = bfConfig.getProperty( BrowserFieldConfig.CONTROLLER );
                if( o instanceof BrowserFieldController ) {
                    BrowserFieldController bfController = (BrowserFieldController) o;

                    // Create request for config.xml file
                    BrowserFieldRequest request = new BrowserFieldRequest( WidgetUtil.getLocalPath( _configXML ) );
View Full Code Here

        }
        super.close();
    }

    private void initialize() {
        _bfConfig = new BrowserFieldConfig();

        // POINTER mode is used for for normal WebWorks Applications.
        // NONE mode is used for navigation mode WebWorks Applications.
        if( getAppNavigationMode() ) {
            _bfConfig.setProperty( BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_NONE );
View Full Code Here

TOP

Related Classes of net.rim.device.api.browser.field2.BrowserFieldHistory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.