jap
Class ConsoleJAPMainView

java.lang.Object
  extended by jap.ConsoleJAPMainView
All Implemented Interfaces:
AnonServiceEventListener, IProxyListener, IStatusLine, IJAPMainView, JAPObserver

public class ConsoleJAPMainView
extends java.lang.Object
implements IJAPMainView

Author:
Rolf Wendolsky

Field Summary
 
Fields inherited from interface anon.proxy.IProxyListener
PROTOCOL_OTHER, PROTOCOL_WWW
 
Constructor Summary
ConsoleJAPMainView()
           
 
Method Summary
 int addStatusMsg(java.lang.String msg, int type, boolean bAutoRemove)
           
 int addStatusMsg(java.lang.String msg, int type, boolean bAutoRemove, java.awt.event.ActionListener a_listener)
           
 void channelsChanged(int channels)
           
 void connecting(AnonServerDescription a_serverDescription)
           
 void connectionError()
           
 void connectionEstablished(AnonServerDescription a_serverDescription)
           
 void create(boolean bWithPay)
           
 void dataChainErrorSignaled()
           
 void disableSetAnonMode()
           
 void disconnected()
           
 void doClickOnCascadeChooser()
           
 javax.swing.JPanel getMainPanel()
           
 JAPViewIconified getViewIconified()
           
 void onUpdateValues()
          Performs GUI update operations.
 void packetMixed(long a_totalBytes)
           
 void registerViewIconified(JAPViewIconified viewIconified)
           
 void removeStatusMsg(int id)
           
 void setVisible(boolean a_bVisible)
          Shows the console view.
 void showConfigDialog()
           
 void showConfigDialog(java.lang.String card, java.lang.Object a_value)
           
 void transferedBytes(long bytes, int protocolType)
          Called if some bytes are transferred.
 void updateValues(boolean bSync)
          Called if some values in the Model have changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleJAPMainView

public ConsoleJAPMainView()
Method Detail

addStatusMsg

public int addStatusMsg(java.lang.String msg,
                        int type,
                        boolean bAutoRemove)
Specified by:
addStatusMsg in interface IStatusLine

addStatusMsg

public int addStatusMsg(java.lang.String msg,
                        int type,
                        boolean bAutoRemove,
                        java.awt.event.ActionListener a_listener)
Specified by:
addStatusMsg in interface IStatusLine

doClickOnCascadeChooser

public void doClickOnCascadeChooser()
Specified by:
doClickOnCascadeChooser in interface IJAPMainView

updateValues

public void updateValues(boolean bSync)
Description copied from interface: JAPObserver
Called if some values in the Model have changed. The GUI should refresh itselves.

Specified by:
updateValues in interface JAPObserver
Parameters:
bSync - Hint, if the update should be processed immedialy

showConfigDialog

public void showConfigDialog()
Specified by:
showConfigDialog in interface IJAPMainView

showConfigDialog

public void showConfigDialog(java.lang.String card,
                             java.lang.Object a_value)
Specified by:
showConfigDialog in interface IJAPMainView

setVisible

public void setVisible(boolean a_bVisible)
Shows the console view.

Specified by:
setVisible in interface IJAPMainView

channelsChanged

public void channelsChanged(int channels)
Specified by:
channelsChanged in interface IProxyListener

packetMixed

public void packetMixed(long a_totalBytes)
Specified by:
packetMixed in interface AnonServiceEventListener

dataChainErrorSignaled

public void dataChainErrorSignaled()
Specified by:
dataChainErrorSignaled in interface AnonServiceEventListener

disconnected

public void disconnected()
Specified by:
disconnected in interface AnonServiceEventListener

connectionError

public void connectionError()
Specified by:
connectionError in interface AnonServiceEventListener

connecting

public void connecting(AnonServerDescription a_serverDescription)
Specified by:
connecting in interface AnonServiceEventListener

connectionEstablished

public void connectionEstablished(AnonServerDescription a_serverDescription)
Specified by:
connectionEstablished in interface AnonServiceEventListener

create

public void create(boolean bWithPay)
Specified by:
create in interface IJAPMainView

disableSetAnonMode

public void disableSetAnonMode()
Specified by:
disableSetAnonMode in interface IJAPMainView

onUpdateValues

public void onUpdateValues()
Description copied from interface: IJAPMainView
Performs GUI update operations. Should not be called directly!!

Specified by:
onUpdateValues in interface IJAPMainView

getMainPanel

public javax.swing.JPanel getMainPanel()

registerViewIconified

public void registerViewIconified(JAPViewIconified viewIconified)
Specified by:
registerViewIconified in interface IJAPMainView

getViewIconified

public JAPViewIconified getViewIconified()
Specified by:
getViewIconified in interface IJAPMainView

removeStatusMsg

public void removeStatusMsg(int id)
Specified by:
removeStatusMsg in interface IStatusLine

transferedBytes

public void transferedBytes(long bytes,
                            int protocolType)
Description copied from interface: IProxyListener
Called if some bytes are transferred.

Specified by:
transferedBytes in interface IProxyListener
Parameters:
bytes - either total amount or delta of transferred bytes
protocolType - the protocol to which the bytes are belonging