JavaQuest.Client
Class CClientRemainingTime

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--JavaQuest.Client.CClientRemainingTime
All Implemented Interfaces:
java.lang.Runnable

public class CClientRemainingTime
extends java.lang.Thread

CClientRemainingTime thread is used to run a time it tells how long the Player is on turn

See Also:
CClientFrame, CUtils

Field Summary
private  double m_dProgressBarMultiply
          to calculate the footstep of the ProgressBar
private  int m_iTimer
          integer for the time
private  CUtils m_oUtil
           
private  javax.swing.JProgressBar o_RemainingTime
          reference of the ProgressBar
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
CClientRemainingTime(javax.swing.JProgressBar _RemainingTime, CUtils _oUtil)
          Constructor
 
Method Summary
private  void jbInit()
          jbInit Component initialization
 void run()
          run run is a thread-method
protected  void setValue(int _i)
          setValue set the Timer to the value of the first param
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_iTimer

private int m_iTimer
integer for the time

m_dProgressBarMultiply

private double m_dProgressBarMultiply
to calculate the footstep of the ProgressBar

o_RemainingTime

private javax.swing.JProgressBar o_RemainingTime
reference of the ProgressBar

m_oUtil

private CUtils m_oUtil
Constructor Detail

CClientRemainingTime

public CClientRemainingTime(javax.swing.JProgressBar _RemainingTime,
                            CUtils _oUtil)
Constructor
Parameters:
JProgressBar - _RemainingTime
CUtils - _oUtil
Method Detail

jbInit

private void jbInit()
             throws java.lang.Exception
jbInit Component initialization
Throws:
java.lang.Exception - Exception

run

public void run()
run run is a thread-method
Overrides:
run in class java.lang.Thread

setValue

protected void setValue(int _i)
setValue set the Timer to the value of the first param
Parameters:
int - _i the value of the ProgressBar reset