Package net.rim.device.api.ui

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


    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


        add(new LabelField("BlackBerry Devices", Field.FIELD_HCENTER));
        add(new SeparatorField());

        // Get this screen's main manager (VerticalFieldManager)
        final Manager mainManager = getMainManager();

        // Create a RichList which will be added to the provided manager
        final RichList richList = new RichList(mainManager, true, 4, 0);

        // Set the focus policy for the RichList
View Full Code Here

        add(new LabelField("BlackBerry Devices", Field.FIELD_HCENTER));
        add(new SeparatorField());

        // Get this screen's main manager (VerticalFieldManager)
        final Manager mainManager = getMainManager();

        // Instantiate the SimpleList
        final SimpleList simpleList = new SimpleList(mainManager);

        // Iterate over the string and add comma delimited strings to the list
View Full Code Here

     */
    protected void sublayout(final int width, final int height) {
        super.sublayout(width, height);

        // Calculate the title height
        final Manager manager = getMainManager();
        final XYRect extent = manager.getExtent(); // Scrollable section of the
                                                   // screen
        _titleHeight = extent.y; // Top of the scrollable section

        // Set the viewport dimensions for the current orientation
        _image.setViewportHeight(Display.getHeight() - _titleHeight);
View Full Code Here

         * @see Field#layout(int, int)
         */
        protected void layout(final int width, final int height) {
            final UiApplication uiApp = UiApplication.getUiApplication();
            final MainScreen mainScreen = (MainScreen) uiApp.getActiveScreen();
            final Manager manager = mainScreen.getMainManager();
            int availableHeight = Display.getHeight();
            final int fieldCount = manager.getFieldCount();

            for (int i = fieldCount - 1; i >= 0; --i) {
                final Field field = manager.getField(i);
                if (field != this) {
                    availableHeight -= field.getHeight();
                }
            }

View Full Code Here

        // Set up the components that allow the user to choose
        // an animation and then run it.
        final VerticalFieldManager vManager =
                new VerticalFieldManager(Manager.VERTICAL_SCROLL);
        final Manager fManager = new FlowFieldManager(Manager.VERTICAL_SCROLL);
        setChoiceField();
        fManager.add(_options);
        setButtonField();
        fManager.add(_playButton);

        vManager.add(fManager);
        add(vManager);

        // First animation is set to the bouncing ball animation by default.
View Full Code Here

             *      Object)
             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
                // Calculate button position
                final Manager manager = getMainManager();
                final XYRect managerExtent = manager.getExtent(); // Scrollable
                                                                  // section of
                                                                  // the screen
                final int titleHeight = managerExtent.y; // Top of the
                                                         // scrollable section
                final XYRect buttonExtent = _sampleButton.getExtent();
View Full Code Here

    /**
     * @see AccessibleContext#getAccessibleParent()
     */
    public AccessibleContext getAccessibleParent() {
        // Return manager where the toolbar component is added
        final Manager manager = getManager();
        return manager != null ? manager.getAccessibleContext() : null;
    }
View Full Code Here

    /**
     * @see AccessibleContext#getAccessibleParent()
     */
    public AccessibleContext getAccessibleParent() {
        // Return manager where value component is added
        final Manager manager = getManager();

        return manager != null ? manager.getAccessibleContext() : null;
    }
View Full Code Here

    /**
     * @see AccessibleContext#getAccessibleParent()
     */
    public AccessibleContext getAccessibleParent() {
        // Return manager where table component was added
        final Manager manager = getManager();
        return manager != null ? manager.getAccessibleContext() : null;
    }
View Full Code Here

TOP

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

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.