Package net.rim.device.api.ui

Examples of net.rim.device.api.ui.VirtualKeyboard


    add(new SeparatorField());
    HorizontalFieldManager hfm = new HorizontalFieldManager(Field.FIELD_HCENTER);
    hfm.add(_spinBoxField);
    add(hfm);    
    // Turn off the virtual keyboard
    final VirtualKeyboard virtualKeyboard = this.getVirtualKeyboard();
    if (virtualKeyboard != null) {
      virtualKeyboard.setVisibility(VirtualKeyboard.HIDE);
    }
  }
View Full Code Here


 
    new Thread () {
        public void run() {
          try
          {
            VirtualKeyboard vk = _browserField.getScreen().getVirtualKeyboard();
            if (vk != null && vk.isSupported()) {
              vk.setVisibility(VirtualKeyboard.SHOW);
            }
          }
          catch (Exception e) {
            //throw new RuntimeException(e.getMessage());
          }
View Full Code Here

  public FunctionHideKeyboard(BrowserField browserField) {
    _browserField = browserField;
  }
  
    public Object invoke(Object thiz, Object[] args) throws Exception
    VirtualKeyboard vk = _browserField.getScreen().getVirtualKeyboard();
    if (vk != null && vk.isSupported()) {
      vk.setVisibility(VirtualKeyboard.HIDE);
    }
    return UNDEFINED;   
    }
View Full Code Here

  }
  else if (name.equals(FIELD_SCREENSHOT)) {
    return _screenshot;
  }
  else if (name.equals(FIELD_HASVIRTUALKEYBOARD)) {
    VirtualKeyboard vk = _browserField.getScreen().getVirtualKeyboard();
    if (vk != null && vk.isSupported()) {
      return new Boolean(true);
    }
    else {
      return new Boolean(false);
    }
View Full Code Here

        add(_eyelidFieldManager);

        _showOnInputCheckbox.setFocus();

        // Disable virtual keyboard so it doesn't obscure bottom eyelid
        final VirtualKeyboard keyboard = getVirtualKeyboard();
        if (keyboard != null) {
            keyboard.setVisibility(VirtualKeyboard.IGNORE);
        }
    }
View Full Code Here

                    _threadRunning = true;

                    // Hide the virtual keyboard so the user can see status
                    // updates.
                    if (VirtualKeyboard.isSupported()) {
                        final VirtualKeyboard keyboard = getVirtualKeyboard();
                        if (keyboard.getVisibility() != VirtualKeyboard.HIDE) {
                            keyboard.setVisibility(VirtualKeyboard.HIDE);
                        }
                    }
                } else {
                    Dialog.ask(Dialog.D_OK, "Please enter a valid host name");
                }
View Full Code Here

            }
        } else {
            if (field == _keyboardButton) {

                // Get this screen's instance of the virtual keyboard
                final VirtualKeyboard keyboard = this.getVirtualKeyboard();

                // Change the visibility
                if (keyboard.getVisibility() == VirtualKeyboard.SHOW) {
                    keyboard.setVisibility(VirtualKeyboard.HIDE);
                } else {
                    keyboard.setVisibility(VirtualKeyboard.SHOW);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.VirtualKeyboard

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.