Navigation between differents UI in vaadin project - user-interface

please I have a vaadin project with 2 UI ,I want to go from the first UI to the second by clicking a button. Have you any idea how can I do it .Thank you

Typically a Vaadin application only contains just a single UI, and then Vaadin Navigator is used to switch between different views.
But sometimes there is a valid use case for multiple UIs inside the same application.
If you have multiple UIs, to open the UI, which is running in the context root of your web app, you could just say:
getUI().getPage().setLocation("/");
and if you have an another UI running at path second, you can open it by calling:
getUI().getPage().setLocation("/second");

Related

Seperate UI Responsively for web and Mobile ADF Application

We have a adf fusion application developed in 12c,I want that application to show the components responsively in different devices. I am using Oracle Alta UI,but the problem is,it is showing the panel boxes properly but the components such as SelectOneChoice are not displaying responsively. May i know how can i do this? I need seperate UI based on mobile.
Responsiveness is something you'll need to build into your code.
You can use the af:matchmediabehavior tag to control properties of components on your page based on screen sizes.
Example:
https://blogs.oracle.com/shay/entry/responsive_ui_in_oracle_adf
More samples:
https://pinboard.in/search/u:OracleADF?query=responsive

NeoMAD application UI design with drag and drop components

I am using NeoMAD for my mobile application development project. I want to start designing the UI of my application with drag and drop components. How do I open that view?
At the moment, it is not possible to design the application UI by drag and dropping components with NeoMAD.
To design the UI of your NeoMAD application, you can:
use the NeoMAD XML Layout resource type to define the UI elements in XML,
directly code the UI in your application Java source code using the classes of the com.neomades.ui package of the NeoMAD Generic API,
or mix these two solutions.

Use multiple WebBrowser tabs for 1 flex Application

I'm developing a flex application to view charts and statistic data about real-time stock price. The requirement is that 1 user can view multiple windows (or panel, or canvas) of multiple stock symbols at the same time.
I want to have 1 button, when I click at that button, a new panel will be pop up in a new WebBrowser tab. 1 user can open 5 or more panels like that in 5 more webbrowser tab to see 5 different stocks. And all 5 panels must be managed by the main Application. So that the Application can send stock price data to those 5 panels.
After days searching, I still cannot find out a way to do that, please suggest me something?
Thank you a lot,
Henry
If the requirement is that you use tabs in a browser, then you've got some fun ahead of you.
Only way I could see this working, is if the main application fired off URL Requests for a secondary app which it then communicated with through a LocalConnection.
There are a couple of easier ways if you relax the requirements a little. Using URL parameters means you could pass the stock you are looking to follow into each new instance of the application without needing LocalConnection.
Of course, you could just have a tabbed interface inside your Flex app, and not require new browser windows at all!
I would definitely not go about this way.
Creating multiple tabs is OK, but not when you need full control and integration over these parts.
I would create floating panels in the same application with a tabbed navigation or something of this sort.
Take a look at this image:
as you can see, the user is seeing one screen, but he has also 2 tabs (windows) at the bottom which he can expand or collapse.
the context is the same context, it is the same application.

Right clicking with a Webkit view

I'm working on a project in Ruby right now that is essentially a web-app. We like the format of web-apps and some of the natural agile advantages we have building for the web. However, we want to be able to package our application and distribute it in a standalone format.
Ideally, we would like to essentially make a .app package for Mac and a .exe for Windows that just opens a Webkit view, connects to our server and renders the HTML we serve it.
Not so hard so far, though this is a little beyond our current expertise (especially the Windows development) but all surmountable.
The issue is that we'd like to enable right-clicking, as you can in the iTunes store (which is a Webkit view that has custom events for right-clicks). We want to give our right-clicks special meaning in our application, too, and have it act context sensitive.
What do we do? Where can we even start?
Do you want to do this from your webapp or from your native app side?
If you're doing this from a Cocoa app, you can just implement the webView:contextMenuItemsForElement:defaultMenuItems: WebUIDelegate method and return an array of custom NSMenuItem's corresponding to your custom actions.
If you want to do this from the web app itself, you can add an event listener for the "contextmenu" event like so:
document.addEventListener("contextmenu", function(event) {
event.preventDefault();
console.log("My spiffy custom right click menu here!");
}, false);
You need to be aware though, that if you use the above code in your webapp, you can't modify the browser's native right click menu, just replace it with your own custom creation.

How do I implement a web linked button that will open inside of my iphone application (not open a link in Safari?

I have an iphone sdk application and want to tweak it.. as I've had a great idea on how I want my interface to appear.
I'm trying to create several buttons that will open a web page within my application but have failed to do so countless amounts of times now.
(I don't want the button to open a link in safari, I already know how to do this and it's not what I'm trying to achieve)
The application must not shut down in order to operate any links (i.e close down to open the link in safari as stated above.)
MORE INFO-----------------------------------
i already have the application and yes it is working and complete, however a while ago i decided that id like to change the interface on my application, but havnt been successful in doing so.
Currently i am using a webView based app which works perfectly, i have my website and another within the application (using a tab bar with two tabs within it).
Now i would like to completely re-model my app by starting from scratch..
using a uiwebview i want to place several buttons on the uiwebview page and have them as links which will direct my members to different sections of my website when pressed..
I have managed to do this but when the buttons are pressed, my application is closed and the link is then opened in safari, which is not what i want.
I would like the links to open within my application
Any ideas?

Resources