|
|||||||||
| 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.TableListView
public class TableListView
A view that displays the tables in a table lobby. It displays two separate lists, one of tables being matchmade and another of games in progress. These tables are updated dynamically as they proceed through the matchmaking process. UI mechanisms for creating and joining tables are also provided.
| 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 LobbyConfig |
_config
A reference to the lobby config for the lobby in which we are doing table-style matchmaking. |
protected JButton |
_create
Our create table button. |
protected MiCasaContext |
_ctx
A reference to the client context. |
protected GameConfigurator |
_figger
The interface used to configure a game before creating it. |
protected JPanel |
_matchList
The list of tables currently being matchmade. |
protected JLabel |
_pcount
Our number of players indicator. |
protected JPanel |
_playList
The list of tables that are in play. |
protected TableConfigurator |
_tableFigger
The interface used to configure the table for a game. |
protected TableDirector |
_tdtr
A reference to our table director. |
| 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 | |
|---|---|
TableListView(MiCasaContext ctx,
LobbyConfig config)
Creates a new table list view, suitable for providing the user interface for table-style matchmaking in a table lobby. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
void |
didLeavePlace(PlaceObject place)
|
protected TableItem |
getTableItem(int tableId)
Fetches the table item component associated with the specified table id. |
void |
seatednessDidChange(boolean isSeated)
Called when this client sits down at or stands up from a table. |
void |
tableAdded(Table table)
Called when a new table is created. |
void |
tableRemoved(int tableId)
Called when a table goes away. |
void |
tableUpdated(Table table)
Called when something has changed about a table (occupant list updated, state changed from matchmaking to in-play, etc.). |
void |
willEnterPlace(PlaceObject place)
|
| 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 |
|---|
protected MiCasaContext _ctx
protected LobbyConfig _config
protected TableDirector _tdtr
protected JPanel _matchList
protected JPanel _playList
protected TableConfigurator _tableFigger
protected GameConfigurator _figger
protected JButton _create
protected JLabel _pcount
| Constructor Detail |
|---|
public TableListView(MiCasaContext ctx,
LobbyConfig config)
| Method Detail |
|---|
public void willEnterPlace(PlaceObject place)
willEnterPlace in interface PlaceViewpublic void didLeavePlace(PlaceObject place)
didLeavePlace in interface PlaceViewpublic void tableAdded(Table table)
TableObserver
tableAdded in interface TableObserverpublic void tableUpdated(Table table)
TableObserver
tableUpdated in interface TableObserverpublic void tableRemoved(int tableId)
TableObserver
tableRemoved in interface TableObserverpublic 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.protected TableItem getTableItem(int tableId)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||