Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Vaadin 7 Cookbook

You're reading from   Vaadin 7 Cookbook Take the shortcut to developing rich internet applications in pure Java. Vaadin makes it easy and this cookbook makes it easier still with its practical recipes and straightforward approach.

Arrow left icon
Product type Paperback
Published in Apr 2013
Publisher
ISBN-13 9781849518802
Length 404 pages
Edition Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (19) Chapters Close

Vaadin 7 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Creating a Project in Vaadin 2. Layouts FREE CHAPTER 3. UI Components 4. Custom Widgets 5. Events 6. Messages 7. Working with Forms 8. Spring and Grails Integration 9. Data Management 10. Architecture and Performance 11. Facilitating Development 12. Fun Index

Index

A

  • @AssertFalse / How it works...
  • @Autowire annotation / There's more..., How to do it...
  • AbsoluteLayout
    • used, for layout building / Building any layout with AbsoluteLayout, How to do it..., How it works...
  • AbstractProperty class / There's more...
  • AbstractSelect class / There's more...
  • AcceptAll.get() method / How to do it...
  • addActionHandler() method / Creating a custom context menu
  • addComponent() method / How it works..., How to do it..., How it works...
  • addComponent(layout) method / How to do it...
  • addListeners()method / How to do it...
  • AddNewOrderListener class / How to do it...
  • addValidator() method / How to do it...
  • AdminPage class / How to do it...
  • afterFailedLogin method / There's more...
  • afterSuccessfulFetch() method / How to do it...
  • afterSuccessfulLogin method / There's more...
  • And filter / There's more...
  • animation.start() method / How to do it...
  • Animator / How it works...
  • ant command / How to do it...
  • AppConfig class / How to do it...
  • application
    • building / Building the core, Getting ready, How to do it..., How it works...
  • application startup time
    • widget downloading / How it works...
  • application’s startup time
    • improving / Improving the application's startup time, How to do it..., How it works...
  • AppUI class / How it works...

B

  • bean
    • fields, generating / Generating fields from a bean, How to do it..., There's more...
    • fields, building / Binding fields to a bean, How to do it..., How it works...
  • BeanContainer<IDTYPE,BEANTYPE> class / There's more...
  • BeanItem<BT> class / There's more...
  • BeanItemContainer<BEANTYPE> class / There's more...
  • BeanItemContainer class / Inserting a button to remove a table row
    • API, URL / See also
  • Bean property / There's more...
  • bean validation
    • about / Using bean validation, Getting ready, How to do it...
    • constrains / How it works...
  • browser information
    • displaying / Showing information about browsers, How to do it..., How it works...
  • buildAndBind method / There's more...
  • Button.ClickListener interface / How to do it...
  • buttonClicked method / How it works...
  • buttons
    • inserting, to remove table row / Inserting a button to remove a table row, How to do it..., How it works...
    • restricting, in Rich text area / Restricting buttons in Rich text area, How to do it..., How it works...

