info.joseluismartin.vaadin.ui
Class FormUtils

java.lang.Object
  extended by info.joseluismartin.vaadin.ui.FormUtils

public abstract class FormUtils
extends Object

Form Utility Library

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Field Summary
static int CANCEL
           
static int OK
           
 
Constructor Summary
FormUtils()
           
 
Method Summary
static void addOKCancelButtons(com.vaadin.ui.Form f)
          Add a default commit/discard buttons to a form
static void closeWindow(com.vaadin.ui.Window window)
          Closes a sub Window
static com.vaadin.ui.Button newButton(ButtonListener buttonListener)
          Build a new Button from Button Listener
static void showConfirmDialog(com.vaadin.ui.Window window, Command command, String msg)
          Show a YES/NO confirm dialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static int OK

CANCEL

public static int CANCEL
Constructor Detail

FormUtils

public FormUtils()
Method Detail

addOKCancelButtons

public static void addOKCancelButtons(com.vaadin.ui.Form f)
Add a default commit/discard buttons to a form

Parameters:
f - the Form

closeWindow

public static void closeWindow(com.vaadin.ui.Window window)
Closes a sub Window

Parameters:
window - Window to close

newButton

public static com.vaadin.ui.Button newButton(ButtonListener buttonListener)
Build a new Button from Button Listener

Parameters:
buttonListener -
Returns:
a new Button

showConfirmDialog

public static void showConfirmDialog(com.vaadin.ui.Window window,
                                     Command command,
                                     String msg)
Show a YES/NO confirm dialog

Parameters:
window - Window to attach the dialog
msg - the msg


Copyright © 2012 JDAL. All Rights Reserved.