Examples of NullField


Examples of net.rim.device.api.ui.component.NullField

   *          the field to toggle.
   * @param visible
   *          the new visibility.
   */
  public static void setVisible(Field field, boolean visible) {
    NullField peer = (NullField) field.getCookie();
    if (visible && !isVisible(field)) {
      if (peer == null) {
        throw new IllegalStateException("Placeholder missing");
      }
      Manager manager = peer.getManager();
      manager.replace(peer, field);
    } else if (!visible && isVisible(field)) {
      if (peer == null) {
        peer = new NullField();
        field.setCookie(peer);
      }
      Manager manager = field.getManager();
      manager.replace(field, peer);
    }
View Full Code Here

Examples of net.rim.device.api.ui.component.NullField

    public TwoColumnField( Field leftField, Field rightField, long style )
    {
        super( style );

        if( leftField == null ) {
            leftField = new NullField();
        }
        if( rightField == null ) {
            rightField = new NullField();
        }

        _leftField = leftField;
        _rightField = rightField;
       
View Full Code Here

Examples of net.rim.device.api.ui.component.NullField

        vfm.add(new LabelField(data.getTitle(), LabelField.NON_FOCUSABLE));
        vfm.add(new LabelField(data.getDescription(), LabelField.USE_ALL_HEIGHT | LabelField.NON_FOCUSABLE
            | LabelField.ELLIPSIS));
        resultsList.add(vfm);
        // Break
        resultsList.add(new NullField(NullField.NON_FOCUSABLE));
        resultsList.add(new SeparatorField());
      }

      UiApplication.getUiApplication().invokeLater(new ResultsUpdater(resultsList));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.