C

  • @ComponentScan annotation / How to do it...
  • @Configuration annotation / How it works...
  • changes
    • in Maven, auto-reloading / Auto-reloading changes in Maven, How it works...
  • chroma-hash password field
    • creating / Creating a chroma-hash password field, How to do it..., How it works...
  • CircleLayoutDemo class / How to do it...
  • cityBox.setNewItemsAllowed(true) method / There's more...
  • click listener
    • linking with / Adding click listener to the Link component, Getting ready, See also
  • ComboBox
    • using, for item filteration / Filtering items using ComboBox, How to do it..., How it works..., There's more...
  • Commit button / How it works...
  • comparision filter / There's more...
  • component
    • styling, with CSS / Styling components with CSS, How to do it...
    • property, binding to / Binding property to a component, How to do it..., There's more...
    • items, binding to / Binding items to a component, How to do it...
    • container, binding to / Binding a container to a component, How to do it..., See also
  • components
    • controlling, over CSS layout / Controlling components over the CSS layout, How to do it..., How it works...
    • aligning, on page / Aligning components on a page, How to do it..., How it works...
  • confirmation window
    • making / Making a confirmation window, How to do it...
    • working / How it works...
  • contactSelect object / How to do it...
  • ContactViewer component / How to do it...
  • container
    • binding, to component / Binding a container to a component, How to do it..., See also
    • BeanItemContainer<BEANTYPE> class / There's more...
    • BeanContainer<IDTYPE,BEANTYPE> class / There's more...
    • IndexedContainer class / There's more...
    • FilesystemContainer class / There's more...
    • SQLContainer class / There's more...
    • API, URL / See also
    • table, testing with / Testing a table with a container, Getting ready, How to do it..., How it works...
  • CONTAINS / How it works...
  • ControlsLayout / How it works...
  • converters
    • about / Using converters, How to do it...
  • convertToModel() method / How to do it...
  • convertToPresentation() / How to do it...
  • Cookie class / How to do it...
    • API, URL / See also
  • cookies
    • last selected tab name, storing / Storing the last selected tab name in cookies, How to do it...
  • Create, read, update, and delete (CRUD) / Introduction
  • createCardLayout() method / How to do it...
  • createContentPanel() method / How to do it...
  • createDbTable() method / How it works...
  • createLayout() method / How to do it..., How to do it...
  • createMenu() method / How to do it...
  • createMessageLayout() method / How to do it...
  • createPreview() method / How to do it...
  • createTabs() method / How to do it..., How to do it..., There's more...
  • CRUD
    • about / Creating a complex table – CRUD II
    • creating, with complex table / How to do it..., How it works...
  • CRUD form
    • about / Creating a CRUD form, How to do it...
    • working / How it works..., There's more...
  • CSS
    • components, styling with / Styling components with CSS, How to do it...
    • about / How it works...
  • CSS3 / How it works...
  • CSS layout
    • using, for mobile devices / Using CSS layouts for mobile devices, How to do it..., How it works...
  • custom context menu
    • creating / Creating a custom context menu, Getting ready, How to do it..., See also
  • custom layout
    • about / Creating a custom layout
    • creating / How to do it...
    • working / How it works...
  • CustomTextArea class / How to do it...
  • custom validation
    • creating / Creating a custom validation, How to do it..., How it works...
    • about / Creating a custom validation, How to do it..., How it works...
  • custom widget
    • benefit / Introduction
    • about / Introduction
    • component, creating / Introduction
    • styling / Styling widgets, Getting ready
    • working / How it works..., There's more...

D

  • DAO / There's more...
  • data
    • filtering, in table / Filtering data in the table
  • database
    • accessing, with Spring / Accessing a database with Spring, How to do it..., How it works..., There's more...
  • data model
    • levels / Introduction
    • property level / Introduction
    • item level / Introduction
    • container level / Introduction
  • dataSource / There's more...
  • DateField
    • using, with Joda-Time Date time / Using DateField with Joda-Time DateTime, Getting ready, How to do it..., How it works...
  • Drag-and-drop
    • about / Introduction, Drag-and-drop from the desktop
    • uploader, creating / How to do it...
  • drag panel
    • creating / How to do it..., See also
  • driverManagerDataSource() bean / There's more...
  • drop(DragAndDropEvent event) method / How it works...
  • drop panel
    • creating / How to do it..., See also

E

  • Eclipse IDE
    • project, creating / Getting ready, How to do it..., How it works..., There's more...
  • Enter key / There's more...
  • events
    • about / Introduction

F

  • @Future / How it works...
  • FieldGroup.commit() method / How to do it..., How to do it..., How to do it...
  • FieldGroup class / How to do it...
  • field validation
    • using / Using field validation, How to do it...
    • working / How it works..., There's more...
  • FilesystemContainer.FileItem class / There's more...
  • FilesystemContainer class / There's more...
  • file transfer
    • indicating, progress bar used / Informing about file transfers by a progress bar, How to do it…, How it works...
  • filter
    • table, creating with / How to do it...
  • filter types, built-in
    • SimpleStringFilter / There's more...
    • Equal, Greater, Less, GreaterOrEqual, LessOrEqual / There's more...
    • And filter / There's more...
    • Or filter / There's more...
    • not filter / There's more...
  • findAll() method / How to do it..., Testing a table with a container, How it works...
  • Flot
    • line chart, creating with / Creating a line chart with Flot, How to do it..., There's more...
  • FlotChart class / How to do it..., How it works...
  • form
    • CRUD form / Creating a CRUD form
  • form
    • about / Introduction
    • simple form / Creating a simple form
  • fromSafeConstant method / How it works...
  • fullName property / How to do it...
  • funny emails
    • about / Can you raed tihs?
    • creating / How to do it..., How it works...

