|
|||||||||
| 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
ggz.ui.RoomPanel
public class RoomPanel
| Nested Class Summary | |
|---|---|
protected class |
RoomPanel.BackToLobbyAction
|
protected class |
RoomPanel.LogoutAction
|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected javax.swing.JButton |
lobbyButton
|
protected static java.util.logging.Logger |
log
|
protected javax.swing.JButton |
logoutButton
|
protected static java.util.ResourceBundle |
messages
|
protected Module |
module
|
protected javax.swing.JButton |
newTableButton
|
protected Room |
room
|
protected Server |
server
|
protected javax.swing.JSplitPane |
splitPane
|
protected javax.swing.JPanel |
tablePanel
|
protected ggz.ui.RoomPanel.TablesLayoutPanel |
tablesFlow
|
protected javax.swing.JLabel |
titleLabel
|
| 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 | |
|---|---|
RoomPanel(Server server)
|
|
| Method Summary | |
|---|---|
void |
chat_event(ChatEventData data)
Received a chat message of any kind. |
void |
player_count(int count)
The number of players in a room has arrived. |
void |
player_lag(Player player)
A player's lag (measure of connection speed) has been updated |
void |
player_list(java.util.List players)
The list of players in a room has arrived. |
void |
player_stats(Player player)
A player's stats have been updated. |
void |
room_enter(RoomChangeEventData data)
A player has entered the room with you. |
void |
room_leave(RoomChangeEventData data)
A player has left your room. |
void |
setRoom(Room room)
|
void |
table_add(Table table)
A table has been created. |
void |
table_delete(Table table)
A table has been removed from the room. |
void |
table_join_fail(java.lang.String error)
Joining a table did not succeed. |
void |
table_joined(int table_index)
Your table join attempt has succeeded. |
void |
table_launch_fail(ErrorEventData data)
The table you tried to launch couldn't be launched |
void |
table_launched()
The table you tried to launch has launched! |
void |
table_leave_fail(java.lang.String error)
Your attempt to leave the table has failed. |
void |
table_left(TableLeaveEventData data)
You have successfully left the table you were at. |
void |
table_list()
Received the list of active tables. |
void |
table_update(Table table)
One of the tables in the current room has changed. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.ResourceBundle messages
protected static final java.util.logging.Logger log
protected Server server
protected Room room
protected ggz.ui.RoomPanel.TablesLayoutPanel tablesFlow
protected javax.swing.JSplitPane splitPane
protected javax.swing.JPanel tablePanel
protected javax.swing.JButton newTableButton
protected javax.swing.JLabel titleLabel
protected javax.swing.JButton logoutButton
protected javax.swing.JButton lobbyButton
protected Module module
| Constructor Detail |
|---|
public RoomPanel(Server server)
| Method Detail |
|---|
public void setRoom(Room room)
throws java.io.IOException
java.io.IOExceptionpublic void chat_event(ChatEventData data)
RoomListener
chat_event in interface RoomListenerdata - The GGZChatEventData associated with the chat.GGZChatEventDatapublic void player_count(int count)
RoomListener
player_count in interface RoomListenercount - The number of players in the room.public void player_lag(Player player)
RoomListener
player_lag in interface RoomListenerplayer - The player whose lag has changed.ggzcore_player_get_lagpublic void player_list(java.util.List players)
RoomListener
player_list in interface RoomListenerplayers - The list of players.ggzcore_room_list_playerspublic void player_stats(Player player)
RoomListener
player_stats in interface RoomListenerplayer - The player whose stats have changed.void PLAYER_LIST,
ggzcore_player_get_record,
ggzcore_player_get_rating,
ggzcore_player_get_ranking,
ggzcore_player_get_highscorepublic void room_enter(RoomChangeEventData data)
RoomListener
room_enter in interface RoomListenerdata - A GGZRoomChangeEventData structure.public void room_leave(RoomChangeEventData data)
RoomListener
room_leave in interface RoomListenerdata - A GGZRoomChangeEventData structure.public void table_join_fail(java.lang.String error)
RoomListener
table_join_fail in interface RoomListenervoid TABLE_JOINEDpublic void table_joined(int table_index)
RoomListener
table_joined in interface RoomListenerggzcore_room_join_tablepublic void table_launch_fail(ErrorEventData data)
RoomListener
table_launch_fail in interface RoomListenerdata - A pointer to a GGZErrorEventDatavoid TABLE_LAUNCHEDpublic void table_launched()
RoomListener
table_launched in interface RoomListenerggzcore_room_launch_tablepublic void table_leave_fail(java.lang.String error)
RoomListener
table_leave_fail in interface RoomListenervoid TABLE_LEFTpublic void table_left(TableLeaveEventData data)
RoomListener
table_left in interface RoomListenerdata - The GGZTableLeaveEventData associated with the leave.ggzcore_room_leave_table,
GGZTableLeaveEventDatapublic void table_list()
RoomListener
table_list in interface RoomListenerggzcore_room_list_tablespublic void table_add(Table table)
RoomListener
table_add in interface RoomListenerpublic void table_delete(Table table)
RoomListener
table_delete in interface RoomListenerpublic void table_update(Table table)
RoomListener
table_update in interface RoomListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||