Help me to solve this problem in listfield
How to add a space between two listfied. ?
How to do a listfield to another by using the alt key?
package com.black.applicationloader;
import java.util.Vector;
Import net.rim.device.api.system.Display;
Import net.rim.device.api.ui.Color;
Import net.rim.device.api.ui.Font;
Import net.rim.device.api.ui.Graphics;
Import net.rim.device.api.ui.Manager;
Import net.rim.device.api.ui.XYRect;
Import net.rim.device.api.ui.component.ListField;
Import net.rim.device.api.ui.component.ListFieldCallback;
Import net.rim.device.api.ui.container.VerticalFieldManager;
import com.black.blackinterface.BlackInterface;
import com.black.common.BaseScreen;
import com.black.components.CustomEditField;
import com.black.utility.Utilities;
SerializableAttribute public class BlackSecondScreen extends BaseScreen implements BlackInterface, ListFieldCallback {}
Private VerticalFieldManager listFieldManager;
Private VerticalFieldManager listFieldManager_2;
private static final String [] _elements is {"First element" "Second element", "Third element", 'Fourth element', 'Fifth element'};.
private vector _listElements = new Vector (_elements.length, 1);
columnWidth int = Display.getWidth () / 4;
Private boolean hasFocus; = false
Private CustomEditField userEditField;
ListField colourList_1;
ListField colourList_2;
{BlackSecondScreen()}
colourList_1 = new ListField() {}
protected void drawFocus (Graphics graphics, boolean on) {}
XYRect rect = new XYRect();
graphics.setGlobalAlpha (200);
getFocusRect (rect);
drawHighlightRegion (graphics, HIGHLIGHT_FOCUS, true, rect.x, rect.y, rect.width, rect.height);
}
{} public void onFocus (int direction)
hasFocus = true;
super.onFocus (branch);
}
Called when a field loses focus.
public void onUnfocus() {}
hasFocus = false;
super.onUnfocus ();
Invalidate();
}
public int moveFocus (amount int, int status, time int) {}
Invalidate (getSelectedIndex ());
Return super.moveFocus (amount, status, time);
}
};
colourList_1.setCallback (this);
int elemWidth = _elements.length;
for (int count = 0; count)< elementlength;="">
{
colourList_1.insert (count);
This.Insert (_elements [count], count);
}
colourList_2 = new ListField() {}
protected void drawFocus (Graphics graphics, boolean on) {}
XYRect rect = new XYRect();
graphics.setGlobalAlpha (200);
getFocusRect (rect);
drawHighlightRegion (graphics, HIGHLIGHT_FOCUS, true, rect.x, rect.y, rect.width, rect.height);
}
{} public void onFocus (int direction)
hasFocus = true;
super.onFocus (branch);
}
Called when a field loses focus.
public void onUnfocus() {}
hasFocus = false;
super.onUnfocus ();
Invalidate();
}
public int moveFocus (amount int, int status, time int) {}
Invalidate (getSelectedIndex ());
Return super.moveFocus (amount, status, time);
}
};
colourList_2.setCallback (this);
for (int count = 0; count)< elementlength;="">
{
colourList_2.insert (count);
This.Insert (_elements [count], count);
}
Add (colourList);
createComponents();
layoutComponents();
}
public void createComponents() {}
listFieldManager = new VerticalFieldManager (Manager.VERTICAL_SCROLL |) Manager.HORIZONTAL_SCROLL) {}
protected void sublayout (int maxWidth, maxHeight int) {}
Super.sublayout (maxWidth, 2 * colourList_1.getRowHeight ());
setExtent (maxWidth, 2 * colourList_1.getRowHeight ());
};
};
listFieldManager_2 = new VerticalFieldManager (Manager.VERTICAL_SCROLL |) Manager.HORIZONTAL_SCROLL) {}
protected void sublayout (int maxWidth, maxHeight int) {}
Super.sublayout (maxWidth, 2 * colourList_2.getRowHeight ());
setExtent (maxWidth, 2 * colourList_2.getRowHeight ());
};
};
userEditField = new CustomEditField (Utilities.getAdjustedWidth (150))
Utilities.getAdjustWidth (2), Manager.NO_HORIZONTAL_SCROLL
// | (Manager.VERTICAL_SCROLL, true);
}
public void layoutComponents() {}
TODO self-generating method stub
listFieldManager.add (colourList_1);
listFieldManager_2.add (colourList_2);
Add (listFieldManager);
Add (listFieldManager_2);
}
public void initializeListeners() {}
TODO self-generating method stub
}
public void setComponentsXYMargins() {}
TODO self-generating method stub
}
' Public Sub drawListRow (ListField listField, graphics graphics, int index,
int y, int width) {}
int curSelected;
If (hasFocus) {}
curSelected = listField.getSelectedIndex ();
} else {}
curSelected = - 1;
}
If (index %2 == 0) {}
graphics.setColor (Color.PERU);
graphics.fillRect (0, y, width, listField.getRowHeight ());
} else {}
graphics.setColor (Color.WHEAT);
graphics.fillRect (0, y, width, listField.getRowHeight ());
}
graphics.fillRect (0,0,width,y);
int xPos = 0; int ypos = 0;
graphics.setFont (Font.getDefault ()); / / Please set a value of fonts
It is the first text of the column
graphics.setColor (Color.BLACK);
graphics.drawText("column1"+index,xpos,y);
XPos += columnWidth;
graphics.setColor (Color.RED);
graphics.drawText("column2",xpos,y);
XPos += columnWidth;
graphics.drawText("column3",xpos,y);
XPos += columnWidth;
graphics.drawText("column4",xpos,y);
}
public Object get (ListField listField, int index) {}
TODO self-generating method stub
Return _listElements.elementAt (index);
}
public int getPreferredWidth (ListField listField) {}
TODO self-generating method stub
Return Graphics.getScreenWidth ();
}
public int indexOfList (String prefix, int start, ListField listField) {}
TODO self-generating method stub
Return _listElements.indexOf (prefix, start);
}
public final void insert (String toInsert, int index)
{
_listElements.insertElementAt (toInsert, index);
}
public void erase()
{
_listElements.removeAllElements ();
}
}
Hello
Not able to understant it please explain...
Tags: BlackBerry Developers
Similar Questions
-
I would like to cancel a subscription to Premiere Pro program. I can't support Adobe in Russia, it does not work. Please, help me to solve this problem
Hello
Please refer to l https://helpx.adobe.com/creative-cloud/help/cancel-membership.html
-or https://helpx.adobe.com/contact.html?step=ZNA_account-payment-orders_stillNeedHelp
or
Contact our support here Contact Customer Care
You can follow the screenshot as below
I hope this helps!
-
fingerprint sensor does not work for my iphone 16 6 GB pls help how to solve this problem?
I have iPhone 6 grey 16 GB of model space suddenly my fingerprint sensor no longer works.
When I try to set touch id always displays "failed please go back and try again".
Please guide how to solve this problem.
The warranty expired 3 months ago
See this support document to help solving the problems of contact ID. If all else fails, then make an appointment at the Genius Bar from the Apple Store supplier or Service Center authorized Apple closest to have the material examined. They will explain your options. Use touch on iPhone and iPad - Apple Support ID
-
Please help me to solve this problem of date comparison...
release date: * 20080930 *.Please help me to solve this issue.. If i have some data like the following.. ID START DATE END DATE 1 20080101 20080501 1 20080502 20080630 2 20080631 20080801 2 20080802 20080901 ---------------> There is a break in date over here 2 20080930 20081029 2 20081030 20081130 I need to compare the End Date with the start date (These data will not be in order) and find out if there is any break and should get the
I'm trying to do this in SQL or PL/SQL. Please help me.
Thanks in advance.
PhaniHello
Try:
MHO%xe> select * from my_dates; ID STARTDATE ENDDATE ---------- ------------------- ------------------- 1 01-01-2008 00:00:00 01-05-2008 00:00:00 1 02-05-2008 00:00:00 30-06-2008 00:00:00 2 30-06-2008 00:00:00 01-08-2008 00:00:00 2 02-08-2008 00:00:00 01-09-2008 00:00:00 2 30-09-2008 00:00:00 29-10-2008 00:00:00 2 30-10-2008 00:00:00 30-11-2008 00:00:00 6 rijen zijn geselecteerd. Verstreken: 00:00:00.14 MHO%xe> select startdate 2 from (select startdate 3 , lag(enddate) over (partition by id order by startdate) - startdate lr 4 from my_dates) 5 where lr < -1; STARTDATE ------------------- 30-09-2008 00:00:00
By the way: 20080631 is not a valid date, so I adjusted it to 20080630.
-
Thanks for the help guyz, I restarted the virtual service centre and the problem was solved.
-
I'm using LabVIEW 2010 and installed the drivers from device LV2010 and try to use the HSDIO functions, while setting the HSDIO function on the block diagram showing niajel.dll is missing, can someone help me fix this bug.
I tried to uninstall and install not able to set several times.
Hello. niajel.dll corresponds to the NOR-TClk, although NEITHER-HSDIO does not specifically use it. You use certain functions TClk?
Also, what other PXI device driver are installed on the system? Could you give a report on the MAX system?
-
Please help me to solve this problem of CS5 - a poster the first time I'm user of long date
While in the Middle, producing a large enough site, I get this error whenever I open a file in Dreamweaver CS5 and I can't view the file by using the button "Preview/debug in browser".
Error:
-By executing in_onOpen.htm onLoad, the following JavaScript error has occurred. In the file '_onOpen': it is not defined to onOpen-
In addition, Dreamweaver let me not use/choose/Open the file. Browser preferences keep resetting.
I went on the other forums and the points of the solution to the elimination of
< user > / Library/Application Support/Adobe/Dreamweaver CS5/en_US/Configuration/MacFileCache-XXXXXXX.dat
file is available, but I have no such file on my Mac OS X Version 10.7.3. I get as much as/Library/Application Support / Adobe.
Actually I don't even see Dreamweaver on the list. (see attachment).
This article should help: http://kb2.adobe.com/cps/405/kb405604.html
Start by 12 and 4. Those are most likely. Then, if it does not sail on the rest.
-
Please help me to solve this problem of icon ;-)
Hi people, I was wondering if someone can help out me?
.
I love the globe in example 1. I tried over and over again to recreate it but can't.
I love the glow and all the gradients that make it look at how it works and it seems large and dark;
Now, I have a load of icons as in example 2, I don't like all the world on it, it just doesn't show on my dark background. I need these bits internal icon, in this example, the pointer but have one handful of others also.
So, how can I get rid of the inner bit of example 1, giving me a globe that retains all its transparency intact?
Then cut the pointer off example2, change its color to a light gray and insert this in the Center or the new world?
Other icons I have and you need to do this with are; Facebook, Twitter, a phone, an e-mail and a few others.
The purpose of having a globe example1 empty I can then cut the icons and the place.
Thanks a lot if you can help or ideas.
Pete.
OK, that makes a quick screenshot. Take a look by using files (press F1 on your keyboard) for more help with the pen tool and other pieces of fireworks. Welcome back to work - I'll try and answer anything else that you have if you don't find it in the help files
-
failure of the LCD... Please help how to solve this problem?
Today, when I went from my laptop, a vertical rectangle in the meddle of my screen along top down (with less brightness of my screen background color).
First I thought that it map graphic, but when I connect my laptop to my TV, the rectangle disappear, so it's right in the screen of my laptop.
I tried to upload a screenshot turned to my office, but also the rectangle isn't here, so I see it only in my screen (average in the screen of my laptop). but I send a page to my office, and I used the paint program to give you an idea how my screen looks like
but I couldn't uploaded here, you will enjoy if you can show me how to download
Thank you
It sounds like a hardware problem with your laptop, and there is probably nothing we can do to fix it here. Have your phone checked by a reputable or approved repair facility.
-
from table-pls help me to solve this problem
Hello
I have this table
ID toll_used
1 Toad
2 sql * more
1 sql Developer
1 clearcase
3 Qtp
2 vss
3 citrix
... ....
... ....
I want this out put
ID toll_used sl not
1 Toad 1
1 sql Developer
1 clearcase
2 sql * plus 2
2 vss
QTP 3 3
3 citrix
... ... ...
Here sl is a column of psudo, who have no relationship with the ID column.
For any group id, it will leave 1 only in the first field of the group.
concerning
Sanjaywith t as ( select 1 id,'toad' tool_used from dual union all select 2,'sql*plus' from dual union all select 1,'sql Developer' from dual union all select 1,'clearcase' from dual union all select 3,'Qtp' from dual union all select 2,'vss' from dual union all select 3,'citrix' from dual ) select id, tool_used, case row_number() over(partition by id order by tool_used) when 1 then 1 end sl_no from t order by id, row_number() over(partition by id order by tool_used) / ID TOOL_USED SL_NO ---------- ------------- ---------- 1 clearcase 1 1 sql Developer 1 toad 2 sql*plus 1 2 vss 3 Qtp 1 3 citrix 7 rows selected. SQL>
SY.
-
It gives me an error that Peachtree is unable to locate my version of Excel. How can I fix it?
Shirley Byard Byardllc.com
Hello
Welcome to Microsoft Windows 7 answers Forum!
The question you have posted is related to Microsoft Office, and would be better suited to the Office Discussion groups. Please visit the link below to find a community that will provide the support you want.
http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx
Thank you, and in what concerns:
Aito - Microsoft technical support.
Visit our http://social.answers.microsoft.com/Forums/en-US/answersfeedback/threads/ Microsoft answers feedback Forum and let us know what you think.
-
I get an error cood1197 please help me solve this problem
I get an error cood1197 please help me to solve this problem, help please.
Hello
1. when, exactly, you receive this error message?
2 do you have problems with Windows Media Player?
If you receive this error when you use Windows Media Player, refer to the methods described in the article mentioned below and check.
Windows Media Player C00D1197 error:
http://Windows.Microsoft.com/en-us/Windows7/C00D1197
I hope this helps!
-
All of a sudden, one of my friend messages do not appear in my Inbox. Instead, they automatically go to my trash folder. I did all the filters of all kinds on their e-mail address.
Can you please help me to solve this problem and tell me what to do?
Thanx.
Jim
Log in to your webmail providers and to place the person in your address book.
-
My Firefox is always on top! How can I solve this problem?
When I want to put my soft Messenger or video application or anything else on my computer on top of Firefox it doesn't happen, because I don't know how, but on my Firefox has been activated always the top of the page function. I will be very gratefull if you help me to solve this problem. My Firefox version 9.0.1 ix.
Follow the suggestions mentioned in the following articles:
Check and tell if its working.
-
Original title: error setup32.exe
Hello. Thank you for your reading this question.
I was installing a software dictionary (babylon 8), but I saw this message: "error 0 runs the command setup32.exe. Can you help me to solve this problem?
Moved Windows 7 installation, set at level and activate Forum.
Hello
I changed the windows of my laptop and the problem has been resolved.
Thank you very much.
Maybe you are looking for
-
problem still AirDrop after last updated
Air Mymacbook has been updatedto 10.11.16. My iPhone 6 + has been upgrade 9.3.2. The two are all that last. When you are on the same wifi, the air drop does not work. This sometimes works when no wifi. Can someone help me please? Thank you!
-
SMS relay on iPad gets frozen on "sending...". »
I can receive and send texts, but the header "send...". "instead of the contact person. I tried to reset my network settings and turn power switch iMessages / sms relay or not available.
-
My hard drive in my T61 crushed and none of the info could be found. I have to replace it. Never had to do it myself. Here are my questions: (1) all of these discs are the same size. . . because I can not find them linked to the individual boo
-
E-mail address of load of Excel to Outlook
I have about 250 email address I need to load from excel to outlook. Is there an easy way to accomplish this task? I don't really want to key in all the contacts again in outlook. Can I merge them.
-
No matter what I do, I can't download it at all...He says it is downloading but is sitting there for hours.What could I do it wrong.With the help of win 10.Beverley