G

  • get() method / How it works...
  • getAcceptCriterion() method / How it works...
  • getActions() method / How to do it...
  • getAddress() method / How to do it...
  • getBrowserApplication() method / How to do it...
  • getConvertedValue() method / How to do it...
  • getCurrentDate() method / How to do it...
  • getCurrentRequest() method / How it works...
  • getFiles() method / How it works...
  • getItemIds method / How to do it...
  • getLoadStyle method / How it works...
  • getLocale()method / How to do it...
  • getModelType() method / How to do it...
  • getOutputStream() method / How it works...
  • getPresentationType() method / How to do it...
  • getState() method / How to do it..., How to do it..., How to do it...
  • getSystemMessages method / How it works...
  • getUser() method / How to do it...
  • getValue() method / How it works...
  • getVisibleColumns() method / How it works...
  • getWindow()method / How to do it...
  • Gradle
    • Vaadin application, building / Building a Vaadin application with Gradle, Getting ready, How it works...
  • Grails
    • Vaadin project, running on / Running Vaadin on Grails, How to do it..., How it works...
    • Vaadin, internationalizing in / Internationalizing Vaadin in Grails, Getting ready, How to do it..., There's more...
  • Grails.get() method / How it works...
  • Grails ORM
    • using, for Vaadin application / Using Grails ORM for Vaadin application, How to do it…, How it works...
    • URL / How it works...
  • Grails plugin system / How it works...
  • Grails project
    • Vaadin add-on, adding / Adding a Vaadin add-on into Grails project, How to do it...
  • Grails services
    • using, in Vaadin / Using Grails services in Vaadin, How to do it..., How it works...
  • Groovy/Grails Tool Suite (GGTS) / Getting ready

H

  • handleAction() method / How to do it...
  • hashCode() method / How to do it...
  • Highcharts
    • pie chart, creating with / Creating a pie chart with Highcharts, How to do it..., See also
  • Highcharts JavaScript library
    • URL, for downloading / Getting ready

I

  • i18n method / Internationalizing Vaadin in Grails
  • ICEPush add-on
    • used, for message updation in menu bar / Updating messages in the menu bar using the ICEPush add-on, Getting ready, How to do it...
  • indeterminate process
    • waiting for / Waiting for an indeterminate process, How to do it..., How it works...
  • IndexedContainer class / There's more...
  • init() method / How to do it..., How it works...
  • initComboBoxes() method / How to do it...
  • init method / How it works...
  • item
    • binding, to component / Binding items to a component, How to do it...
    • BeanItem<BT> class / There's more...
    • FilesystemContainer.FileItem class / There's more...
    • PropertysetItem class / There's more...
    • RowItem class / There's more...
  • item details
    • viewing, in ListSelect / Viewing details of items in ListSelect, How to do it..., How it works..., There's more...
  • items
    • filtering, ComboBox used / Filtering items using ComboBox, How to do it..., How it works..., There's more...

J

  • Java Abstract Windowing Toolkit (AWT) / Introduction
  • JavaScript
    • used, for tri-state checkbox creating / Creating a tri-state checkbox using JavaScript, How to do it...
  • Joda-Time Date time
    • DateField, using with / Using DateField with Joda-Time DateTime, Getting ready, How to do it..., How it works...
  • Joda-Time framework
    • URL / Using DateField with Joda-Time DateTime
  • JRebel
    • ABOUT / Introduction
  • JSON (JavaScript Object Notation) / How it works...

