To implement own Custom Manager

Hi all

I want to set up my own Manager for my screen. Basically, I want to move over an area that is made up of field tiles bitmap either say I wish to have a manager that contains 9 tiles 200 x 200 bitmap fields; but the visible region of the Manager is also 200 x 200, so that it can display only a single tile at a time. And I want to move up, down, left and right to see the other tiles as well.

I created a class that extends the class of Manager, have replaced the 3 as well - getPreferredWidth(), getPreferredHeight() and sublayout() methods. Then, I created an instance of this class in my class of the screen.

What is the right way to do it? If so, I'm still not able to see anything on my screen. Could someone help me please?

Thank you & best regards

-Arun

Hi all

Thanks for your replies. I am able to do what I asked above. I set up my own ScrollListener class and managed the scroll it himself.

Now, can someone please tell me how can I draw a shape or a text with a transparent background?

Thank you!

-arun

Tags: BlackBerry Developers

Similar Questions

  • Custom Manager does not display anything

    I encounter the same problem that has been described in this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/implement-own-custom-manager/TD-p/233568

    The thread was to make a ScrollChangeListener. Is a necessary ScrollChangeListener in the extension Manager? The API documentation makes no mention of this requirement.

    Thank you

    I think that I finally understand it.

    When you use drawText, I put values non-null in the coordinates of the anchor. I thought that I had to move the anchor point for each field that I drew in the Manager. It turns out that Manager takes care to position the region of drawing of field, so I didn't need to move the anchor point.

    I assumed that when I moved the anchor, he moved the drawing actually so that he was no longer in the clipping region. It is in any case I guess.

  • BlackBerry smartphones make my own custom ringtone

    Simple question, how can I make my own custom ringtone & how can I install it on my BB Pearl 8220

    Get an mp3 file and save it on micro-sd card in your device.

    To save the mp3 file, there are two ways available: Roxio Media Manager (comes with Blackberry Desktop Manager with Media Manager) and when to use your Blackberry as a USB device.

    I recommend the second way.

    Transfer your mp3 ringtones folder on your micro-sd card file.

    After that, the mp3 file will be available to set as a ringtone custom to a contact in address book.

  • Simultaneous fixation for custom manager request

    Hi all

    Please let me know how I can join demand set to custom Manager simultaneously.

    Thank you.

    Hello

    You must provide rules of specialization for your simultaneous custom manager - see this thread for the steps that you must implement.

    Creating new concurrent Manager custom
    Re: create new custom simultaneous Manager

    Kind regards
    Hussein

  • I would like to implement Cisco Security Manager demo and requirement, I have about 500 devices

    I want to implement Cisco Security Manager .demo and requirement, I have about 500 aircraft and which is sutabale also want to access VPN management

    And what is your question?

  • Need help installing QuickBooks Customer Manager v 2.5 on windows 8.

    Trying to install QuickBooks Customer Manager v 2.5 on windows 8... help!

    Hello

    There is a notice on the certified QuickBooks Pro on Windows 8 to the QuickBooks
    Pro Support site.

    Intuit - QuickBooks Pro - Support - contact us
    http://support.QuickBooks.Intuit.com/support/ContactUsPhoneList.aspx

    ---------------------------------------------------------

    Check with QuickBooks support and their forums.

    QuickBooks - Support
    http://support.QuickBooks.Intuit.com/support/default.aspx

    QuickBooks - contact technical support
    http://support.QuickBooks.Intuit.com/support/contactus.aspx

    Intuit community
    http://community.Intuit.com/

    Intuit Community/Forums
    http://community.intuit.com/quickbooks?lid=Community(SUB%2520HDR)

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Photoshop Elements 12 - create your OWN custom shapes

    I was wondering if there was a way to create your own custom in Photoshop elements 12 shapes. Tutorials that I looked but I found only those for regular Photoshop in which they use the tool pen and paths window, something 12 elements do not seem...

    rm2425 wrote:

    I was wondering if there was a way to create your own custom in Photoshop elements 12 shapes. Tutorials that I looked but I found only those for regular Photoshop in which they use the tool pen and paths window, something 12 elements do not seem...

    Elements has much less features with vectors as the full Photoshop.

    That said, it is possible to create and work with your own shapes if you us different add-ons, in particular of the elements + (on items + , very affordable).

    Read the section 'Ways': paths

    To save your creations of vectors (for example with paths from selections), save your vector layer in a psd or tiff format that you can then use in new designs.

  • Validation of DateTime field (without custom management functions)

    Hello

    I need to know how I can validate if a date is correct or not and fail to do something.

    I have a DateTime Field field, with a pattern ' DD / MM / YYYY ', the value appears correctly using the selected template, the problem is validation.


    Now I just that if the date is wrong, teaches an alert to the user, and the focus returns to the DateTime control until you enter a valid value.

    I need something like:

    -Form1.SUBVENCION_O_AYUDA.dateTimeField1: Validate - (JavaScript, client).

    If (this.rawValue! = null & &! test (this.rawValue, ' DD/MM/YYYY')) {}

    xfa.host.setFocus ("this");
    }

    How will I know if the validation is successful or not (without having to implement long-standing management functions)?

    By default, if I put 'validation model messaga' field, a warning message is displayed, but here the emphasis is more and the user can continue to fill the rest of the form, whereas the datetime field is filled with an incorrect value.

    I want to warn the user to continue to fill out the form, if the value in the dateTime field is not valid.

    Any idea?

    Thank you!

    Hello

    If your date may not be formatted correctly against your view model then the formattedValue is equal to the rawValue.

    Thus, in the event output put;

    If (this.rawValue is this.formattedValue)

    {

    App.Alert ("enter a date in the dd/mm/yyyy" format "");

    xfa.host.setFocus (this.somExpression);

    }

    Bruce
  • Graphic objects on a custom Manager

    Hello, all,.

    I've implemented a Manager with complex methods of sublayout() and object.  sublayout() uses layoutChild() and childPosition() to place fields (some of which are in turn the instances of the same custom handler class) on the screen.  object uses graphical methods (setBackgroundColor, clear, setColor, drawLine, drawBitmap, drawText) to emulate the net.rim.device.api.ui.decor functionality (that we support v4.2).  I use no clipping rectangle to optimize the behavior that the performance is decent enough as it is.

    My problem is that the small rectangular parts of the screen are sometimes deleted the background color.  Fixes extra "navigation" on the screen.  Hell, asking same background (at least) and return to the application solves the problem!

    Here are a few images to see how the same screen looks like at different times (it is a simulator with 5.0.0.442 9700, phones and other simulators of all look at them differently, but close).  The last of them is the way in which the screen is supposed to look like, others have these "spots".  There is no field focus outside the screen main itself - all "navigation" is treated by painting the fields differently.

    Any idea what's going on?  I confused framework BB enough to do some weird stuff?

    Found the problem!  In my calls of drawText that I used g.getClippingRect () .width to get the available width for the text, which is clearly wrong.  Once I changed it to the extent of the field under the position of the original text and less good padding / width of the right border, everything started working.

    Sorry to bother everyone with my own stupidity,

    Arkady.

  • Implementation of the management of the gift card

    I'm looking just for clarification about the right way to implement the ATG to use gift cards as a source of payments. I looked at the [suite thread | https://forums.oracle.com/forums/thread.jspa?threadID=2329967] and there point out how to configure the card as a payment group. But is it the right way, since gift cards are not function OOB of the platform or framework.

    Is it better to go down the route of using gift certificates - which so far, that I found to be a bit of work because it expects to have something to claim etc. My concern is that if you make changes to gift certificates to manage gift cards is that the customer might want to start issuing gift certificates which will then cause more problems I think.

    So what I'm looking for is a bit of sense.

    If I go with the addition of a new group of payment of gift card, I guess multi payment is already active and ATG OOB will determine to do on the price point. All calculators are in place to determine the total general of items in the basket ofter applying gift cards.

    Thank you

    You are in the right direction. Its better to have gifts cards as new payment group.
    Gift certificates must be used at the same time, but gift cards can be used several times so there's a balance in there.

    Peace
    Shaik

  • Customer management - t410 - HP zero

    Ok.  I need to know which management option to use for the t410 and why there are two; no good documentation on explaining the differences.  We use both?  I've been playing with zero service HP Device Manager and customer.  Looks like Zero Client Services is a configuration all or nothing; which means that your limited to one profile and if you want to have different settings for other devices, you must create a structure of folders to MAC address.  Could turn into a nightmare when the count of device gets over 50 or more.

    I am also unable to find any documentation on explaining how the image and push with Zero customer service packages.  There is not a management console for the zero customer service see all features that are deployed and easily allows the concealment, such as Device Manager.  Is there a rule of thumb to go when deciding on what management console to use?  Also where kits of Client for the zero customer service?  I need of advice and help on the update of the images, pushing packages, customer Kits and shadowing remote with Zero Client.  HP Device Manager seems to be explicit.

    Thank you

    Knox-TN

    Hello

    Please find the steps to install packages via SMART zero client

    1. Download and save the file (for ex: file .deb/xar)
    2. In your server have. C:\Program Files (x 86) \Hewlett-Packard\HP customer smart Service\auto-update
    3. In the folder paste the file in the packages folder
    4. Go to the C:\Program Files (x 86) \Hewlett-Packard\HP customer smart Service\auto-update
    5. Index.txt open and the following lines.

    Packages /.

    For example: (packages/xxxxxxx.deb)

    1. Save the file.
    2. Restart the workstation.

    ******************************************************

    Regarding its use, I recommend using HPDM 4.6 as he got both built-in profile editor.

    ====================================================

    Although I am an employee of HP, I speak for myself and not for HP. ===

    * Click on the star of CONGRATULATIONS on the left say "thank you."

  • Stops running after the recall of custom Manager runtime error

    I have written a custom runtime error handler based on the example of ErrorHandlerExample which comes with TestStand uses Teststand 2010 SP1. It has been implemented as a reminder of StationPostStepRuntimeError in my folder of reminders of the Station.  I modified the example as follows:

    (1) added code to disable the transmitter USE if it was on.

    (2) added a call to an executable that sends an email to the currently logged in user.

    (3) call the TestStand standard runtime error dialog box using the method DisplayRunTimeErrorDialog of engine.

    (4) the user's selection process, then turn on the transmitter USE for any another option and then have an abortion.

    The recall also checks the State of the break and "do not show this execution" options selected by the user.  If the user selects break so the only option I can find is to call the method of the Execution.Break () API which breaks execution there in my reminder. The user must then step go out the recall.   Is there a way to instruct TestStand to complete execution of callback and the break immediately after completing the callback (i.e.at the next step after the error)?  I have compressed upwards and attached my modified sequence.

    If not, is there a better way to do this?

    Kind regards

    David

    Had the chance to try it yet but maybe StepOut is your solution?

    The help of TS:

    StepOut method
    Syntax
    Execution.StepOut

    Goal
    Resumes the execution of a suspended state and then pauses again once the execution of the current sequence.

  • Custom Manager not correctly rendered after having been added to a VerticalFieldManager in BlackBerry

    I have a VerticalFieldManager that renders a white round rectangle.

    This is the code:

    VerticalFieldManager _vfmBackground = VerticalFieldManager(Manager.NO_VERTICAL_SCROLL | nouveau)
    Manager.NO_VERTICAL_SCROLLBAR | Manager.USE_ALL_WIDTH) {}
    public void paint (Graphics graphics)
    {
    Graphics.Clear;
    graphics.setColor (Color.WHITE);
    graphics.fillRoundRect (10, 10 460, 400, 25.25);
    Super.Paint (Graphics);
    }

    protected void sublayout (int maxWidth, maxHeight int)
    {
    displayWidth = int (Display.getWidth ());
    displayHeight = int (Display.getHeight ());

    Super.sublayout (displayWidth, displayHeight);
    setExtent (displayWidth, displayHeight);
    }

    };

    Then, I created a custom handler named BaseHeaderBlueScreen class that renders a blue rectangle:

    public void paint (Graphics graphics)
    {
    Graphics.Clear;
    graphics.setColor (610212);
    graphics.fillRect (20, 0, Display.getWidth (), Display.getHeight ());
    Super.Paint (Graphics);
    }

    protected void sublayout (int maxWidth, maxHeight int)
    {
    int displayWidth = (Display.getWidth () - 40);
    displayHeight = int ((Display.getHeight () / 2))-90;

    super.setExtent (displayWidth, displayHeight);
    }

    Finally, I add this handler to the VerticalFieldManager with the white rounded rectangle:

    BaseHeaderBlueScreen _vhbs = new BaseHeaderBlueScreen (environment, textBottom, 0);
    _vhbs.setPadding (20,30,0,0);
    _vfmBackground.Add (_vhbs);

    That's how the rectangle blue should be displayed in the white rectangle.

    But it is how the blue rectangle is currently displayed (note the gray space on his left side):

    How do I do to make the blue rectangle, exactly like you want (without the left border gray)?

    Thanks in advance!

    Hi thanks, I just removed object calls these two methods clear() and now it works!

  • Implement the custom application of Phonegap/WebWork

    Hello!

    I was developing a Blackberry java application based on BrowserField, but now I found that Phonegap will be the best solution. However my custom login app requared screen and some other features. If I understand correctly implemented in WebWork login screen, so my question is should I customize Phonegap/WebWork application? Can I use port Phonegap code to work with BrowserField or can I customize WebWork and rebuild?

    Any help would be much appreciated!

    Thank you, Tim. I have already made adjustments that I need.

  • Custom Manager setExtent and setVirtualExtent

    Hello

    When we create a Manager custom which is the best method to call to the to the method sublayout to set the size and why?

    1 setExtent

    2 setVirtualExtent

    Thank you very much

    check these links

    http://supportforums.BlackBerry.com/T5/Java-development/setting-virtual-extent-of-Manager-makes-whol...

    http://supportforums.BlackBerry.com/T5/Java-development/question-regarding-setExtent-and-getPreferre...

