ListField only drawing the top row

I'm having a problem with using the ListField component and using a custom inside the drawListRow (.) drawing of the callback object.

I have the following code;

 public void drawListRow(ListField list, Graphics g, int index, int y, int w) {
        int imageHeight = 80;
        int imageWidth = 80;
        int leftMargin = 3;
        int topMargin = 3;
        int padding = 5; //space between adjacent elements

        //get the item to be displayed...
        Item item = (Item)listElements.elementAt(index);

        //draw the item's image, title, description etc..
        g.drawBitmap(new XYRect(leftMargin,topMargin,imageWidth,imageHeight),item.getImage(),0,0); //image is 80x80, positions x=3, y=3
        g.drawText(item.getTitle(),imageWidth+padding+leftMargin,topMargin);
        g.drawText(item.getDescription(),leftMargin,imageHeight+padding);
    }

My installation works, I add a line to the list (and the line is OK), however, when I add a second line, the second row is created but it is empty.

Any help is appreciated!

The 'y' parameter passed to this callback method represents the top of the list to start to paint, I do not see where you set the position is based on this value.

It seems to me that you can be painting each line of position 'y' in the top row.

Tags: BlackBerry Developers

Similar Questions

  • How can I activate the top row of keys on Pavilion dv6000?

    How can I activate the top row of keys on Pavilion dv6000, they are turned off.

    If you have HP Quick Launch installed as suggested above and still no joy > > > try a hard reset, works sometimes. Disconnect all external devices first.

    battery and power cord 1 / removal

    2 - Press the power button for 20 seconds

    3 reinstall only the power cord for the first start.

    4. turn on

  • When you search something on amazon or ebay the top row always goes to the far right of the screen.

    So, when I look at something like 'shoes' in the amazon search box the top row of items flying over on the far right. And most is no longer even on my screen

    I checked on I.E. and I had no problem with that, then I guess it's a firefox issue.

    Try the Firefox Safe Mode to see how it works there. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open the Mode without failure of Firefox 4.0 + holding the key SHIFT key when you use the desktop Firefox or shortcut in the start menu.
    • Or use the menu option help and click on the restart with the disabled... modules menu item while Firefox is running.

    Do not choose anything at the moment, just use "" boot mode safe. "
    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.
    If it's good in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one.

    To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

  • When printing emails, it will only print the top of page 1

    I can print my emails. When you hit print only page 1 of 1 print at the top of the page. Apparently not read the emails. Everything will be printed.

    * original title - print my emails. When you click on print only at the top of the page. (page 1 of 1). Apparently not read e-mail. *

    Hello

    ·         What browser do you use?

    ·         Are you able to print from the Internet (other than the content of the Email)?

    ·         What mail Client do you use?

    ·         What operating system is installed on the system?

    If you are using Internet Explorer 8 or 9 and you can not print online then I suggest you follow the steps in troubleshooting mentioned in the link below and check if the problem persists.

    You cannot print or print preview Web pages in Internet Explorer 8 or 9

    http://support.Microsoft.com/kb/2000843

  • The keys on the top row?

    I ask you to tell me how to activate the top row of keys on my laptop?  F F1 - F12 keys and then display keys and volume keys and the print screen key.

    Hi Mary,

    Regarding your concern, this depends on what type and model of your laptop. Some laptop keyboards include additional features on the function as keys by pressing the Fn button to activate the keys F1 to F12.

    As this shared Todd_S_88 , it should work fine without having to activate additional keys.

    For Print Scrn key you just need press Print Scrn and use paint or word pad to paste what you have screenshot.

    We suggest that you check your computer's manual or the manufacturer's Web site.

    Let us know how it goes.

    Kind regards

    If you find this useful, feel free to mark as answer.

  • Select the top row of ADF Table default

    jdev 11.1.1. 6

    In my application, I have a fall towards the bass and based on the value, select from the drop-down list on the af: table is filled (using the drop-down list vcl property, I'm populating the VO based on which the table is).

    The table has "selectionListener" defined in a method at the bean so that every time a line is selected some operation.

    < af:table value = "#{bindings." RoleVO1.collectionModel}.

    var = "row" rows = "#{bindings." RoleVO1.rangeSize}"width ="500 ".

    "partialTriggers =": soc1: cb1: cb2.

    emptyText = "#{bindings." RoleVO1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." RoleVO1.rangeSize}.

    rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " RoleVO1.collectionModel.selectedRow}.

    selectionListener = "#{CRoleARoleBean.roleTableSelection} '"

    rowSelection = "single" id = "t1".

    editingMode = "clickToEdit."

    Binding = "#{CRoleARoleBean.roleTable}" >

    I have here a certain way, I can make the top row of the selected table and trigger the selectionListener by programming the dropdown each time value is bud?

    Please notify

    by selecting the default line can be obtained by adding after the vcl in drop-down list:

    this.roleTable.setRowIndex (1);

    RowKeySet ch = this.roleTable.getSelectedRowKeys ();

    PS. Clear();

    PS. Add (this.roleTable.getRowKey ());

    AdfFacesContext.getCurrentInstance () .addPartialTarget (this.roleTable);

    Make sure the displayRow selected = is defined in the table property

  • Display the values only in the total row

    It is possible to not show the column values in the rows of a table, but only in the total row?

    That is to say. I have a table like this:

    | * col1 * | * col2 * | * col3 * |
    | Val.a | 3 | 1 |
    | Val.b | 3 | 1 |
    | Val.c | 3 | 1 |
    | * tot * | * 3 (avg) * | * 3 (sum) * |

    I want to show this:

    | * col1 * | * col2 * | * col3 * |
    | Val.a | | 1.
    | Val.b | | 1.
    | Val.c | | 1.
    | * tot * | * 3 (avg) * | * 3 (sum) * |

    the reason is that the col2 values are not significant at the level of the line, but only at the total level.

    There is a way to do this in a table of Obiee or PivotTable?

    Thank you

    Luca

    Yes.
    There is code breaking too ;)

    Sigma sigin on PivotTable-> Format values-> text-decoration: none;
    For the column using the style css: color:rgb (242,245,249); or use display: none;

    Pls correct brand

  • Report model of column named with 2 lines/registration poster null in the top row

    I was able to create a report model of column named with 2 rows by record type for a tabular presentation, but it seems to hide only the first line of the original registration and displays the 2nd row, i.e. all NULL values. All other records appear correctly.

    Here is the HTML code for the page that results for the init_row of the report. I understand why he behaves this way, but I have no idea how to do the style of the first < tr > Reports to the 2nd line of the record.
    <tr id="init_row_R1009150109271352230" style="display:none;" >
    <td rowspan="2"><a href="javascript:ShowRegion('')" >(null)</a></td>
    <td rowspan="2">(null)</td>
    <td rowspan="2">(null)</td>
    <td rowspan="2"><label for="f04_0000" class="hideMeButHearMe">Completion Date#ROW_HEADER#</label><span style="white-space: nowrap;"><input type="text"  id="f04_0000" name="f04" maxlength="2000" size="12" value="" autocomplete="off"></span></td>
    <td>Premises</td>
    <td><label for="f07_0000" class="hideMeButHearMe">Vacant#ROW_HEADER#</label><input type="text" name="f07" size="5" maxlength="2000" value=""  id="f07_0000" /></td>
    <td><label for="f08_0000" class="hideMeButHearMe">Delinked#ROW_HEADER#</label><input type="text" name="f08" size="5" maxlength="2000" value=""  id="f08_0000" /></td>
    <td><label for="f09_0000" class="hideMeButHearMe">Soft Dt#ROW_HEADER#</label><input type="text" name="f09" size="5" maxlength="2000" value=""  id="f09_0000" /></td>
    <td><label for="f10_0000" class="hideMeButHearMe">Ull Poi#ROW_HEADER#</label><input type="text" name="f10" size="5" maxlength="2000" value=""  id="f10_0000" /></td>
    <td><label for="f11_0000" class="hideMeButHearMe">Ported#ROW_HEADER#</label><input type="text" name="f11" size="5" maxlength="2000" value=""  id="f11_0000" /></td>
    <td><label for="f12_0000" class="hideMeButHearMe">Blocked#ROW_HEADER#</label><input type="text" name="f12" size="5" maxlength="2000" value=""  id="f12_0000" /></td>
    </tr>
    <tr>
    <td>Path</td>
    <td><label for="f13_0000" class="hideMeButHearMe">Path Vacant#ROW_HEADER#</label><input type="text" name="f13" size="5" maxlength="2000" value=""  id="f13_0000" /></td>
    <td><label for="f14_0000" class="hideMeButHearMe">Path Delinked#ROW_HEADER#</label><input type="text" name="f14" size="5" maxlength="2000" value=""  id="f14_0000" /></td>
    <td><label for="f15_0000" class="hideMeButHearMe">Path Soft Dt#ROW_HEADER#</label><input type="text" name="f15" size="5" maxlength="2000" value=""  id="f15_0000" /></td>
    <td><label for="f16_0000" class="hideMeButHearMe">Path Ull Poi#ROW_HEADER#</label><input type="text" name="f16" size="5" maxlength="2000" value=""  id="f16_0000" /></td>
    <td><label for="f17_0000" class="hideMeButHearMe">Path Ported#ROW_HEADER#</label><input type="text" name="f17" size="5" maxlength="2000" value=""  id="f17_0000" /></td>
    <td><label for="f18_0000" class="hideMeButHearMe">Path Blocked#ROW_HEADER#</label><input type="text" name="f18" size="5" maxlength="2000" value=""  id="f18_0000" /></td>
    </tr>
    <tr>
    Any ideas to try would be greatly appreciated. I tried to use conditions on the values of #ROWNUM #, but the null line is still there...

    And yes I know I should not use the tabular forms, but sometimes what is wanted, it is not what is better... :-)

    See you soon,.
    Greg

    Published by: snowman on 4 December 2012 15:12

    Published by: snowman on 4 December 2012 15:13

    See + {: identifier of the thread = 1116477} +.

    Sorry, I forgot all that when I suggested that you can use a custom here report model (not surprisingly, since I did not use the tabular forms given that these changes have been made).

    I don't remember see potential customization discussed in 4.1 or 4.2 (but then I would not have all these tabular forms).

    If your options seem to be:

  • Using nested tables as suggested by mark, who introduced the downside to Peter about the width of the columns (you can try to remedy using CSS to create fixed-width tables/columns, but my last experience of this receipt very messy in terms of support of IE cross-browser and legacy...)
  • Build the page completely manually without the help of the features integrated in the form of the APEX.
  • Try to customize the behavior of line add to take into account the layout is customized using the dynamics of the actions/jQuery.
  • Do not use the tabular forms.

  • On my work pc, I can't click on the links at the top of the screen while using firefox. This "dead zone" only affects the top 20% of the page, while below that I can click on all the links.

    This does not happen on my laptop or any other my work computer program works.

    This problem can be caused by that extended the Yahoo! toolbar or extension of Babylon also well down and covers the top of the browser window and therefore links and buttons in this part of the screen not clickable.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • OfficeJet 6500 only prints the top of the page

    Have a problem with getting my Officejet 6500 to print the entire page.  Top of the body impression seems to be running on the top of the page, as if the paper was not inserted enough away early in the cycle of printing.  Became "paper mismatch" error message briefly, but that does not appear now.  To check the installation of the printer for proper paper size (8.5 "x 11").  Was printing normally until recently.  Uninstalled and reinstalled HP web page software.  Any suggestions?

    Problem seems to be resolved!

    The printing Assembly that fits into the back of the unit was not completely seated.  There is no warning generated unit that the Assembly was not in place, just erratic behavior and various messages like "out of paper" and jamming of paper.  I recommend that if you are having similar problems, that you check carefully that the back print Assembly is properly inserted into the machine.

    Kind regards

    sciencediver

  • Under certain conditions (by program) make MessageCheckBox read-only for the specific rows in a table

    Hello

    I have a table (on a custom page) which includes the columns MessageStyledText and MessageCheckBox column, I want to put the MessageCheckBox to read-only if the value of the column MessageStyledText of the line is "XYZ", could someone give me some advice on how this can be achieved?

    Oracle EBS: 12.1.3

    JDEV: 10.1.3.3.0.3

    Kind regards
    Carl

    Sorting using SPEL (according to https://forums.oracle.com/message/1815932#1815932).

  • When you use the keys (the top row) I get a search box pop up? How do I stop it

    This pop-up window appears whenever I try to use the shortcut keys to move the game I play. This just started recently. I already tried in safe mode, still the same problem. I get fed up with mozilla ff.with questions only respondents and now this. Please help or it will be deleted forever.

    Circumflex can drive < F7 > accidentally activating.

    Circumflex on {web link}
    Disables the changed of the caret navigation mode shortcut key (F7).

  • Why no Alt - Tab feature (true last asset, not only to the top or to the bottom of the line)?

    I see the keyboard shortcuts to go up and down the tabs open (ctrl-shift-tab and ctrl-tab) and go directly to a section numbered etc...

    what I really want, it's a last tab function if you press several times simply would take you back and forth between the last two tabs. As if I have 8 tabs open and am currently on 7 tab and then click on tab 4, then I press this hotkey I should directly back to 7. If you press on again, he would go back to 4. etc.

    Take to fill out a tax form or something as an example. I have my browser open, tax assistance, taxes and other code as well as with my paystub and the info I enter data in multiple pages. Several times, I need to bounce back between tabs with the info about it (paystub) and with the entry of data on it.

    I suppose you could get around having only two desired tabs open in the window of the browser or by having two browser windows open every page necessary, but it is this rooted function (alt - tab in windows goes directly between your last two open applications, regardless of how you opened) that it just seems very natural to want to so the tabs of the browser to only go back between the last two.

    really think that this should be developed... seems simple (to a POV without instruction) and serves a specific purpose.

    Thank you.

    You can enable or disable this pref on the topic: config page and use Ctrl + Tab to switch.

    • browser.ctrlTab.previews = true

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • C4680 only prints the top and the bottom of the page.

    No text or image on the paper. Only print "page 1 of 1", the right upper and info on file:///C...ect on bottom left of page as well as the current date on the right. I just installed 2 new HP ink cartridges. The test page was ok. This only happens when I want to print a page of my email. I have windows 8

    Miss TeriLynn thanks for your response. I'm went to HP site & updated the driver, I had (found this info using the HP error scan tool) and this update solves the problem. Thanks again for your response.

    Have a great day,

    GolferJack55

  • How can I find the top row of a single table, split among several images in each image.

    Hi all.

    Thanks in advance.

    You can browse all the cells in a row column * and ask the first insertion of a text on his cell point user.user parentTextFrames [0].

    If the ID value has changed, the cell is in a different text frame. As well as its line.

    CC-2015, it might be a little different, because we have a new type of cell: CellTypeEnum.GRAPHIC_TYPE_CELL (not insertionPoints pave the way).

    You can also:

    Reproduce all text blocks in history, in that the table is sitting and control for unique tables in duplicates.

    Uwe

    * edit

Maybe you are looking for

  • How will I know if I'm connected to lte advanced and not ordinary lte.

    When I am connected to data, it will say either 3g or lte, but my friend who has a samsung s6 said lte +, I was wondering if I am connected to lte advanced and not ordinary lte.

  • Voice messages using BT headset

    I got a Motorola Droid X, I've recently upgraded to a Samsung GS3. The S3 is missing which, in my opinion, was the best feature of the X was for him - vocal all using a Bluetooth headset. When you try to make a call using my headset, I pushed the but

  • the command before engine finished moving

    People, Need a little help.  I am trying to program an X - Y scanning for a microscope stage.  I want the scene to X at a certain position, stops, and then switch to Y at a certain position.  I have a function "wait (ms)" to ensure that the movement

  • Error 0x8100000A occurs due to a previously failed backup.

    I'm running Windows Vista Ultimate and I get an error (0x8100000A) since the last backup failed, how can I fix it or start a new backup, I have first back up on DVD and I want to enjoy my staff to backup to an external drive fat32

  • Sd micro for 7 1800 hp storage

    I recently bought the 7 1800 hp Tablet and I was wondering what is the maximum size micro sd card that will accept it. I heard that some devices allow only as much memory size on a sd card. as I watched a 64 GB sd micro card that would be compatible