L

  • Label
    • changing, to TextField / Changing Label to TextField by double-clicking, How to do it...
  • layouts
    • creating, split panels used / Creating an adjustable layout using split panels, How to do it..., How it works...
  • line chart
    • creating, with Flot / Creating a line chart with Flot, How to do it..., There's more...
  • ListSelect component
    • about / Introduction
    • items details, viewing / Viewing details of items in ListSelect, How to do it..., How it works..., There's more...
  • login
    • handling, with Spring / Handling login with Spring, Getting ready, How to do it..., How it works...
  • login form
    • showing, in popup view / Showing a login form in pop-up view, How to do it...
    • implementing, MVP used / The Login form with Model View Presenter, How to do it..., There's more...
  • LoginFormListener / How to do it...
  • LoginLayout / How to do it...

M

  • @Min / How it works...
  • Maven
    • Vaadin project, setting up with Spring / Setting up a Vaadin project with Spring in Maven, Getting ready, How to do it..., How it works...
    • widgetsets, recompiling / Recompiling widgetsets in Maven, There's more...
    • changes, auto-reloading / Auto-reloading changes in Maven, How it works...
  • Maven archetype
    • Vaadin project, generating / Generating a Vaadin project in Maven archetype, How to do it..., How it works...
  • menu bar messages
    • updating, ICEPush add-on used / Updating messages in the menu bar using the ICEPush add-on, How to do it..., There's more...
  • MethodProperty class / There's more...
  • mobile devices
    • CSS layout, using / Using CSS layouts for mobile devices, How to do it..., How it works...
  • mocking
    • in Vaadin / The basics of mocking in Vaadin, How to do it..., How it works...
  • Mockito / Unit testing in an MVP pattern
  • MVP
    • ABOUT / Introduction
    • used, for login form implementation / The Login form with Model View Presenter, How to do it..., There's more...
    • for dual panel view / Model View Presenter for a view with two panels, Getting ready, How to do it..., How it works..., See also
    • unit testing / Unit testing in an MVP pattern, How to do it..., How it works..., See also
  • MyVaadinUI class / How it works...

N

  • @NotNull / How it works...
  • Navigator
    • about / Using Navigator for creating bookmarkable applications with back-forward button support
    • using, for bookmarkable applications creating / How to do it..., How it works...
  • New Grails Project wizard / How to do it...
  • not filter / There's more...
  • noticeboard
    • updating, Refresher add-on used / Updating the noticeboard using the Refresher add-on, Getting ready, How to do it...

O

  • ObjectProperty<String> class / How it works...
  • ObjectProperty class / How it works..., There's more...
    • API, URL / See also
  • OFF / How it works...
  • onbeforeunload event / How it works...
  • onKeyUp() method / How it works...
  • onProgress() method / How to do it...
  • onStateChange()method / How to do it...
  • onStateChanged() method / How to do it...
  • OrdersView class / There's more...
  • Or filter / There's more...

P

  • @PrepareForTest annotation / How it works...
  • PagedTable / There's more...
  • pie chart
    • creating, with Highhcharts / Creating a pie chart with Highcharts, How to do it..., See also
  • PlayingCards / Getting ready
  • PowerMockito / The basics of mocking in Vaadin
  • PowerMockito.spy() method / How it works...
  • PrincesCardTrick class / How to do it...
  • Princess Card trick
    • about / Magic tricks, Getting ready
    • effect / Magic tricks
    • steps / How to do it...
    • working / How it works...
  • production mode
    • uncatched exceptions, blocking / Blocking uncaught exceptions in the production mode, How to do it...
  • ProgressIndicator / How it works...
  • project
    • creating, Eclipse IDE / Getting ready, How to do it..., How it works..., There's more...
  • property
    • binding, to component / Binding property to a component, How to do it..., There's more...
    • AbstractProperty class / There's more...
    • MethodProperty class / There's more...
    • ObjectProperty class / There's more...
    • TextFileProperty class / There's more...
    • TransactionalPropertyWrapper class / There's more...
    • URL / See also
    • API, URL / See also
  • PropertysetItem class / Binding items to a component, How to do it..., How it works...
  • push() method / How it works...

