es.iac.ing.codeso.widget.adapter
Class LogWidgetAdapter

java.lang.Object
  extended by es.iac.ing.codeso.widget.adapter.LogWidgetAdapter

public class LogWidgetAdapter
extends java.lang.Object

The LogWidgetAdapter class provides a means of monitoring actions.


Nested Class Summary
private  class LogWidgetAdapter.ActionProxyListener
           
private  class LogWidgetAdapter.ServerProxyListener
           
 
Field Summary
private  java.util.ArrayList<ActionProxy> actionProxyList
          Holds references to all ActionProxies, thus preventing them from being garbage collected.
private  iLoggable logWidget
           
private  java.util.ArrayList<ServerProxy> serverProxyList
          Holds references to all ServerProxy, thus preventing them from being garbage collected.
 
Constructor Summary
LogWidgetAdapter()
          Creates a new LogWidgetActionAdapter
 
Method Summary
 void createActionMonitor(int channel, java.lang.String name)
           
 void createServerMonitor(int channel, java.lang.String name)
           
private static java.lang.String getTimeStamp()
           
 void setLogWidget(iLoggable logWidget)
           
protected  void updateLogWidgetWithNewActionProxyConnectionState(ActionProxy actionProxy)
          Updates the log widget with the new connection state.
protected  void updateLogWidgetWithNewActionState(ActionProxy actionProxy)
          Updates the log widget with the new action proxy's state.
protected  void updateLogWidgetWithNewServerProxyConnectionState(ServerProxy serverProxy)
          Updates the log widget with the new connection state.
protected  void updateLogWidgetWithNewServerState(ServerProxy serverProxy)
          Updates the log widget with the new server proxy's state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logWidget

private iLoggable logWidget

actionProxyList

private java.util.ArrayList<ActionProxy> actionProxyList
Holds references to all ActionProxies, thus preventing them from being garbage collected.


serverProxyList

private java.util.ArrayList<ServerProxy> serverProxyList
Holds references to all ServerProxy, thus preventing them from being garbage collected.

Constructor Detail

LogWidgetAdapter

public LogWidgetAdapter()
Creates a new LogWidgetActionAdapter

Method Detail

createActionMonitor

public void createActionMonitor(int channel,
                                java.lang.String name)

createServerMonitor

public void createServerMonitor(int channel,
                                java.lang.String name)

setLogWidget

public void setLogWidget(iLoggable logWidget)

updateLogWidgetWithNewActionState

protected void updateLogWidgetWithNewActionState(ActionProxy actionProxy)
Updates the log widget with the new action proxy's state.

Parameters:
actionProxy - reference to the action proxy whose state has changed.

updateLogWidgetWithNewServerState

protected void updateLogWidgetWithNewServerState(ServerProxy serverProxy)
Updates the log widget with the new server proxy's state.

Parameters:
serverProxy - reference to the server proxy whose state has changed.

updateLogWidgetWithNewActionProxyConnectionState

protected void updateLogWidgetWithNewActionProxyConnectionState(ActionProxy actionProxy)
Updates the log widget with the new connection state.

Parameters:
actionProxy - reference to the ActionProxy object whose connection state has changed.

updateLogWidgetWithNewServerProxyConnectionState

protected void updateLogWidgetWithNewServerProxyConnectionState(ServerProxy serverProxy)
Updates the log widget with the new connection state.

Parameters:
serverProxy - reference to the ServerProxy object whose connection state has changed.

getTimeStamp

private static java.lang.String getTimeStamp()