publish with the help of getFieldAtLocation()

Within a Manager, I have a location BitmapField 96, 178.  Within this BitmapField class, I call the method below:

 private     boolean isBlockAt( int loc_x, int loc_y ) {       boolean isBlock = true;         // Assume block present

      Dialog.inform( "isBlockAt()" );

     Dialog.inform( "x= " + x + " loc_x= " + loc_x);       Dialog.inform( "y= " + y + " loc_y=" + loc_y);

      Dialog.inform( "width=" + this.blockwidth );      Dialog.inform( "height=" + this.blockheight );

      Dialog.inform( "index= "+ getManager( ).getFieldAtLocation( loc_x, loc_y ));

      if( this.getManager( ).getFieldAtLocation( loc_x, loc_y ) == -1 )         isBlock = false;

      return isBlock;   }

And the output is:

isBlockAt()x= 96 y=128y= 178 loc_y= 178width= 32height= 32index= 10

which should, except the index must be-1 that there is no field to 128, 178 location!

Basically, the BitmapField is 32 pixels wide and located at x = 96, therefore, the 32 x 32 right immediate block would be 128, 178 and as it not there no field here in the Manager, the getFieldAtLocation() should return a - 1, but instead, he returns the index (10) of the BitmapField which we call the method (located at 96 178).

What I'm doing wrong (or is this a bug)?

