how to create iphone like tabs layout in blackberry - blackberry

How can i create iphone like tabs layout in a blackberry java application for all types of blackberry devices(scrollpad/touch screen). Are there any alternatives to achieve that effect? could you please suggest me in that way?
thanks,
venu

Hi
I had to create tabs in blackberry so for this this i tried a custom way which fulfilled my requirement.May be u can use and customize this idea.
1) create a method addTab() in a class and place say 5 bitmap fields(components) in that.
2) place these components in an horizontal field manager
3) addTab() method must return this manager.
4) create a method result() in that class that must be called whenever the components(Bitmap fields) are clicked.
Now in your main class wherever you want to display the tabs:
1) create object for that class and do
add(obj.addTab());
or u can do :
setStatus(obj.addTab());
depending upon your requirement

Related

navigation with login page

I implemented simple application according of example simple login view. Where we have login-view and main-view. But now, how I can implement on main-view MenuBar where every Items when clicked open different views. And those views are under MenuBar in same place (center on the page under MenuBar, on sample) in main-view. I tried with additional navigator(which name can be subNavigator) in main-view but we must register navigator in UI(I have got appropriate error). Second solution is that I create UI and in init method ManuBar and under it change every views(login-view, view1, view2 etc). But login-view have ManuBar and it is do not looks good. Is there any other way or are other ways to achieve something similar?
Your question is not at all clear. I suggest re-writing it. Perhaps with a sketch image.
TabSheet
Are you aware of the TabSheet widget? An easy way to switch between panes of content.
See the Book Of Vaadin, the class doc, and the live demo.
Also, look at TabSheet in the Reindeer theme as shown in this demo.

Blackberry list field without canvas

Is it possible to create a customized list field in BB, where each row will have 4 different labels, and a bitmap field, without implementing the drawListRow method?
Since drawListRow uses canvas I want to avoid it. Because, I need to display a browser field in list row. Or is it possible to add label fields in list row?
You probably aren't going to be able to implement this the way you want - try putting more than one BrowserField on a screen at once and you'll soon run into multiple issues. I'd suggest creating a custom Field to act as a row instead, or try and get the desired look n feel using Field Managers.

Windows Phone Application Bar TextBox

I was wondering, if it is somehow possible to add a TextBox in the Application Bar area (the same way the Internet Explorer does), but I didn't find any information source about this. Have you any idea, how to accomplish this task?
You will not be able to add UIElements inside ApplicationBar as it is not derived from UIElement.
Alternatively, you can try adding a Grid at the bottom of the screen and color it similar to the ApplicationBar. Then add a TextBlock inside the Grid. This is just a workaround and not recommended as it is not according to the standards.
You can also check the following link:
http://www.maxpaulousky.com/blog/archive/2011/01/10/bindable-application-bar-extensions-for-windows-phone-7.aspx

How to create the screen in optimized way?

Hello everybody I am trying to create a screen (to see the image click here)
I have set it's backround image also created required list components which are click able by extending Field class. Now my problem is I am not able to set that rounded white color as backround of the list. Please help me. And also because I am new to the blackberry please also tell me the optimized way to create this screen.
i think like this
1) header bar - create manager and embed 2 buttons and 1 label in it
2) bottom bar - create a global class that contains the buttons and define a method that responds to the click event of these buttons
call that class in this main screen
3) for middle part use a list field which is scrollable

Jquery multiple modal dialogs by classname?

How can I create multiple modal dialogs by classname (basically the same dialogs but have a different code black attached).
One I launch a modal dialog I cannot reference the dialog anymore because jQuery will move it to the bottom of the document so something like..
$(this).find('.dialog').dialog('open');
Would not work anymore.
If I understand this question correctly, you have multiple dialogs that have the same class name and you want to be able to show them all at different times?
If this is the case then you can simply add a second class name to the class attribute which uniquely identifies the dialogs but maintains the first class giving you its look and feel.
class='dialog OpenFileDialog' and then maybe class='dialog SavePictureDialog''
So then in code you reference them by the second class name $(this).find('.OpenFileDialog').dialog('open');
Does this help?

Resources