public class PlaceContainer extends Object
- table dimensions added (configure with PlacesEditor)
- showNrTicketlines
Modifier and Type | Field and Description |
---|---|
protected static Icon |
ICO_FRE |
protected static Icon |
ICO_OCU |
protected JButton |
m_btn |
protected List<Ticket> |
m_tickets |
protected Place |
place |
Constructor and Description |
---|
PlaceContainer(Place place)
Creates a new instance of TablePlace
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearTickets()
Clears the list of tickets
|
JButton |
getButton() |
Floor |
getFloor() |
String |
getName() |
Place |
getPlace() |
Ticket |
getTicket()
Returns the place ticket if there is exactly one place ticket.
|
boolean |
getUnlockState() |
int |
getX() |
int |
getY() |
Ticket |
joinTicket(Ticket oTicket)
Adds a ticket to the place, either as a new ticket or combining it with
a ticket existing on the place, depending on the situation and the users choice
|
List<Ticket> |
loadTickets()
Retrieves the list of tickets for this place from the database.
|
String |
lockedBy() |
void |
marked(boolean b) |
Boolean |
newTicket() |
void |
setButtonBounds() |
protected void |
setState()
Adds the number of tickets to the button text.
|
void |
setTicket(Ticket oTicket)
Adds the ticket to m_tickets if it is not already contained, sets the tickets
place_id and saves the ticket
|
void |
setUnlockState() |
protected static final Icon ICO_OCU
protected static final Icon ICO_FRE
protected JButton m_btn
protected final Place place
public PlaceContainer(Place place)
place
- The place assigned to the containerpublic final String getName()
protected void setState() throws BasicException
BasicException
public int getX()
public int getY()
public Floor getFloor()
public JButton getButton()
public Ticket joinTicket(Ticket oTicket) throws BasicException
oTicket
- the ticket to be joinedBasicException
public Ticket getTicket()
public List<Ticket> loadTickets() throws BasicException
BasicException
public void setTicket(Ticket oTicket) throws BasicException
oTicket
- BasicException
public void setButtonBounds()
protected void clearTickets()
public Place getPlace()
public void marked(boolean b)
public String lockedBy()
public Boolean newTicket()
public void setUnlockState()
public boolean getUnlockState()
Copyright © 2021. All rights reserved.