OK, while I still think that the implementation of the default super class should be able to handle this, I solved this problem by simply replacing the method as follows:

    public int getFieldAtLocation(int x, int y) {
        int fieldIndex = -1;

        for( int i=2; i

Note that I am nothing special, just that I think that the default method does exactly.  Weird, but at least it works.

Tags: BlackBerry Developers

Similar Questions

  • Publish with the help of modernization 11.1 DB Oracle dbua

    My machine is Solaris system, and it has Oracle10.1, Oracle10.2 and Oracle11.1

    This is a test box, so I have no problem down and re-create databases.

    My Oracle111 installation has ORACLE_HOME as/oracle/oracle111

    When I load DBUA, I see the 101, 102 dB, and there are 2 x 111 DBs. These have the bad Oracle home. It is listed as /oracle111/product/11.1.0/db_1

    I deleted the DB, fired up dbua, but that there is always an available database. I've recreated my 111 DB and it reappeared, always with the wrong HOUSE.

    IM quite a novice with Oracle DB, so im wondering how to solve this problem of HOSPITALITY, or drop the two entries and recreate one with the right home. FYI when I deleted the 111 DB, it there was only a single DB available to remove.

    bash-3. $00 env | grep-i oracle
    ORACLE_SID = DB111
    TNS_ADMIN = / oracle/oracle111/network/admin
    PATH = / oracle/oracle111/bin: / usr/bin:
    MAIL = / var/mail/oracle
    PWD = / opt/home/oracle
    HOME = / home/oracle
    LOGNAME = oracle
    ORACLE_HOME = / oracle/oracle111

    Hello

    All oracle entries will be exist in the oratab file, you need to update. Just the entries comment that does not exist.

    Oratab location:

    /var/opt/oracle
    

    Thank you
    A H E E R X

  • Publish with the help of af: Message for date validations ADF

    Hi Experts,

    I get the following error message when you use adf date using af: message instead of a Note window. As you can see int right below the screenshot, what happens is invalid when date is entered once, while a single error message appears below the component, but when the user clicks on the date picker icon after that every time a message is added under each time as shown below.

    date validation using af_message.png

    I use Jdev 11.1.1.5. Please let me know if there is a solution for this using java script or a property in jsf.

    < af:inputDate label = 'test' id = 'dat' >

    < / af:inputDate >

    "< af:message id ="m1"for =": dat ">"

    The solution to the above problem is,

    function errorMessClear (evt) {}

    source var = evt.getSource ();

    AdfPage.PAGE.clearMessages (source.getClientId ());

    }

  • Publish with the help of VMware thin App

    So far, I have:

    Created a package on the deployment server

    Moved the .exe to a folder named DeployMS at the root of C:\ on this server

    Machine for the MSword.exe and created a shortcut from a XP lance Word very well.

    So now, I copied ThinReg from the server to the XP Machine deployment

    and created a file locally beats on the C:\ of the xp machine that has:

    c:\Thinreg.exe/r/a ".
    & lt; Server name & gt; \DeployedMS\MSWord\Microsoft Office Word 2003.exe

    But the word is still not save.  No shortcut in the start menu, can not open .doc to the file. ect...

    Can someone tell me please in the right direction.

    The account has access to the location of the file on the server?

  • I published my site to Business Catalyst and purchased and installation by area, but the site can be seen only with the help of a search engine. The site is visible when I type the url address, but can't find a search engine

    I published my site to Business Catalyst and purchased and installation by area, but the site can be seen only with the help of a search engine. The site is seen when I type the url address, but can not find with search engines.

    Hello

    I suggest you sign upward to Google Webmaster tools (free) and check your site (directions are in the webmaster tools) and

    also consider joining Google analytic (also free).  Analytical will allow you to 'see' who is visiting your site and how they experience through research, order the seizure of the URL, or through the links, etc.  Also from where they come, how much per day, etc.  Lots of good information.

    In addition, through this document by google

    Check the performance of your site - webmaster help search

    Let me know if you have any question.

  • With the help of several types of video files into one film will prevent the publication?

    I am using Movie Maker on Vista.  I have mpeg, avi and wmv files.  The Movie Maker plays very well in project mode, but will not be published.  Multiple file extensions would be the source of trouble?

    If so, is there a quick fix?

    Hi d1bon,
     
    1. what exactly happens when you try to publish a project?
    2. do you get an error message?
     
    With the help of several file extensions should not be a concern.

    Disable video filters and check the result.
    1. click on tools and then click Options.
    2. click on the Compatibility tab.
    3. to turn off a filter, clear the check box next to the name of the video filter.

    You also uninstall the Codecs and check the result: Uninstall

    Please provide us with more details on the issue, so that we can better help you.
     
    Check publish a movie in Windows Movie Maker
    Check, solving problems with publishing a movie to your computer 
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.

  • With the help of the network location and mapped a drive to the server FTP. during the transfer of very large amounts of the login information is always lost.

    With the help of the network location and mapped a drive to the server FTP off site; during the transfer of very large amounts of the login information is always lost.  Computer power settings are configured to not to do no matter what, I'm assuming that the ftp server can publish a scenerio timeout but is there a way for my computer and windows to restart the file transfer?

    Hello

    Thanks for posting your question in the Microsoft Community forums.

    I see from the description of the problem, you have a problem with networking on the FTP server.

    The question you posted would be better suited in the Technet Forums. I would post the query in the link below.

    http://social.technet.Microsoft.com/forums/en/w7itpronetworking/threads

    Hope this information helps you. If you need additional help or information on Windows, I'll be happy to help you. We, at tender Microsoft to excellence.
  • Need the pdf file must be stored directly in the database with the help of jasper

    I use the package of integration of jasper... www.opal-consulting.de
    using apex 4 and am now able to generate the invoice pdf... with the help of jasper and store it in a database... Board.

    I need to generate the pdf in the background... without dispalying invoice in my screen...
    Without having to download on my computer... And store directly in the database table.
    *.. *

    Is this possible...
    All information is very appreicated.


    Here is my part existing code... Kindly Guide.


    DECLARE
    l_blob BLOB;
    l_mime_type VARCHAR2 (100);
    BLOB l_blob2;
    l_mime_type2 VARCHAR2 (100);
    MPort varchar2 (200);
    mrserver varchar2 (20);
    BEGIN
    Warn('fsubdno'||:P103_SUBSCRIBERDNO);
    commit;
    mrserver: = rserver();
    MPort: = ' http://'|| mrserver | ' / JasperReportsIntegration/report ';


    ------------------------------------------------------------------------
    -generate the report and return to BLOB
    ------------------------------------------------------------------------
    xlib_jasperreports.set_report_url (mport);
    Warn ('firststrikeeee');

    xlib_jasperreports.get_report
    (p_rep_name = > 'reinvx',)
    p_rep_format = > "pdf."
    p_data_source = > 'failures. "
    p_rep_locale = > 'de_DE ',.
    p_rep_encoding = > 'UTF - 8',
    p_additional_params = > ' & Psubscribe_no ='. : P103_SUBSCRIBER_NO | ' & Psubscribed_no ='. : P103_SUBSCRIBERDNO,.
    p_out_blob = > l_blob,
    p_out_mime_type = > l_mime_type
    );
    WPG_DOCLOAD.download_file (l_blob);
    Warn ('secondstrikeee');

    WPG_DOCLOAD.download_file (l_blob);
    BLOB_LOADB (MID (),: P103_SUBSCRIBER_NO, NULL, 'RENEWAL_INVOICE', 'RENEWALINV' |: P103_SUBSCRIBER_NO, L_MIME_TYPE, L_BLOB);
    ------------------------------------------------------------------------
    -free resources
    ------------------------------------------------------------------------
    DBMS_LOB.freeTemporary (l_blob);
    ------------------------------------------------------------------------
    -judgment of the APEX page
    ------------------------------------------------------------------------
    apex_application.g_unrecoverable_error: = TRUE;
    EXCEPTION
    WHILE OTHERS
    THEN
    xlog (SQLERRM, "PRC_GET_REPORT_TUNNEL", "ERROR");
    LIFT;
    END;

    Published by: susf on 16 July 2012 08:47

    Hello

    try to do a procedure from your original like this code:

    procedure make_pdf(p_subscriber_no in number, p_subscriberdno in number)
    is
       l_blob blob;
       l_mime_type varchar2 (100);
       l_blob2 blob;
       l_mime_type2 varchar2 (100);
       mport varchar2(200);
       mrserver varchar2(20);
    begin
       warn('fsubdno'||p_subscriberdno);
       commit;
       mrserver := rserver();
       mport := 'http://'||mrserver||'/jasperreportsintegration/report';
       -- generate the report and return in blob
       xlib_jasperreports.set_report_url (mport);
       warn('firststrikeeee');
    
       xlib_jasperreports.get_report
          (p_rep_name => 'reinvx',
          p_rep_format => 'pdf',
          p_data_source => 'chess',
          p_rep_locale => 'de_de',
          p_rep_encoding => 'utf-8',
          p_additional_params => '&Psubscribe_no='||p_subscriber_no||'&Psubscribed_no='||p_subscriberdno,
          p_out_blob => l_blob,
          p_out_mime_type => l_mime_type
          );
       blob_loadb (mid(),p_subscriber_no,null,'renewal_invoice','renewalinv'||p_subscriber_no,l_mime_type,l_blob);
       -- release resources
       dbms_lob.freetemporary (l_blob);
    exception
       when others
       then
          xlog ('prc_get_report_tunnel', sqlerrm, 'error');
          raise;
    end;
    

    Then, you can call this procedure in a database job that you create with an apex as this process:

    begin
      dbms_scheduler.create_job (
        job_name        => 'make_pdf_job',
        job_type        => 'PLSQL_BLOCK',
        job_action      => 'begin make_pdf(' || :P103_SUBSCRIBER_NO || ',' || :P103_SUBSCRIBERDNO|| ') end;',
        start_date      => systimestamp,
        repeat_interval => null,
        end_date        => null,
        enabled         => true,
        comments        => 'Make pdf job from Apex page 103.');
    end;
    

    Kind regards
    Erik-jan

  • With the help of several conditional tags with multiple outputs of WebHelp

    I have a project that I created for a web application. Within the web application, there are 3 types of customers (business Accts, Accts National and level 1 clients).

    I added each help topic associated with the help topics that I created.

    Then, I created 3 outputs of webhelp and 3 Table of contents for each type of client.

    My goal is to publish the project, where each type of client has their own output generated. Do it this way, which is listed in the help topics of table of contents for each type of customer that is not correctly displayed.

    Example: National accounts TOC

    What is generated:

    I have tagged in the table of contents to the conditional tag appropriate help topics. Help, please. Any advice? I can also be reached at [email protected]

    None of your screenshots came through - the icon of camera in the web interface allows you to attach images

  • My AirPort Extreme end not implemented with the help of AirPort Utility

    Bought a used AirPort Extreme (Genesis 4) of a person who showed me that he worked at home. When I try to set up as a Wireless extender to my last existing AirPort Extreme, he will not carry out synchronization upward with AirPort Utility. It appears as a new extreme, but get a message 'unexpected error' before or after the name. Have you tried to reset the two while it is powered and turning the as explained in the help.

    When I try to set up as a Wireless extender...

    Gen 4 airport will connect to your existing AirPort Extreme wireless... or... it will connect using wired Ethernet wired, Permanent?

    .. .it will not accomplish the synchronization upward with AirPort Utility.

    Which version of AirPort Utility?  If it's on your Mac... and you don't know what version you have...

    Open AirPort Utility

    Click the AirPort Utility menu in the upper left corner of the screen

    Click on about AirPort Utility

    Report on the version number you see here

    You have an iPhone or a handy iPad that could be used to implement the 4th Gen airport if the problems continue with the help of your Mac?

  • With the help of iPhone 6 s. try to copy the text message with a tap double and get a bubble with icons. How can I copy the message to paste in another?

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    maryml wrote:

    Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.

    Press and hold on the text and wait for the copy/more pop up.

  • With the help of Club running on the Nike watch +.

    Hello

    This is something I have tried to work for a while and have not yet been able to find an answer. At the moment I use Nike + management club on my iPhone to follow the tracks that I find that gps is better than just using the application of the workout on my watch. However, something that really bothers me is that I start the race on my phone, but I can't then view my stats while running without having to press on and tap the watch and wait for the application to load, very irritating to race. I want to be able to lift my wrist and live stats are there to watch me, not listening and not get my phone out of my pocket. Surely this is something that can make the original watch?

    As a separate issue with the new app, Nike +, it does not recognize the songs I downloaded on my phone of Apple music in my playlists, then I have to play the separatelay of music through the application of music as opposed to go with Nike +? The ides on how to fix or is this a known problem with the latest Nike + app?

    Hello

    You may find it useful to consult the support resources of Nike and/or contact Nike for assistance with the help of their application:

    More information:

    https://iTunes.Apple.com/us/app/Nike+-run-Club/id387771637?Mt=8

  • With the help of old gear series noon on El Capitan

    I have a Vox Tonelab SE effects audio Board (around 2004), there the old serial midi on the back ports. I hung with the help of a USB MIDI interface cable. While the USB Midi interface to the show in Audio / Midi set upward and also in the profile system for USB port it does not detect the Vox Tonelab so no communication lunch.

    There is a POWERPC application called ToneLabSE SoundEditor which I downloaded and installed in the hope he would install a driver but I guess that this obviously doesn't work on INTEL in any case. Using Wine I can run the PC version, but still no communication via midi.

    Someone at - it ideas, would like to get this Panel communicating effects via MIDI.

    Thank you

    Solved! Using the WINE app I've run the version of the PC of ToneLab SE editor application. So pretty unintuitively by changing the serial midi to USB, SERIAL interface cables that went to the and out on the Tonelab SE. Now of the Se ToneLab editor I can write banks of programs to hardware Tonelab, but unable to empty the banks since the material Tonelab to software. My main desire was to use Expression pedals on the Tonelab as Midi Ableton controllers and some of the switches to the control of the Looper stomp. Now I can do it all. Hooray!

  • With the help of Yosemite, I like Photos app in general; have big Aperture library, although I use rarely opening Tools. Advantages, disadvantages and pitfalls related to the migration of Photos?

    With the help of Yosemite, I like Photos app in general; have big Aperture library, although I use rarely opening Tools. Advantages, disadvantages and pitfalls related to the migration of Photos?

    Opening was a pro the Pro amateur-oriented or serious app, usually shooting Raw, probably on a digital SLR.

    If that's you then pictures will miss a lot for you.

    If this isn't the case, then opening was probably overkill for your needs.

    If you like the pictures then this is the way to go.

  • Thunderbird will only connect if stop then reopened. (With the help of Mac 10.9.4)

    With the help of Mac 10.9.4
    If I open Thunderbird, I can connect to my e-mail address and download the messages. If I select "Get Mail" once again, Thunderbird crashes and fails to connect to my emails. If I then close Thunderbird and re-open it, I'm able to immediately connect to my mail.

    It seems to have sorted itself after a few days. (Fingers crossed). Until today it worked properly. Will keep an eye on things for the next week and the report does so again.