R

  • @Repository annotation / How it works...
  • @RunWith annotation / How it works...
  • ReadIt class / How to do it...
  • Refresher / Getting ready
  • Refresher add-on
    • used, for noticeboard update / Updating the noticeboard using the Refresher add-on, Getting ready, How to do it...
  • Rich Internet Applications / Introduction
  • Rich text area
    • buttons, restricting / Restricting buttons in Rich text area, How to do it..., How it works...
  • rich tooltip
    • showing, with image / Showing a rich tooltip with an image, How to do it...
  • RowItem class / There's more...
  • RPC / How to do it...
  • run() method / How to do it...
  • run-app command / How to do it...

S

  • @Service annotation / How it works...
  • @Size / How it works...
  • SASS / Introduction
  • Sass stylesheet language
    • URL / See also
  • Scala
    • Vaadin project, using with / Using Vaadin with Scala, Getting ready, How to do it..., How it works...
  • SCSS / How it works...
  • search engines
    • Vaadin applications, optimizing / Optimizing Vaadin applications for search engines, Getting ready, How to do it..., How it works...
  • SelectList class / How to do it...
  • selectTab() method / How to do it..., There's more..., How to do it...
  • setClickShortcut() method / How to do it...
  • setComponentAlignment() method / How it works...
  • setCompositionRoot() method / How to do it...
  • setDescription method / How it works...
  • setDropHandler() method / How to do it...
  • setEditable(true) method / How to do it...
  • setHandler() method / How to do it...
  • setItemCaptionPropertyId(Object propertyId) method / How to do it...
  • setItemDataSource() method / How to do it..., How to do it...
  • setMargin() method / How to do it...
  • setPropertyDataSource(Property) method / How it works...
  • setSizeFull() method / How to do it..., How to do it...
  • setSizeUndefined() method / How to do it...
  • setStylePrimaryName() method / There's more...
  • setUp() method / How to do it..., How it works...
  • setVisualIndeterminate() method / How to do it...
  • shortcuts
    • customizing / Customizing shortcuts, How to do it...
  • showTagList() method / How to do it...
  • shuffleChars() method / How to do it...
  • simple form
    • about / Creating a simple form
    • creating / How to do it...
  • SimpleStringFilter / There's more...
  • size() method / How to do it...
  • slider
    • zooming with / Zooming with the slider, How to do it..., How it works...
  • sluggish application
    • avoiding / Avoid sluggish UI – lazy loaded tables, Getting ready, How to do it..., How it works..., There's more..., See also
  • sluggish UI
    • avoiding / Avoid sluggish UI – paged tables, Getting ready, How to do it...
  • SplitPanel class / There's more...
  • split panels
    • using, for layout creating / Creating an adjustable layout using split panels, How to do it..., How it works...
  • Spring
    • Vaadin project setting up with, in Maven / Setting up a Vaadin project with Spring in Maven, Getting ready, How to do it..., How it works...
    • login, handling with / Handling login with Spring, Getting ready, How to do it..., How it works...
    • database, accessing with / Accessing a database with Spring, How to do it..., How it works..., There's more...
    • Vaadin application, internationalizing with / Internationalizing Vaadin applications with Spring, Getting ready, How to do it..., How it works...
  • Spring framework
    • URL / How to do it...
  • Spring injector
    • and Vaadin / Vaadin and Spring injector, How to do it..., How it works...
  • Spring Stuff add-on page
    • URL / See also
  • SQLContainer class / There's more...
  • STARTSWITH / How it works...
  • supported web browsers / There's more...
  • system messages
    • about / Styling system messages
    • styling / Styling system messages, How to do it...
  • SystemStatusLayout class / The basics of mocking in Vaadin

