Package net.sf.colossus.server
Class StartupProgress
- java.lang.Object
-
- net.sf.colossus.server.StartupProgress
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.util.EventListener
public final class StartupProgress extends java.lang.Object implements java.awt.event.ActionListener
Simple log window for Startup progress (waiting for clients)- Author:
- Clemens Katzer
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JCheckBox
autoCloseCheckBox
private javax.swing.JButton
b
private KFrame
logFrame
private java.awt.Container
pane
private Server
server
private static int
SHOWUP_DELAY
The time the window takes to show itself.private javax.swing.Timer
showUpTimer
private java.awt.TextArea
text
-
Constructor Summary
Constructors Constructor Description StartupProgress(Server server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
void
append(java.lang.String s)
void
cleanRef()
void
disableAutoClose()
Server startup calls this so that possible warning message can be noticed.void
dispose()
javax.swing.JFrame
getFrame()
void
setCompleted()
void
tooOldClient(java.lang.String clientName)
-
-
-
Field Detail
-
SHOWUP_DELAY
private static final int SHOWUP_DELAY
The time the window takes to show itself. This is a number of milliseconds to wait before showing the window in this class is shown. This means that in local games where everyone is there straight away the window will never be visible.- See Also:
- Constant Field Values
-
logFrame
private KFrame logFrame
-
text
private final java.awt.TextArea text
-
pane
private final java.awt.Container pane
-
server
private Server server
-
b
private javax.swing.JButton b
-
autoCloseCheckBox
private final javax.swing.JCheckBox autoCloseCheckBox
-
showUpTimer
private final javax.swing.Timer showUpTimer
-
-
Constructor Detail
-
StartupProgress
public StartupProgress(Server server)
-
-
Method Detail
-
append
public void append(java.lang.String s)
-
getFrame
public javax.swing.JFrame getFrame()
-
disableAutoClose
public void disableAutoClose()
Server startup calls this so that possible warning message can be noticed.
-
setCompleted
public void setCompleted()
-
dispose
public void dispose()
-
cleanRef
public void cleanRef()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
tooOldClient
public void tooOldClient(java.lang.String clientName)
-
-