Class WebClient
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
net.sf.colossus.guiutil.KFrame
net.sf.colossus.webclient.WebClient
- All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, IWebClient
This is the main class for one user client for the web server.
One such client can register and/or login to the web server,
propose a game, browse proposed games and enroll to such a game.
When a game has enough players, it can be started, and this
brings up the MasterBoard like the network client would do.
- Author:
- Clemens Katzer
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class JFrame
JFrame.AccessibleJFrameNested classes/interfaces inherited from class Frame
Frame.AccessibleAWTFrameNested classes/interfaces inherited from class Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Boxprivate JTextFieldprivate JTextFieldprivate JCheckBoxprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate JRadioButtonprivate JRadioButtonprivate JRadioButtonprivate JCheckBoxprivate static final Stringprivate JCheckBoxprivate JTextFieldprivate JTextFieldprivate JButtonprivate static final Stringprivate static final Stringprivate static final String(package private) static final Stringprivate static final Stringprivate static final Stringprivate booleanprivate booleanprivate final Objectprivate JTextFieldprivate static final Stringprivate static final Stringprivate Boxprivate JButtonprivate final Pointprivate static final Stringprivate static Stringprivate static Stringprivate JButtonprivate JTextFieldprivate JButtonprivate static final Stringprivate static final intprivate String(package private) static final String(package private) static final Stringprivate JComboBoxprivate booleanprivate booleanprivate ClientNOTE: shared with SocketThread, because WCST needs it to restore game tokens to an GameInfo objectprivate JTextFieldprivate RunGameInSameJVMprivate JPanelprivate JPanelprivate ChatHandlerprivate JButtonprivate JLabelprivate static final Stringprivate Stringprivate static final Stringprivate JLabelprivate booleanprivate Serverprivate static final intprivate static final Loggerprivate Stringprivate static final Stringprivate JTextFieldprivate JButtonprivate static final Stringprivate JLabelprivate static final intprivate static final intprivate DateFormat(package private) static final Localeprivate DateFormat(package private) static final Stringprivate JTextFieldprivate JTextFieldprivate static final intprivate JLabelprivate static final Stringprivate final Optionsprivate Stringprivate JPasswordFieldprivate static final int(package private) static final Stringprivate intprivate JPanelprivate JPanelprivate JButtonprivate static final Stringprivate GameTableModelprivate JTableprivate JButtonprivate static final Stringprivate JLabelprivate JButtonprivate JLabelprivate RegisterPasswordPanelprivate JButtonprivate GameTableModelprivate JTableprivate Boxprivate booleanprivate static final Stringprivate IWebServerprivate Boxprivate JButtonprivate JSpinnerprivate JSpinnerprivate JSpinnerprivate JButtonprivate static final String(package private) static final Stringprivate Stringprivate intprivate Stringprivate GameInfoprivate JButtonprivate static final Stringprivate intprivate JLabelprivate JLabelprivate Stringprivate JTextFieldprivate JTabbedPaneprivate boolean(package private) static final String(package private) static final Stringprivate JButtonprivate static final Stringprivate JCheckBoxprivate JLabelprivate Stringprivate intprivate intprivate intprivate longprivate intprivate Stringprivate JComboBoxprivate JComboBox(package private) static final Stringprivate JButtonprivate static final Stringprivate static final intprivate String(package private) static final Stringstatic final intstatic final intstatic final intprivate WebClientSocketThread(package private) static final intprivate JTextFieldprivate JTextFieldprivate final WhatNextManagerprivate static StringFields inherited from class JFrame
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORFields inherited from class Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface IWebClient
alreadyLoggedIn, chatDeliver, connectionClosed, didEnroll, didUnenroll, forcedLogout, gameCancelled, gameInfo, gameStarted, gameStartsNow, gameStartsSoon, generalMessage, grantAdmin, pingRequest, requestAttention, systemMessage, tooManyUsers, userInfo, watchGameInfoFields inherited from interface WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
ConstructorsConstructorDescriptionWebClient(WhatNextManager whatNextManager, String hostname, int port, String login, String password) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidaddRadioButton(Container cont, ButtonGroup group, String text, String current, ItemListener listener) private voidadjustToPossibleMax(JSpinner spinner, int max) private voidvoidprivate voidprivate voidvoidchatDeliver(String chatId, long when, String sender, String message, boolean resent) private booleanprivate booleanprivate booleanprivate booleancheckIfCouldStartOnServer(int state) private booleanprivate booleancheckIfCouldWatch(int state) voidvoidconnectionReset(boolean forced) private voidprivate voidcreateLoginWebClientSocketThread(boolean force) private voidcreateRegisterWebClientSocketThread(String username, String password, String email, String confCode) private voidprivate voidprivate voidvoiddeliverGeneralMessage(long when, boolean error, String title, String message) voidvoiddidUnenroll(String gameId, String user) private voiddisplayOnlyOneInstantGameMessage(String action, String message) voiddispose()private voiddo_proposeGame(String variant, String viewmode, long startAt, int duration, String summary, String expire, boolean unlimMulli, boolean balTowers, int min, int target, int max) private voidprivate voidvoidprivate booleanvoiddoLogin()voiddoLogout()private voiddoQuit()private voiddoRegisterOrPasswordDialog(boolean register) void(package private) booleanprivate booleandoStartLocally(String gameId) private booleandoUnenroll(String gameId) voidprivate voidprivate voidprivate voidexecuteLoginLogoutButtonAction(String command) private GameInfofindGameById(String gameId) private GameInfofindGameByIdNoComplaint(String gameId) Find all "relevant" instant games owned by this player (relevant means except those who are running, ending or deleted).voidgameCancelled(String gameId, String byUser) voidvoidgameStartsNow(String gameId, int port, String hostingHost) voidgameStartsSoon(String gameId, String startUser) intprivate intgetHost()private intgetMaxForVariant(String variant) private CalendargetNowPlusOffset(Calendar now, int days, int hours) Determine a point in time given amount of days and hours from now.getPort()booleanprivate longprivate Stringprivate Stringvoidprivate voidprivate voidvoidvoidvoidinformStartingOnPlayerHost(String hostingPlayer, String hostingHost, int hostingPort) private voidprivate voidinitValues(String hostname, int port, String login, String password) booleanisAdmin()private booleanReturns true if this user would be allowed to start this game (given that all other conditions are fulfilled).private booleanprivate booleanprivate void(package private) voidloginLogoutButtonAction(String command) private voidlogout()private Stringprivate StringmakeInfoTextForState(int state) private StringmakeStatusTextForState(int state) private Boxprivate BoxmakeTextBox2(Component c, Component c2) private StringmakeWindowTitleForState(int state) private JLabelnonBoldLabel(String text) voidnotifyComingUp(boolean success) voidprivate GameInfoIf there is at least one instant game by this player, return it (one of it if many), otherwise null.private voidprivate voidvoidprivate voidregisterOrPasswordButtonAction(String command) private voidprivate voidreplaceInTable(JTable table, GameInfo gi) voidrequestAttention(long when, String byUser, boolean byAdmin, String message, int beepCount, long beepInterval, boolean windows) private voidprivate voidsetAdmin(boolean isAdmin) voidvoidsetLocalServer(Server server) private voidsetScheduledGamesMode(boolean scheduled) private voidsetupGUI()private TimervoidsetWatching(String gameId) voidshowAnswer(String s) private voidprivate voidprivate voidprivate voidvoidstartOwnClient(String gameId, int port, String hostingHost) voidstartSpectatorClient(String gameId, int port, String hostingHost) voidsystemMessage(long when, String message) voidtryChangePassword(String name, String oldPW, String newPW1) private voidprivate voidvoidprivate voidupdateMaxSpinner(String variant) voidupdateStatus(String text, Color color) voidbooleanvalidateField(Component parent, String content, String fieldName) (package private) booleanvalidatePort(Component parent, String portText) booleanprivate voidvoidwatchGameInfo(String gameId, String host, int port) Methods inherited from class KFrame
centerOnScreen, setVisible, useSaveWindowMethods inherited from class JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods inherited from class Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, show, toBack, toFrontMethods inherited from class Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface MenuContainer
getFont, postEvent
-
Field Details
-
LOGGER
-
WC_VERSION_GENERAL_MESSAGE
public static final int WC_VERSION_GENERAL_MESSAGE- See Also:
-
WC_VERSION_SUPPORTS_PING
public static final int WC_VERSION_SUPPORTS_PING- See Also:
-
WC_VERSION_DINO_OK
public static final int WC_VERSION_DINO_OK- See Also:
-
WEB_CLIENT_VERSION
static final int WEB_CLIENT_VERSION- See Also:
-
myLocale
-
CARD_PROPOSED
- See Also:
-
TYPE_SCHEDULED
- See Also:
-
TYPE_INSTANTLY
- See Also:
-
whatNextManager
-
hostname
-
port
private int port -
login
-
username
-
password
-
isAdmin
private boolean isAdmin -
options
-
gameClient
-
gameRunner
-
localServer
-
startedGameId
-
startedAtPort
private int startedAtPort -
startedAtHost
-
registerPanel
-
comingUpMutex
-
timeIsUp
private boolean timeIsUp -
clientIsUp
private boolean clientIsUp -
clientStartFailed
private boolean clientStartFailed -
NotLoggedIn
private static final int NotLoggedIn- See Also:
-
LoggedIn
private static final int LoggedIn- See Also:
-
EnrolledInstantGame
private static final int EnrolledInstantGame- See Also:
-
Playing
private static final int Playing- See Also:
-
Watching
private static final int Watching- See Also:
-
startingGame
-
minPort
private static final int minPort- See Also:
-
maxPort
private static final int maxPort- See Also:
-
sep
- See Also:
-
failedDueToDuplicateLogin
private boolean failedDueToDuplicateLogin -
failedDueToOwnCancel
private boolean failedDueToOwnCancel -
state
private int state -
enrolledInstantGameId
-
watchingInstantGameId
-
scheduledGamesMode
private boolean scheduledGamesMode -
usersLoggedIn
private int usersLoggedIn -
usersEnrolled
private int usersEnrolled -
usersPlaying
private int usersPlaying -
usersDead
private int usersDead -
usersLogoffAgo
private long usersLogoffAgo -
usersText
-
server
-
wcst
-
tabbedPane
-
serverTab
-
preferencesPane
-
createGamesTab
-
runningGamesTab
-
adminTab
-
defaultLocation
-
statusLabel
-
userinfoLabel
-
webserverHostField
-
webserverPortField
-
loginField
-
passwordField
-
commandField
-
receivedField
-
loginLogoutButton
-
quitButton
-
autologinCB
-
autoGamePaneCB
-
registerOrPasswordLabel
-
registerOrPasswordButton
-
debugSubmitButton
-
rereadLoginMsgButton
-
shutdownButton
-
dumpInfoButton
-
notifyMessageField
-
notifyUserField
-
beepCountField
-
beepIntervalField
-
statusField
-
statusText
-
variantBox
-
viewmodeBox
-
eventExpiringBox
-
spinner1
-
spinner2
-
spinner3
-
maxLabel
-
unlimitedMulligansCB
-
balancedTowersCB
-
nowDateAndTimeLabel
-
atDateField
-
atTimeField
-
durationField
-
summaryText
-
myDateFormat
-
myTimeFormat
-
proposeButton
-
cancelButton
-
enrollButton
-
unenrollButton
-
startButton
-
startLocallyButton
-
watchButton
-
hideButton
-
hideButtonText
-
gameNrField
-
autoGSNothingRB
-
autoGSHideRB
-
autoGSCloseRB
-
infoTextLabel
-
needLoginText
- See Also:
-
enrollText
- See Also:
-
startClickedText
- See Also:
-
waitingText
- See Also:
-
enrolledText
- See Also:
-
playingText
- See Also:
-
watchingText
- See Also:
-
generalChat
-
gamesUpdates
-
gameHash
-
deletedGames
-
gamesTablesPanel
-
gamesCards
-
propGamesCard
-
proposedGameTable
-
proposedGameDataModel
-
runGameTable
-
runGameDataModel
-
windowTitle
-
LoginButtonText
- See Also:
-
LogoutButtonText
- See Also:
-
CancelLoginButtonText
- See Also:
-
quitButtonText
- See Also:
-
HideButtonText
- See Also:
-
WatchButtonText
- See Also:
-
CantHideText
- See Also:
-
HowtoUnhideText
- See Also:
-
createAccountButtonText
- See Also:
-
chgPasswordButtonText
- See Also:
-
ProposeButtonText
- See Also:
-
EnrollButtonText
- See Also:
-
UnenrollButtonText
- See Also:
-
CancelButtonText
- See Also:
-
StartButtonText
- See Also:
-
StartLocallyButtonText
- See Also:
-
AutoLoginCBText
- See Also:
-
AutoGamePaneCBText
- See Also:
-
createAccountLabelText
- See Also:
-
chgPasswordLabelText
- See Also:
-
AutoGameStartActionNothing
- See Also:
-
AutoGameStartActionHide
- See Also:
-
AutoGameStartActionClose
- See Also:
-
optAutoGameStartAction
- See Also:
-
defaultSummaryText
- See Also:
-
dialogTitle
-
dialogMessage
-
-
Constructor Details
-
WebClient
public WebClient(WhatNextManager whatNextManager, String hostname, int port, String login, String password)
-
-
Method Details
-
getClientVersion
public int getClientVersion()- Specified by:
getClientVersionin interfaceIWebClient
-
initValues
-
setGameClient
-
setScheduledGamesMode
private void setScheduledGamesMode(boolean scheduled) -
getScheduledGamesMode
public boolean getScheduledGamesMode() -
onGameStartAutoAction
public void onGameStartAutoAction() -
setupGUI
private void setupGUI() -
autoActions
private void autoActions() -
doAutoGSAction
private void doAutoGSAction() -
updateStatus
-
addAdminTab
private void addAdminTab() -
removeAdminTab
private void removeAdminTab() -
setAdmin
private void setAdmin(boolean isAdmin) -
isAdmin
public boolean isAdmin() -
showAnswer
-
getHost
-
getPort
-
getGameRunner
-
getWhomToNotify
-
createServerTab
private void createServerTab() -
addRadioButton
private void addRadioButton(Container cont, ButtonGroup group, String text, String current, ItemListener listener) -
nonBoldLabel
-
makeTextBox
-
makeTextBox2
-
initFormats
private void initFormats() -
makeDateTimeInfoString
-
updateDateTimeInfoString
private void updateDateTimeInfoString() -
createCreateGamesTab
private void createCreateGamesTab() -
getNowPlusOffset
-
reactOnScheduleRadioButtonChange
-
createPreferencesPane
private void createPreferencesPane() -
updateMaxSpinner
-
adjustToPossibleMax
-
getMaxForVariant
-
createRunningGamesTab
private void createRunningGamesTab() -
createAdminTab
private void createAdminTab() -
beepButtonAction
public void beepButtonAction() -
createLoginWebClientSocketThread
-
createRegisterWebClientSocketThread
-
logout
private void logout() -
doQuit
private void doQuit() -
dispose
-
getUserinfoText
-
updateGUI
public void updateGUI() -
getSelectedGameId
-
getSelectedGameFromRunTableId
-
makeWindowTitleForState
-
makeInfoTextForState
-
makeStatusTextForState
-
isEligibleToStart
Returns true if this user would be allowed to start this game (given that all other conditions are fulfilled). Usually the allowed player is the one who created it, but if that one is not enrolled, the first of the enrolled ones is allowed then to do it.- Parameters:
gi-- Returns:
- Whether this player would be allowed to start this game
-
checkIfCouldWatch
private boolean checkIfCouldWatch(int state) -
checkIfCouldStartOnServer
private boolean checkIfCouldStartOnServer(int state) -
isScheduledGameAndStartable
-
checkIfCouldPropose
private boolean checkIfCouldPropose() -
checkIfCouldCancel
private boolean checkIfCouldCancel() -
checkIfCouldEnroll
private boolean checkIfCouldEnroll() -
checkIfCouldUnenroll
private boolean checkIfCouldUnenroll() -
doUpdateGUI
public void doUpdateGUI() -
getGameHash
-
findGameByIdNoComplaint
-
findGameById
-
isOwner
-
validateField
-
validatePort
-
doLogin
public void doLogin() -
doCancelConnect
public void doCancelConnect() -
validateServerAndPort
public boolean validateServerAndPort() -
doLogout
public void doLogout() -
cancelOwnInstantGameOnLogout
private void cancelOwnInstantGameOnLogout() -
doRegisterOrPasswordDialog
private void doRegisterOrPasswordDialog(boolean register) -
tryChangePassword
-
doCancel
-
doScheduleDummy
public void doScheduleDummy() -
do_proposeGame
-
getStartTime
private long getStartTime() -
getDuration
private int getDuration() -
getSummaryText
-
doEnroll
-
doUnenroll
-
doStart
-
doStartLocally
-
informStartingOnPlayerHost
-
informGameStartedLocally
public void informGameStartedLocally() -
informLocallyGameOver
public void informLocallyGameOver() -
setLocalServer
-
grantAdminStatus
public void grantAdminStatus()- Specified by:
grantAdminStatusin interfaceIWebClient
-
didEnroll
- Specified by:
didEnrollin interfaceIWebClient
-
didUnenroll
- Specified by:
didUnenrollin interfaceIWebClient
-
setWatching
-
clearWatching
public void clearWatching() -
gameStartsSoon
- Specified by:
gameStartsSoonin interfaceIWebClient
-
notifyComingUp
public void notifyComingUp(boolean success) -
setupTimer
-
gameStartsNow
- Specified by:
gameStartsNowin interfaceIWebClient
-
startOwnClient
-
startSpectatorClient
-
gameCancelled
- Specified by:
gameCancelledin interfaceIWebClient
-
chatDeliver
- Specified by:
chatDeliverin interfaceIWebClient
-
watchGameInfo
- Specified by:
watchGameInfoin interfaceIWebClient
-
requestAttention
public void requestAttention(long when, String byUser, boolean byAdmin, String message, int beepCount, long beepInterval, boolean windows) - Specified by:
requestAttentionin interfaceIWebClient
-
showRequestAttentionMessage
private void showRequestAttentionMessage() -
deliverGeneralMessage
- Specified by:
deliverGeneralMessagein interfaceIWebClient
-
systemMessage
- Specified by:
systemMessagein interfaceIWebClient
-
tellGameEnds
public void tellGameEnds() -
userInfo
- Specified by:
userInfoin interfaceIWebClient
-
gameInfo
- Specified by:
gameInfoin interfaceIWebClient
-
handleGameInfoUpdates
-
replaceInTable
-
connectionReset
public void connectionReset(boolean forced) - Specified by:
connectionResetin interfaceIWebClient
-
hideButtonAction
private void hideButtonAction() -
watchButtonAction
private void watchButtonAction() -
loadGameButtonAction
private void loadGameButtonAction() -
quitButtonAction
private void quitButtonAction() -
loginLogoutButtonAction
-
executeLoginLogoutButtonAction
-
rereadLoginMsgButtonAction
private void rereadLoginMsgButtonAction() -
shutdownButtonAction
private void shutdownButtonAction() -
dumpInfoButtonAction
private void dumpInfoButtonAction() -
debugSubmitButtonAction
private void debugSubmitButtonAction() -
registerOrPasswordButtonAction
-
startLocallyButtonAction
private void startLocallyButtonAction() -
startButtonAction
private void startButtonAction() -
cancelButtonAction
private void cancelButtonAction() -
unenrollButtonAction
private void unenrollButtonAction() -
findMyInstantGames
-
ownInstantGameIfAny
If there is at least one instant game by this player, return it (one of it if many), otherwise null. Normally there should ever be only one, but in strange cases... (like, game start failed or something...)- Returns:
- The (or: any) instant game or null
-
displayOnlyOneInstantGameMessage
-
enrollButtonAction
private void enrollButtonAction() -
proposeButtonAction
private void proposeButtonAction()
-