|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.threerings.micasa.lobby.table.TableItem
public class TableItem
A table item displays the user interface for a single table (whether it be in-play or still being matchmade).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected MiCasaContext |
_ctx
A reference to our context. |
protected JButton |
_goButton
We have a button for going to games that are already in progress. |
protected JButton[] |
_seats
We have a button for each "seat" at the table. |
protected Name |
_self
Our username. |
protected TableDirector |
_tdtr
A reference to our table director. |
protected static String |
JOIN_LABEL
The text shown for seats at which the user can join. |
protected static String |
LEAVE_LABEL
The text shown for the seat in which this user occupies and which lets her/him know that they can leave that seat by clicking. |
Table |
table
A reference to the table we are displaying. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
TableItem(MiCasaContext ctx,
TableDirector tdtr,
Table table)
Creates a new table item to display and interact with the supplied table. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
void |
seatednessDidChange(boolean isSeated)
Called when this client sits down at or stands up from a table. |
void |
tableRemoved()
Called by the table list view prior to removing us. |
void |
tableUpdated(Table table)
Called when our table has been updated and we need to update the UI to reflect the new information. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Table table
protected MiCasaContext _ctx
protected Name _self
protected TableDirector _tdtr
protected JButton[] _seats
protected JButton _goButton
protected static final String JOIN_LABEL
protected static final String LEAVE_LABEL
| Constructor Detail |
|---|
public TableItem(MiCasaContext ctx,
TableDirector tdtr,
Table table)
| Method Detail |
|---|
public void tableUpdated(Table table)
public void tableRemoved()
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic void seatednessDidChange(boolean isSeated)
SeatednessObserver
seatednessDidChange in interface SeatednessObserverisSeated - true if the client is now seated at a table, false
if they are now no longer seated at a table.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||