Maybe you are looking for

  • Letter Q, W, E, R, T, U, I, O do not work on my laptop keyboard.

    above letters are not workng on my keyboard. However, my keyboard propertie indicate that my device is working properly.This problem started a week ago. am currently using the screen keyboard to type.I need emergency solution.Thank you

  • My B117 mode does not start

    HelloI just bought the TravelMate B117. The Intel Pentium N3700 should lead to a speed of 1, 6 GHz and with mode 2, 4 GHz.After a few tests and benchmarks, I saw that the speed is never greater than 1, 6 GHz.Turbo Boost should be enabled by default,

  • Blue screen Windows Setup hanging from the message "Setup starts Windows.

    I have a M2n SLI chipset and my computer came stock with vista 64-bit, after losing all the functions of the operating system because of a problem of .net I have tried to restore without result.  I got down to the wire with whiping the drive and now

  • Vista Windows Mail crashes when you try to download.

    Email download freezes and restart the computer to receive emails.  This method works for about 12 hours and then need to reboot again to get new e-mail messages.  Unable to find a fix anywhere.

  • activation of Windows 7 does not and none offered phone option

    I just had to replace the hard drive on this laptop, so had to do a clean install of Windows 7 64-bit. Windows online activation does not work, and it is not giving me the option to phone activation process. The 'Change product key' option on the Pro