Relationship between the list and ListField...

Hey people of Java...

I can't thank you enough for your answers because I'm really starting to "grok" the paradigm of Java.

Another came today I'm having problems understanding I deconstruct this app MemoryDemo...

In the screen of the demo is these two lines:

Get and display the list of customers.
_customerList = CustomerList.getInstance ();
_customerListField = new MyListField (_customerList.getNumCustomerRecords ());

Well, now I understand the first line perfectly. She develops an object with the contents of the customers it contains.

The second line calls a custom ListField routine that I show below:

the final private class MyListField extends ListField
{
public MyListField (int numEntries)
{
Super (numEntries);
}

}

Here is the part that I don't understand:

It seems to appeal to both the MyListField() and the super() is simply the NUMBER of elements required, but not * that * list to use.  Exactly how is MyListField() or super() knows how to use the list of customers?  I ask because this exact routine is used a few lines more later (in the part of the main screen) to do the same thing for a list of the records of the order - even once without any reference to which list to use.

It doesn't seem to be an explicit connection or the relationship between the _customerList and ListField is building.  Is somehow deconstruct '_customerList.getNumCustomerRecords ()' to its root and use _customerList somehow?  I don't think that I changed the call to this:

_customerListField = new MyListField (_customerList.getNumCustomerRecords ());
_customerListField = new MyListField (PICK_A_NUMBER);

Where the constant is: public private static final int PICK_A_NUMBER = 50;

And he ALWAYS displays a list of customers (though now with only 50 files).  How to do know?

Thanks in advance!

-John

"I guess that somewhere in the interior architecture of the ListField, he knows that he has to paint the whole - one at a time - when put on the screen - that's it."

Fix.

This is the great thing about ListField.  It attracts only those who are on the screen.  If you use ListField draw a list of 10,000 rows (I tested), and it will only extract and draw the 10 that he needs.

"Again, I don't find any explicit loop where it is through each element and then calling drawListRow()."

Good yet once, it is not there.

"Maybe one day I'll be able to pay it back here."

It would be great.

Tags: BlackBerry Developers

