Category: Vaadin Core FrameWork

Adding two panels in vaadin Window using Horizontal Layout 0

Adding two panels in vaadin Window using Horizontal Layout

Below code creates two vaadin panels and adds the to a Window using Horizontal Layout import com.vaadin.Application; import com.vaadin.terminal.Sizeable; import com.vaadin.ui.*; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; import com.vaadin.*; /** * Main application class. */ public...

Creating a Label in Vaadin Applications 0

Creating a Label in Vaadin Applications

Below code shows how to create Label in Vaadi  Applications. import com.vaadin.Application; import com.vaadin.terminal.Sizeable; import com.vaadin.ui.*; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; /** * Main application class. */ public class TestApplication extends Application { public Window...

Adding TextField and Button to Vaadin Application 0

Adding TextField and Button to Vaadin Application

Below code adds TextField and Button to a Vaadin application MainWindow. import com.vaadin.Application; import com.vaadin.terminal.Sizeable; import com.vaadin.ui.*; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; /** * Main application class. */ public class TestApplication extends Application { public...

Common Component Features-Vaadin Application 0

Common Component Features-Vaadin Application

Eric K Am professional-blogger from Mombasa, Kenya.Love to blog about Web Applications Development and Cisco Networking. http://www.download-all.net/

Customizing System Messages-Vaadin Applications 0

Customizing System Messages-Vaadin Applications

System Messages are notifications that indicate a certain invalid state of the application.Generally when this notification pop up the application  is restarted.Example of that state  is when the application session has expired.There application instructs...

Window.showNotifaction 0

Window.showNotification () -Vaadin Applications

Window.showNotification  is a method that is contained in Window object.When its called a new notification is i rendered on the browser.Below code creates a notification. Window.Notification notify= new Notification(“Caption”,”Message Description”,TYPE OF MESSAGE); Above Method...

Handling Errors vaadin applications 1

Handling Errors- Vaadin Applications

Handling Errors is very important in every application.This ensures that the application runs smoothly and users are notified incase  the data they submit is not valid.For example,think of a field where the user is...

Shutting down Vaadin Application 0

Shutting down Vaadin Application

Application session can end if the user closes the window or the browser.Shutting down Vaadin Application can also be   done by using application logic otherwise if session timeouts,the application will  shut itself automatically.Each...

Stream Resources - Vaadin Applications 0

Stream Resources – Vaadin Applications

Stream resources are the ones that allows one to create dynamic  resource content.Charts are examples of dynamic content that are defined by implementing StreamResource.StreamSource  interface and getStream method. Stream Resources Application Example. <br /><br...