In AbsoluteFieldManager Z-order

Is there an easy way to adjust the order of fields on an AbsoluteFieldManager? It seems that the withdrawal and time fields will work, but it would be nice if there was an easier way to do...

Just guessing here, but I suspect the paint Manager method can control the order of the paint, so you might be able to override this somehow and paint the children directly.  But I'm just guessing and I have no idea how do.  So not much help really...  Sorry

Tags: BlackBerry Developers

Similar Questions

  • Horizontal Scrolling in AbsoluteFieldManager

    Hello

    I am trying to add several labels to an AbsoluteFieldManager as follows:

            final AbsoluteFieldManager man = new AbsoluteFieldManager();
    
            man.add(new LabelField("1", Field.FOCUSABLE), 20, 0);
            man.add(new LabelField("2", Field.FOCUSABLE), 30, 100);
            man.add(new LabelField("3", Field.FOCUSABLE), 0, 200);
            man.add(new LabelField("4", Field.FOCUSABLE), 0, 220);
            man.add(new LabelField("5", Field.FOCUSABLE), 150, 240);
            man.add(new LabelField("6", Field.FOCUSABLE), 300, 260);
            man.add(new LabelField("7", Field.FOCUSABLE), 300, 280);
            man.add(new LabelField("8", Field.FOCUSABLE), 300, 300);
            man.add(new LabelField("9", Field.FOCUSABLE), 300, 320);
            man.add(new LabelField("10", Field.FOCUSABLE), 350, 320);
            man.add(new LabelField("11", Field.FOCUSABLE), 400, 320);
            man.add(new LabelField("12", Field.FOCUSABLE), 450, 320);
            man.add(new LabelField("13", Field.FOCUSABLE), 500, 320);
            man.add(new LabelField("14", Field.FOCUSABLE), 550, 320);
            man.add(new LabelField("15", Field.FOCUSABLE), 600, 320);
            this.add(man);
    

    When I move on the trackpad, the next label Gets the focus. This works well in the direction y. All labels with Label '12' are visible. When I try to get the focus to the next label, '12' Label loses focus. '13' label now has the development in-house, but it is not visible and no scrolling happens. Ditto for the "14" and "15". It is easy to notice, the focus moves to the 14 and 15, because it takes a lot of movement on the trackpad to return to 12. But why the AbsoluteFieldManager scrolls at 13, 14 and 15 to make them visible?

    I also tried to add the AbsoluteFieldManager to a HorizontalScreenManager that has vertical and horizontal scrolling. Then, it is even possible to scroll, but not yet all of the labels are visible.

    Is that what I can do to make it possible that the AbsoluteFieldManager scrolls auotmatically once a field outside of the visible area Gets the focus?

    Thank you

    Hello

    Finally, I made my own AbsoluteFieldManager. It works really well. You can position your fields anywhere and just highlight the field you want. I also substitute nextFocus() which now moves according to the movement of pad/trackball. I think it is fairly intuitive and not according to the order of the fields. You can also use it on Blackberry OS prior to 5, where AbsoluteFieldManager is not supported.

    This thread helped me a lot:

    http://supportforums.BlackBerry.com/T5/Java-development/AbsoluteFieldManager-on-OS-prior-to-5-0/TD-p...

    Here is the code, feel free to use or improve.

    import java.util.Vector;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.XYPoint;
    
    public class ImageMenuFieldManager extends Manager
    {
    
        protected Vector _coordinates;
    
        public ImageMenuFieldManager()
        {
            super(Manager.VERTICAL_SCROLL | Manager.HORIZONTAL_SCROLL);
            _coordinates = new Vector();
    
        }
    
           public int getPreferredWidth()
          {
                return Integer.MAX_VALUE >> 1;
           }
    
           public int getPreferredHeight()
            {
               return Integer.MAX_VALUE >> 1;
           }
    
        protected void sublayout(final int maxWidth, final int maxHeight)
        {
            int totalWidth = 0;
            int totalHeight = 0;
            final int noOfFields = getFieldCount();
            final int maxSize = Integer.MAX_VALUE >> 1;
    
            for (int i = 0; i < noOfFields; ++i)
            {
                final XYPoint fieldPos = (XYPoint) _coordinates.elementAt(i);
                final Field field = getField(i);
                layoutChild(field, maxSize - fieldPos.x, maxSize - fieldPos.y);
                setPositionChild(field, fieldPos.x, fieldPos.y);
                totalWidth = Math.max(totalWidth, field.getExtent().X2());
                totalHeight = Math.max(totalHeight, field.getExtent().Y2());
            }
            setExtent(Math.min(maxWidth, totalWidth), Math.min(maxHeight, totalHeight));
            setVirtualExtent(totalWidth, totalHeight);
        }
    
        protected int nextFocus(final int direction, final int axis)
        {
    
            final int focusFieldIndex = this.getFieldWithFocusIndex();
    
            final int size = _coordinates.size();
            final XYPoint position = (XYPoint) _coordinates.elementAt(focusFieldIndex);
            int shortestAbsoluteDistance = 0;
            int nearestIndex = focusFieldIndex;
            for (int i = 0; i < size; i++)
            {
                //skip focus field
                if (i != focusFieldIndex)
                {
    
                    final XYPoint p = (XYPoint) _coordinates.elementAt(i);
                    final int xDistance = p.x - position.x;
                    final int yDistance = p.y - position.y;
                    final int absoluteDistance = (xDistance * xDistance) + (yDistance * yDistance);
    
                    //point p is in direction right
                    if (direction > 0 && xDistance > 0 && axis == Manager.AXIS_HORIZONTAL)
                    {
                        if (absoluteDistance < shortestAbsoluteDistance || shortestAbsoluteDistance == 0)
                        {
                            shortestAbsoluteDistance = absoluteDistance;
                            nearestIndex = i;
                        }
                    }
                    //point p is in direction left
                    if (direction < 0 && xDistance < 0 && axis == Manager.AXIS_HORIZONTAL)
                    {
                        if (absoluteDistance < shortestAbsoluteDistance || shortestAbsoluteDistance == 0)
                        {
                            shortestAbsoluteDistance = absoluteDistance;
                            nearestIndex = i;
                        }
                    }
    
                    //point p is in direction down
                    if (direction > 0 && yDistance > 0 && axis == Manager.AXIS_VERTICAL)
                    {
                        if (absoluteDistance < shortestAbsoluteDistance || shortestAbsoluteDistance == 0)
                        {
                            shortestAbsoluteDistance = absoluteDistance;
                            nearestIndex = i;
                        }
                    }
    
                    //point p is in direction up
                    if (direction < 0 && yDistance < 0 && axis == Manager.AXIS_VERTICAL)
                    {
                        if (absoluteDistance < shortestAbsoluteDistance || shortestAbsoluteDistance == 0)
                        {
                            shortestAbsoluteDistance = absoluteDistance;
                            nearestIndex = i;
                        }
                    }
    
                }
            }
    
            return nearestIndex;
    
        }
    
        public void add(final Field field)
        {
            throw new IllegalArgumentException("You need to provide x and y coordinates to add a field. Use add (Field field, int x, int y) instead");
        }
    
        public void add(final Field field, final int x, final int y)
        {
            super.add(field);
            this._coordinates.addElement(new XYPoint(x, y));
            updateLayout();
        }
    
    }
    
  • You place your order on the Apple Site

    I ordered a 7 IPhone September 21, as it was very
    hard to get one at the store here in Rome, Italy
    at that time. Today, 7 October, I see that the IPhone is available to any
    store, but I have still not received my... and shipping follow-up shows that
    the phone is always located in Amsterdam, Holland. This means that it will be
    probably need another 7 days to be delivered to me! Now, I want to only disclose my
    concern that I think that what makes an online prescription should be advantaged
    otherwise it's not really a reason to buy
    an article on the Web Site!

    And this is the last time I'll do so!

    Thank you!

    Greetings from Rome

    !

    Don't know what your question on the iTunes Store, but you already know that you talk only to other users on these forums and that Apple are not here - if you want to contact Apple using the 'contact us' link at the bottom right of each page here.

  • Change order number/special character artists

    I would like to know if there is a way to change the order of all the artists that begin with a number or a special character order. Currently, they are all sitting at the bottom of the list of the artist on the ipod (and iTunes) but I would like to have all displays at the top of this list.

    This is the sort order...  I think you would need to change the names of the artists so that they start with something that gets sorted at the top of the list in alphanumeric order.  For example, replace 10,000 Maniacs a_10, 000 Maniacs.

  • My photos and videos are not in chronological order, when I export the Photos app

    Hello. When I export my photos and videos from the Photos app on my iMac all the photos and videos are not in order. I need all the photos in good standing - I need to export about 5 000 pictures of the application in order for a meeting next week! Help, please!

    Ethan.

    This is not photo - it is a function of the viewing program (probably the finder) - once the photos are exprted form pictures you can see then in different ways which you control, Photos does not - by the finder you can view by name of son, byt several dates, by file size, etc.

    Usually, the best way to accomplish what you want is to export using the names of batch file numbeing and then sort by file name in the program viewing

    LN

  • Impossible to place an order unlock iPhone 7 over 256 GB silver color online

    I can't unlock iPhone ordering 7 more than 256 GB silver color online. Also, I checked with my ISP (AT & T) in the store. Update received saying pre-paid AT & T customer can't place an order for me. And suggested I check in the Apple store. Please suggest me without contract, how to buy iphone 7 more

    Today, I visited the Apple store. Representative informed me that they cannot place an order for customer prepaid with any carrier (AT & T or T-mobile) even if you are willing to pay the total amount in advance.

  • Order of the iPhone

    I go the iphone7 order + 19/9

    and he said: it will be delivery between 11/10-17/10

    but the State of the process is still in its housing on part of treatment about two weeks

    they will be actually delivered between the date or not?

    They should be.  Mine was stuck in the treatment of a week and a half, and shipping and final delivery arrived within 5 days after that State passed preparing to ship.

  • Cannot change the order of songs in my playlists on my new iPhone 7 (iOS 10.02). How can I fix?

    CAN I change the order on my MacBook Air when my phone is connected (but the changes are not published on my phone)

    Hello, wolfebait!

    Welcome to congratulations on getting a new iPhone and Apple support communities 7.  I see your message that you are having problems changing the order of song into playlists that you created, but it only happens on your new iPhone.  I have several playlists I created myself, and I sometimes have to change the order of songs as well.  I'm happy to help you with this.

    1. Open your music app.
    2. Type library on the bottom left.
    3. Touch Playlists.
    4. Press the Playlist you want to change (it must be one that you have created, as organized playlists cannot be changed).
    5. Press 'Edit' at the top right of your screen.
    6. You should now see red circles 'remove' to the left of each song and three horizontal lines gray right of each song.
    7. Press the grey horizontal lines with your finger and drag the song to the position in the playlist that you want it to be in.
    8. When you have finished editing, type "Done" in the upper right corner.
    9. Your playlist should now be in the new order that you chose!

    Have a great rest of your week!

  • I'm looking for the third order intercept point

    How to find the point of interception of third order of my iphone 6? There is a sheet with all the technical specifications in relation to the my phone gsm modem. Thank you

    No, Apple does not publish or release this level of technical specifications to the public.  Since the 3rd order intercept is a purely mathematical concept for such low power as a smart phone device, I imagine that these kinds of data are unknown outside of Apple's own engineering group (or Foxconn I guess)?

  • How to change the order of people

    Under El Capitan, I recently spent some time to reorganize manually about 260 faces in a seemingly random way in order of last name. Now under the Sierra Apple has decided to display them in the order first name without the possibility of manual reorganization which is useless and irritating. Any suggestions on how can I change the order?

    In Favorites, you can drag and drop them in the required location - those remaining you can not change the order

    LN

  • Hear an album after another in the natural order

    In iTunes, there is an 'Album of the artist' option which allows me to listen to the tracks of each album in the natural order, one album after another. This seems not possible on my iPod Nano (6th). Does anyone have a suggestion? Classical music lover I find it confusing to have a concert mixed movements. BTW, there is a function to play all the tracks of all the photos in alphabetical order, but it's also discomforting

    Create a smart playlist that includes all the songs in your iTunes library.  I have a window Edit smart playlist list that looks like this

    This playlist has ALL your songs.  If this selection is too large to fit on your iPod nano, you can add additional rules to the smart, such as playlist

    Kind is classic  (all songs from the classical music should have entry kind of 'classical' music)

    The artist is [artist name] (create a separate smart playlist for each favorite artist)

    You can also use the points to Match only checked box, in order to limit the smart playlist of songs that are archived in the library.

    NOTE: You can use normal playlist instead and add songs manually.

    See the playlist in iTunes and use the sort order of the artist Album .  Set up synchronization for include the playlist.  If you synchronize library of ensemble music, it is included automatically.  Sync the iPod.  When you use your iPod, play songs in this playlist (with iPod a play in-order).

  • Order of items in a collection

    Hello!

    Make changes to the order elements within a synchronization of collection between a mac and ipad iBooks?

    I'm arranging my books (ePub from the ibooks store) in the collections and the order in which I choose in ibooks (mac) does not synchronize with that of ibooks on the ipad.

    In addition, anyone knows who is the 'key' to include in the itunesmetadata.plist that itunes create inside your ebook when you add it to your library that manages collections? (I mean: what to include in this file to make the ibooks to know this book is part of a collection, and where the order on that?)

    Hey alexeiei,

    I think it can be arranged by your style "sort by", that it either by most recent, title, or manually. That being said, it must the synchronization between your devices. In addition, make sure that you are allowing your devices to share the book metadata information.

    On your Mac

    • Open the iBooks app.
    • Select iBooks > Preferences > General.
    • Select "Sync bookmarks, facts highlights and collections across devices.
      This setting is enabled by default.

    On your iPhone, iPad or iPod touch

    • Go to settings > iBooks.
    • Select the Collections of synchronization and synchronization of bookmarks and Notes.
      In iBooks 3.2 or earlier, select Synchronize Collections and synchronization of bookmarks.

    If you don't see all your information on all your devices, check your settings:

    • Make sure that you have turned on sync above settings on all of your devices.
    • Make sure you use the same Apple ID in the store, iBooks on all your devices.

    See the link, here, Apple's Support pages.

  • Question about pre-ordered Album, (first time)

    For my birthday my sister gave me a $ 25 Itunes gift card and I went and pre-ordered the new Album of Metallica Deluxe, (The Set 3 disc) and I confirmed my purchases of 14.99 and my question is,.

    Has paid for the entire album in full, or each track when you click on the pre-ordered button? I am responsible for the 1.29 for the first single and again here second single, (two songs)

    Will need me even more money or the 14.99 will always cover the entire album?

    Will need me even more money or the 14.99 will always cover the entire album?

    14.99 + tax will cover it.

    When you pre-order, you pay for the titles as they become available and then pay the balance when the full album is available.  In the end, you have the complete album for the price of the correct album.

  • List of Finder application and orders

    For years I used a hotkey on the command "paste and Match formatting."  It is useful in applications such as Word and Mail.  This command does not appear in the Edit menu and I remember more where I found it.  I was therefore wondering if there is somewhere a list of orders.  I would like to browse and look for other more useful.

    You can find the list of commands in the article: Mac - Apple Support keyboard shortcuts

    Thank you!

  • Photos not in chronological order after updating to the new iPhone 7 since the previous backup

    A few days ago, I backed up my iPhone 6 before heading to Verizon to update the iPhone 7 (128 GB). At this point, all my photos are in normal chronological order. Once I got the new phone, I plugged into my MacBook and put in place since the last backup, and my photos were so totally out of order and in all directions in my camera roll.

    Any way to put them in order? I tried to reset my phone and restore. Both without success.

    Thanks in advance.

    Many of us with the same problem.

    Check out this other Apple support thread:

    Re: Camera Roll photos disorderly in iOS 10

