Directory

← Back

Seating Add-on

Simple seating component

Author

Rating

Popularity

<100

This is a simple component for creating seating arrangements for events.

Room layout is simply given as an image.

Tables are defined with the amount of seats they should contain. Seats can be positioned equally on both sides of the table or only on top or bottom of the table. (Seats will be positioned from the left to the right alternating top/bottom) Empty seats can be populated first (to the left side) or last (to the right side)

Layout is an absolute layout that can specially handle Table components to:

  • Search for contacts in all tables.
  • Highlight contacts for any table.

Table instance can also search for Contact and highlight Contact, but only for contacts in that table.

An empty seat may be created by adding an empty 'new Contact();' in the correct place.

Sample code

final SeatingLayout seatingLayout = new SeatingLayout("images/Room.png");
seatingLayout.setWidth("1280px");
seatingLayout.setHeight("1500px");

// Create table with 5 seats. (basically 6 seats, but only 5 will be populated)
Table tableOne = new Table(5);
table.addContact(new Contact(Contact.uuid(), "Mary Clarke"));
table.setTableRotation(20);

seatingLayout.addComponent(tableOne, new Position(890, 200);

// Table with a name and it populates the empty seats to the left instead of the default right.
Table tableTwo = new Table(5);
tableTwo.setTableName("Named table");
tableTwo.setFillDirection(TableSeatFillDirection.FIRST);

table.addContact(new Contact(Contact.uuid(), "Mary Clarke"));
tableTwo.setTableRotation(-20);

seatingLayout.addComponent(tableTwo, new Position(60, 450));

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

https://github.com/caalador/TableSeating/milestones/1.0.2

  • Fixed the Position class so it handles like it says.
  • Fixed chair positioning when not using default chair size
  • Added better visibility when hovering over seats
  • Added better visibility when highligthing
  • New highlight multiple possibility for when people in the same table.
Released
2015-05-15
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.4+
Browser
Firefox
Opera
Safari
Google Chrome
iOS Browser
Android Browser
Internet Explorer
Internet Explorer

Seating Add-on - Vaadin Add-on Directory

Simple seating component Seating Add-on - Vaadin Add-on Directory
This is a simple component for creating seating arrangements for events. Room layout is simply given as an image. Tables are defined with the amount of seats they should contain. Seats can be positioned equally on both sides of the table or only on top or bottom of the table. (Seats will be positioned from the left to the right alternating top/bottom) Empty seats can be populated first (to the left side) or last (to the right side) Layout is an absolute layout that can specially handle Table components to: - Search for contacts in all tables. - Highlight contacts for any table. Table instance can also search for Contact and highlight Contact, but only for contacts in that table. An empty seat may be created by adding an empty 'new Contact();' in the correct place.
Author Homepage
Online Demo
Issue Tracker
Source Code
Discussion Forum

Seating Add-on version 1.0.1
null

Seating Add-on version 1.0.2
https://github.com/caalador/TableSeating/milestones/1.0.2 - Fixed the Position class so it handles like it says. - Fixed chair positioning when not using default chair size - Added better visibility when hovering over seats - Added better visibility when highligthing - New highlight multiple possibility for when people in the same table.

Online