|
|||||||||
| 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.toybox.lobby.client.LobbyPanel
public class LobbyPanel
Displays the main ToyBox match-making lobby interface.
| 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 Mirage |
_bgimg
Our background image. |
protected SwingUtil.ComponentOp |
_colorizer
Used to de-opaquify and set the right backgrounds in the right places. |
protected ToyBoxContext |
_ctx
Giver of life and services. |
protected LobbyObject |
_lobj
Our lobby distributed object. |
protected JPanel |
_main
Contains the match-making view and the chatbox. |
protected MessageBundle |
_msgs
Our translation messages. |
protected OccupantList |
_occupants
Our occupant list display. |
protected MultiLineLabel |
_title
Displays the game title. |
| 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 | |
|---|---|
LobbyPanel(ToyBoxContext ctx)
Constructs a new lobby panel and the associated user interface elements. |
|
| Method Summary | |
|---|---|
protected JComponent |
createMatchMakingView(ToyBoxContext ctx,
LobbyConfig config)
Creates a custom view for the game we're match-making in this lobby. |
void |
didLeavePlace(PlaceObject plobj)
|
protected void |
paintComponent(Graphics g)
|
void |
showMatchMakingView(LobbyConfig config)
Instructs the panel to create and display the match making view. |
void |
willEnterPlace(PlaceObject plobj)
|
| 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 SwingUtil.ComponentOp _colorizer
protected ToyBoxContext _ctx
protected MessageBundle _msgs
protected JPanel _main
protected LobbyObject _lobj
protected MultiLineLabel _title
protected OccupantList _occupants
protected Mirage _bgimg
| Constructor Detail |
|---|
public LobbyPanel(ToyBoxContext ctx)
| Method Detail |
|---|
public void showMatchMakingView(LobbyConfig config)
public void willEnterPlace(PlaceObject plobj)
willEnterPlace in interface PlaceViewpublic void didLeavePlace(PlaceObject plobj)
didLeavePlace in interface PlaceViewprotected void paintComponent(Graphics g)
paintComponent in class JComponent
protected JComponent createMatchMakingView(ToyBoxContext ctx,
LobbyConfig config)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||