Maybe you are looking for

  • 10.11.5 OS problems

    After you run 10.11.4 happy for awhile, we installed the update for 10.11.5 May 24.  Shortly after, strange things started to happen!  To randomly SWITCH to ALL capital LETTERS, which put impossible passwords.  Can often kick off by disconnecting and

  • Satellite M40X - impossible to install the LAN driver

    Heya, I wonna set up a local network with my laptop and my home pc. There is just this one problem, that my M40X doesn't. I connectet my homepc and the toshiba with a cross-over cable. He worked at my home pc. The two winXP. The toshiba it shows me "

  • Error of TCP connection when sending MODBUS for WAGO controller 750-881 orders after 113655 bytes of data have been sent

    Hi all I'm new in the world of labview and trying to build a VI that sends commands to a controller of the WAGO 750-881 at regular intervals of 10 ms. To set each of the WAGO comics at the same time, I try so to send the Modbus fc15 command every 10m

  • WET610N connection problems

    Recently, I upgraded my internet service with brighthouse.  They installed a new router/bridge which is a motorola surfboard SBG6580 wireless cable modem gateway.  Previously, I used a linksys router WRT54G.  I have had and used the WET610N bridge wi

  • Upgrade of Windows software

    I have a HP Pavillion G6-2006ax with Windows 7 64 bit. As you may know, Windows 8 will be released soon and I want to upgrade to Windows 7. My question is, how can I keep the software pre-installed on my PC (for example you cam, PowerDVD etc) when I