BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 11-28-2008, 10:30 AM   #1 (permalink)
New Member
 
Join Date: Nov 2008
Model: ?????
PIN: N/A
Carrier: vodafone uk
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Equivalent of .NET Repeater control

Please Login to Remove!

Hi,

I've searched the forum and someone else has already asked for this and judging by the answers there isn't an equivalent control.

I'm currently looking at extending the Manager class to use Vertical- and HorizontalFieldManager objects to populate it, in a table-like format.

The issue I'm having is that I cannot select any of the rows (HorizontaFieldManager). I have set the style to FOCUSABLE.

The constructor for this class is as follows:

public repeater(int rows, int cols) { super(Manager.NO_HORIZONTAL_SCROLLBAR); for (int x = 0; x < rows; x++) { HorizontalFieldManager row = new HorizontalFieldManager(HorizontalFieldManager.FOCU SABLE); for (int y = 0; y < cols; y++) { VerticalFieldManager col = new VerticalFieldManager(); col.add(new LabelField(String.valueOf, LabelField.FIELD_LEFT)); row.add(col); } add(row); } }

I have added a Dialog.Alert() statement in the onFocus() event to check when focus is given but nothing is showing up.

I can change the approach i'm taking if it's wrong, any suggestions are very welcome.

I'm using JDE Component version 3.4.0 from within Eclipse.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

10pcs magnetic reed switch glass sealed portion size 1.8x7MM OQ
$6.44
10pcs magnetic reed switch glass sealed portion size 1.8x7MM OQ picture86 NEW at MostElectric: 800T-QAH2W ALLEN BRADLEY 800TQAH2W NEW
$163.33
86 NEW at MostElectric: 800T-QAH2W ALLEN BRADLEY 800TQAH2W NEW picture6 NEW at MostElectric: 9001KMF1 SQUARE D 9001-KMF1
$76.17
6 NEW at MostElectric: 9001KMF1 SQUARE D 9001-KMF1 picture28 NEW at MostElectric: 9001SKP32G31 SQUARE D 9001-SKP32G31
$80.14
28 NEW at MostElectric: 9001SKP32G31 SQUARE D 9001-SKP32G31 picture62 NEW at MostElectric: 800H-FRXJT6D2P ALLEN BRADLEY 800HFRXJT6D2P
$216.01
62 NEW at MostElectric: 800H-FRXJT6D2P ALLEN BRADLEY 800HFRXJT6D2P picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.