Maybe you are looking for

  • Remove the Stand Z1

    I want to wall mount my Z1. Documentation says to remove the stand reveals the VESA mounting holes and yet I could not find instructions on how to remove the stand. It is not obvious by looking at. Can someone advise me on how to remove it?

  • Images not showing in moments, the collections or the years

    MacBook Pro 2.66 GHz Mac OS 10.10.5 Pictures 1.0.1 Images import from Apple Mail to all photo album, but not displayed in Moments, Collections or years. When I right-click (Ctrl-click) on the image in the photo album and select Show in the Moment, no

  • Very often slow wifi internet on my Probook g2 450 brownsey

    device: Hewlett Packard Probook 450 G2 (J4s43EA) operating system: windows 8.1 pro x 64 Windows updates: the latest BIOS: last drivers: on the hp device driver site problem: Very often, but not always my internet speed is slow down. (Web sites needs

  • OfficeJet K550: Need key for the OfficeJet K550 Control Panel combinations

    Hello! I have an OfficeJet K550 - sustainable printer printer and it was, I had never (and I've had dozens of brands and sizes). It's been serve me flawlessly for years! The problem is that the page "Troubleshooting print quality HP Officejet Pro K55

  • Outpost Antivirus - incompatible program

    Hey,. Some time ago I tried to install a free antivirus (Outpost Firewall), published by Agnitum Ltd, it downloaded on my computer very well, but just after it appeared there is a compatibility issue. The message will not go away, and it is very anno