Similar Questions

  • I get an error, 'relationship between the workstation and the field has no confidence. "

    I have a 2003 domain controller, this a job gives me an error "trust in relationship between the workstation and the domain failed" so I read I have to reset the server, remove the object and remove the workstation from the domain, but my problem is that I can not even log in as administrator to do. My admin login details work perfect on other machines, but not this one. Help, please!

    On computers that are connected to a domain, you always have the choice to get authenticated by the controller of domain or the local computer. You must select the local computer, and then use a local administrator account.

  • Table of IOM which shows the relationship between the request and approver

    Hello

    I have a few users who belong to the group "admin".

    Any request for a particular resource goes to this group for approval.

    I tried most of the tables in oim 11g r2 to find a relationship between the request and the approver group.

    The demand table has information about the request but no relationship with regard to the approver. Approver as a group, I need to know the status of name and the Group (pending, approved, rejected) request.

    Please could you all expert let me know the table I can find information on these...

    Thank you

    Search in the SOA tables

    WFTASK

  • Relationship between the user and account in IOM DB

    Hello

    do you know how is set up the relationship between the user's record in the USR table and an account of application instance in the table form of process (as in UD_LDAP_USR)? I analyzed records from both tables, but failed to find the key to the relationship between the records in these tables.

    Peter

    The table Ouedraogo is the link between all the tables of an instance of a resource. The ORC_KEY is the process instance key that links the tables of UD_XXX. And there is also the USR_KEY which connects to the table user.

    -Kevin

  • What are the relationships between the logging and IKM?

    What is the best method to use in the following scenario:
    I have about 20 tables with the large amount of data sources.
    I need to create interfaces that join the source tables in target tables.
    The tables are inserted every few seconds with about hundreds of thousands lines.
    There may be a gap of a few seconds between the insertion of different tables that could be attached.
    The source and target tables are on the same Oracle instance and schema.
    I want to understand the role of: 'Logging CDC' and "IKM - incremental" and
    How can I use it in my script?
    In general, what are the relationships between "Logging" and 'IKM '?
    Use both? Or maybe it's better deelte and insert the target tables?

    I want to understand what is the role of "Logging CDC"?
    Can 'IKM - incremental' work without "logging"?
    Must 'Logging' have PK on the tables?
    What should I do if I can't say PK (there may be several identical lines)?

    Yael thanks in advance

    user604062 wrote:
    Hello
    Thanks for your quick response!

    No probs - its still fresh in memory I did a major project on this topic last year (400 tables, millions of lines per day (inserts, updates, deletes), sup-5 minute latency). The problem is it isn't that well written on the web, that you have read the blog of the example I linked to in my first answer? See also here: http://odiexperts.com/changed-data-capture-cdc/

    Always on logging:
    My source table is inserted all the time.
    The interface to join the source table in the target table.

    In ODI, the correct term would be your source table "fits" in the table target, unless you mean literally that want to join the the source with the taget table table? My question if you want to do with the result of the join?

    What exactly the "journaling" CDC updates?
    It updates the model of ODI? interfaces? The source of data in the model of ODI? The target table?

    Logging CDC configures and deploys the data capture mechanism (Triggers or log based capture, IE Logminer/streams/Goldengate) - it is not updated the model as such, she pointed out the metadata of the model of ODI repositoty as a CDC data store, allowing you, the developer say ODI to use log data if you wish (reported in the interface) There is no change in the target table, you get an indicator of metadata (IND_UPD) against a line during the integration (in C$ and I have tables$) that tells you if its insertion (I) and update (U) or deletion (D). It had ' lines allow you to synchronize the deletions, but yoy say its inserts only then you probably used use this option. "
    So the only changes are the source table to your interface, another diary data (if you use logging) or the table of the actual source (if not using the logging).

    This is the main thing that I don't understand!

    I hope I made a little clearer.

    Try the following as a quick test:

    Reverse a source table an engineer and the target (at least) table.
    Import the update incremental LKM and IKM.
    Import of the JKM you want to use.

    Create an interface between the source and the target without any deployed JKM.
    Configure the options of JKM on the model, the "Start log" to start the process of capture - this is quite a complex stage and a lot of things to understand what is happening in the source database, better to check code ODI sends to the database and to review the documentation of Oracle database for a description of what his weight (instantiate Tables (, sets of creating change, creation of subscribers etc. establishment of newspaper groups, creating views Journalising etc.) -you will need to consult your Source DBA database initially as ODI wants to make many changes to the source DB (in mode Archivelog process max, parallelism, size, Java etc.)

    Now, edit your interface and mark the table source for use "Journalized data bank.
    Restart your interface
    Compare the difference in the generated code in the journal of the operator, see the differences of the operator.

    >

    Thank you, Yael

  • ADF AND SOA: WHAT IS THE RELATIONSHIP BETWEEN THE ADF AND SOA

    Hello world

    someone can such me what is the relationship of the ADF with SOA?
    How are they related? or no relationship at all?
    ADF is part of the SOA?
    Why ADF?
    Why SOA?
    Thanks in advance guys.

    Kind regards
    Raja.

    ADF is a framework that helps you to create applications that are designed according to SOA best practices.
    With ADF, you build reusable business services that can be exposed and consumed in SOA flows. Moreover ADF allows you to create parts of the user interface of your SOA application.
    There are other points of integration between the Oracle SOA suite and Oracle ADF - I recommend to watch this for an overview:

    http://download.Oracle.com/otn_hosted_doc/JDeveloper/11gdemos/Introduction_To_ADF/Introduction_To_ADF.html
    http://download.Oracle.com/otn_hosted_doc/JDeveloper/11gdemos/ADFInsider-SOA/OracleInsider-SOA.html

  • relationship between the oe_headers and mtl_material tables

    Hello

    can anyone guide me with the link between
    oe_order_headers_all oeha,
    mtl_material_transactions and oe_order_lines_all extreme
    is that correct?

    OELA.line_id = mmt.transaction_source_id
    AND oela.header_id = oeha.header_id
    pls Guide

    Published by: makdutakdu on March 2, 2011 12:06

    Hello

    This join is not correct.
    The ID of the header is not same as transaction source line id.
    But line id is the same as the transaction source line id

    Select order_number in the oe_order_headers_all where header_id in
    (select header_id in the oe_order_lines_all where line_id in)
    (by selecting TRX_SOURCE_LINE_ID in Mtl_material_Transactions)
    )

    Kind regards
    Sabari

  • Relationship between the Application and the data group

    Hi all

    Can someone please help me get a query that tells me which application is associated with which group of data?

    Thank you

    Moore

    Moore,

    Request FND_DATA_GROUP_UNITS_V - http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_DATA_GROUP_UNITS_V&c_owner=APPS&c_type=VIEW

    If the view doesn't meet your needs, and then write your own query using the following tables:

    APPLSYS. FND_DATA_GROUPS

    http://ETRM.Oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_DATA_GROUPS&c_owner=APPLSYS&c_type=table

    APPLSYS. FND_DATA_GROUP_UNITS

    http://ETRM.Oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_DATA_GROUP_UNITS&c_owner=APPLSYS&c_type=table

    APPLSYS. FND_APPLICATION

    http://ETRM.Oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_APPLICATION&c_owner=APPLSYS&c_type=table

    Thank you

    Hussein

  • Relationship between the versions and plan_hash_value

    All,

    I ' just trying to understand versions n/b, the child cursors and plan_hash_value

    1. a sql_id can have only a single hash_value.
    2. a sql_id can have several versions
    3. a version can have multiple plan_hash_value

    Where is the 'child' slider fits?

    TIA,
    JJ

    Just to do some additional testing, and everything will become clear.

  • Relationship between the naa and the number LUN? (And SCSI id and mpx)

    When you look at a map of storage on a Fibre Channel network I see a few different "naa" id: s for each LUN. LUNs from the same SAN naa seems similar, but always unique.

    My first question is if the "naa" is based on something physical disks or if he comes an ID the SAN attached to each logic unit number as it is created?

    Is it true that a name of mpx is something an ESX host can produce when no naa is known?

    The final question is the SCSI id that could be seen of a LUN in the storage of vCenter views. There seems to be a SCSI id for each disk/LUN, and I wonder what this SCSI id? If it was only a single disc, it might be a physical serial number of the drive itself, but when you look at a LUN composed of several discs there must be something else.

    Its just only usually know the WWN for each unit number logic is unique.

    Channel is a former SCSI reference - very rarely used nowadays, and, as you mention, is almost always '0'.

    -Matt

    VCP, VCDX #52, Unix Geek, Nerd of storage

  • Relationship between the asmdisk and linux

    Hi all

    I need to know which linux devices are assigned to an asmdisk. I try to make using the oracleasm querydisk option, but no results:

    # /etc/init.d/oracleasm querydisk PCMSDATA1
    Disk "PCMSDATA1" is a valid ASM disk

    I'm trying to find searching the v$ asm_disk view, but only to score the oracleasm name, not the linux device name:

    SQL > select name, path of v$ asm_disk;

    PATH NAME
    ------------------------------ --------------------
    PCMSDATA1 ORCL:PCMSDATA1
    PCMSDATA2 ORCL:PCMSDATA2
    PCMSDATA3 ORCL:PCMSDATA3
    PCMSFLASH1 ORCL:PCMSFLASH1
    PCMSFLASH2 ORCL:PCMSFLASH2

    any ideas on how I can find this information?

    Kind regards
    dbajug

    Try:

    /etc/init.d/oracleasm querydisk -p 
    
  • How to establish the relationship between the tables contact and Global (entity) in Oracle Service Cloud to preconfigure data

    Hello

    We strive to integrate the OPA attributes to the Cloud Service Oracle tables to store session data for the customer portal users.

    We tried mapping the attributes of the OPA with relevant tables of cloud Service Oracle? Is there any installation of additional data to create to retrieve the session data for the particular user / contact?

    We managed to save tha data in arrays of cloud Service for users of ananymous and also well regarding customers portal users but to preconfigure data do we need to do any additional configuration / mapping to the contact table?

    Please help on the establishment of the relationship between the contact and Global (new table created in cloud Service) tables.

    Thank you

    Vivek

    Hi Vivek,

    To load data from the Contact in the the OPA policy template, you must configure the widget of the OPA. For instructions, see the following articles:

    - Incorporate an interview that uses data portals in Oracle Service Cloud Customer Portal

    - Deploy and configure the sample OPA widget

    - Insert the widget to sample in a customer portal page

    Obviously, you need to do the mapping in OPM as well, but even if the mapping is correct, you will not be able to load the Contact data unless the widget of the OPA is implemented.

    See you soon,.

    Jasmine

  • What is the difference/relationship between a subject and a page?

    Hi all

    I'm not sure of the relationship between a topic and a new page: it seems that a subject can be made up of pages, but when I look at the HTML of the subject, there is no new section (DIV) for the addition of the page.

    Also, not sure about the relationship between the book and the pages/topics.

    You would be grateful if someone could either point of reference material or provide a few clarifying words on that.

    Thank you, Donna

    In regards to the benefits of the pages pointing to topics:

    Placeholders (table of contents Pages) allow a single topic to appear in several places in the table of contents. If the table of contents used directly the subject, each topic could appear only in one place. For example, maybe help is divided into sections, user and administrator, and administrators and regular users can add coordinates to a person in the application. Using a placeholder allows a single procedure to be created (as the task is the same for both users) and then referenced in the two sections of the table of contents.  If the subjects were used directly, two different subjects will have to be created. You can also organize your subjects in a folder structure that suits you and use a different structure in the table of contents.

    The placeholder allows also a display name different be used, for example, if you have a long topic name but want a shorter name to appear in the table of contents, or if the topic appears in several places in your table of contents and you want to focus slightly different in each place, say for different groups of users.

  • Explain the relationship between libraries, albums and photos in pictures.  Where are the images stored?

    Looking for info on the relationship between libraries, albums and photos in the Photos app.  I can create several libraries containing photos and unique albums.  Can I put the same photo in libraries and the different albums?  By making a copy it creates a link to the original or a new photo?  Where are located the photo files?  When scanning photo to my Mac Pro files are placed in a folder structure, copy these photos in an album Photos using the original file or he places a copy in a database?

    Bottomline, I'm frustrated by the method of collection, the albums, the place and date.  I want store related photos in a separate album.   Example: A library for a family, containing albums of members of their family. Maybe the photos have duplicate in different albums.

    Some of your questions are answered by Leonie contributor in this thread:

    Re: Too many libraries...

    More answers can be found by using help in Photos app, or in general to help the Viewer.

    Apple Support website has links to information in articles; a search on the web is sometimes useful

    to locate the Apple pages faster than the company's site. Others in line include:

    Photos for OS X FAQ:

    http://www.IMore.com/photos-OS-x-FAQ

    How to use the Photos for OS x:

    http://www.IMore.com/how-use-photos-OS-x-ultimate-guide

    Good luck!

  • In Mail 9.2 OS 10.11.3 the limit between the list of my mailboxes mailbox and my messages keep slipping backward.  Make me feel seasick!  Can I disable this feature?  I want a stable limit!

    In Mail 9.2 OS 10.11.3 the limit between the list of my mailboxes mailbox and my messages keep slipping backward.  Make me feel seasick!  Can I disable this feature?  I want a stable limit!  (I really don't care for any of the new movements of the screen in El Capitan slide-wiggly.)  I don't know if there is

    'fixed' to try!  Help, please!

    Why do you think it is a "feature" as opposed to something to go wrong with your Mac?

    The border between my message list and the display of messages remained constant for several years now.

    Nothing moves, nothing is serrated blade.

    My mailbox list is always hidden, but when I open it, it remains a fixed width.

    I even tried the stupid "full screen" mode and could not see to do random movements, unsolicited.

    I have no idea what would cause the behavior you're seeing.

    No matter what do you do when it happens? Like maybe click on the voicemail of show/hide button?

Maybe you are looking for