T

  • @Transactional annotation / How it works...
  • table
    • lazy loading / Lazy loading in a table, How to do it..., How it works...
    • columns, reordering / Reordering columns and rows in a table, How to do it...
    • rows, reordering / Reordering columns and rows in a table, How to do it...
    • data, filtering / Filtering data in the table
    • creating, with filter / How to do it...
    • testing, with container / Testing a table with a container, Getting ready, How to do it..., How it works...
  • Table.addGeneratedColumn() method / Inserting a button to remove a table row
  • TableLayoutTest class / How to do it...
  • table row
    • removing, by inserting button / Inserting a button to remove a table row, How to do it..., How it works...
  • tabs
    • binding, with hard URL / Binding tabs with a hard URL, How to do it..., How it works...
  • TDD
    • about / The basics of test-driven development in Vaadin, Getting ready, How to do it..., How it works...
  • TestBench
    • UI, testing with / Testing the UI with TestBench, Getting ready, How to do it..., How it works...
    • URL, downloading / Getting ready
  • TextArea events
    • responding to / Responding immediately to an event in TextArea, How to do it..., How it works..., There's more...
  • TextField
    • creating, with counter / Creating a TextField with counter, How to do it..., How it works..., See also
    • creating, only for digits / Creating a TextField only for digits, How to do it..., How it works...
  • TextFileProperty class / There's more...
  • TransactionalPropertyWrapper class / There's more...
  • tray notifications
    • customizing / Customizing tray notifications, How to do it..., How it works...
  • tri-state checkbox
    • creating, JavaScript used / Creating a tri-state checkbox using JavaScript, How to do it...

U

  • UI
    • testing, with TestBench / Testing the UI with TestBench, Getting ready, How to do it..., How it works...
  • UI component collection
    • creating / Creating UI collections of components, How to do it..., How it works...
  • uncatched exceptions, blocking
    • production mode / How it works...
  • updateMessageCount() method / How to do it...
  • updateTable() method / How to do it...
  • UrlMappings.groovy file / How it works...
  • UserService class / Testing a table with a container
  • userService field / How it works...
  • UserService interface / How to do it..., How to do it...

V

  • Vaadin
    • and Spring injector / Vaadin and Spring injector, How to do it..., How it works...
    • internationalizing, in Grails / Internationalizing Vaadin in Grails, Getting ready, How to do it..., There's more...
    • Grails ORM, using / Using Grails ORM for Vaadin application, How to do it…, How it works...
    • Grails services, using / Using Grails services in Vaadin, How to do it..., How it works...
    • TDD / The basics of test-driven development in Vaadin, Getting ready, How to do it..., How it works...
    • mocking / The basics of mocking in Vaadin, How to do it..., How it works...
  • vaadin-repo / How to do it...
  • Vaadin 7
    • converters / Using converters, How to do it...
  • Vaadin add-on
    • adding, onto Grails project / Adding a Vaadin add-on into Grails project, How to do it...
  • Vaadin application
    • building, with Gradle / Building a Vaadin application with Gradle, Getting ready, How it works...
  • Vaadin applications
    • internationalizing, with Spring / Internationalizing Vaadin applications with Spring, Getting ready, How to do it..., How it works...
    • optimizing, for search engines / Optimizing Vaadin applications for search engines, Getting ready, How to do it..., How it works...
  • Vaadin project
    • about / Introduction
    • generating, in Maven archetype / Generating a Vaadin project in Maven archetype, How to do it..., How it works...
    • using, with Scala / Using Vaadin with Scala, Getting ready, How to do it..., How it works...
    • running, on Grails / Running Vaadin on Grails, How to do it..., How it works...
    • with Spring, setting up in Maven / Setting up a Vaadin project with Spring in Maven, Getting ready, How to do it..., How it works...
  • VaadinRequest interface / How it works...
  • VaadinService.getCurrentResponse() method / How it works...
  • VaadinService. getCurrentResponse() method / How to do it...
  • VaadinServletResponse class / How it works...
  • Vaadin web page
    • URL / See also
  • validate() method / How to do it...
  • validation messages
    • about / Showing validation messages
    • showing / Showing validation messages, How it works..., There's more...
  • valueChanged() method / How to do it...

W

  • WebApplicationContextUtils class / How it works...
  • web page
    • closing steps / How to do it..., How it works...
  • widget set compilation
    • speeding up / Speeding up widget set compilation, How to do it..., There's more...
  • Widget Set Optimizer / Improving the application's startup time
  • widgetsets
    • recompiling, in Maven / Recompiling widgetsets in Maven, There's more...
  • WrapperTransferable class / How it works...
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime