org.almendra.janet.cas.node.gui
Class NodeViewController

java.lang.Object
  extended by org.almendra.janet.cas.node.gui.NodeViewController

public class NodeViewController
extends java.lang.Object

Author:
Oliver

Field Summary
protected  javax.swing.tree.DefaultMutableTreeNode agentsNode
           
protected  javax.swing.tree.DefaultTreeModel agentsRootNode
           
protected  javax.swing.tree.DefaultMutableTreeNode applicationsNode
           
protected  javax.swing.tree.DefaultTreeModel applicationsRootNode
           
protected  java.util.Map appsByTreeNode
           
protected  javax.swing.tree.DefaultMutableTreeNode localAgentsNode
           
protected  javax.swing.tree.DefaultMutableTreeNode localAppsNode
           
protected  java.util.Map logEntriesByLogText
           
protected  ILogListener logListener
           
protected  int[] logListSelectionIndices
           
protected  Node node
           
protected  java.util.Map nodeByTreeNode
           
protected  NodeViewsRegistry nodeViewsRegistry
           
protected  NodeView view
           
 
Constructor Summary
NodeViewController(NodeView view, Node node)
          Creates a new NodeViewController object.
 
Method Summary
protected  void addAgent(AgentPath agentPath)
           
protected  void addAgents(AbstractApplication application)
           
 void addApplication(AbstractApplication application)
           
protected  void addApplication(AgentPath agentPath)
           
 void addApplication(TreeNode appNode)
           
 void addForeignAgentPaths(java.util.List agentPaths)
           
 void applicationDeregistered(java.lang.String applicationName, java.lang.String nodeName)
           
 void closeView()
           
protected  javax.swing.tree.DefaultMutableTreeNode getAppParentNode(java.lang.String nodeName)
           
protected  Node getNode()
           
protected  javax.swing.tree.DefaultMutableTreeNode getNodeAgentNode(AgentPath agentPath)
           
protected  void initAgentsPanel()
           
protected  void initApplicationsPanel()
           
protected  void initBillboard()
           
 void initEvents()
           
protected  void initFreeTextArea()
           
protected  void initialize()
           
protected  void initLogger()
           
protected  void initNodeViewTitleAccessor()
           
protected  void initPanels()
           
protected  void initViewsTab()
           
protected  javax.swing.tree.DefaultMutableTreeNode insert(javax.swing.tree.DefaultMutableTreeNode parent, java.lang.String newNodeValue)
           
 void log(LogEntry entry)
           
 void logListValueChanged(javax.swing.event.ListSelectionEvent listSelectionEvent)
           
 void nodeDeregistered(java.lang.String nodeName)
           
 void openButtonClicked()
           
protected  void removeAgents(java.lang.String applicationName, java.lang.String nodeName)
           
protected  void removeAgentsNode(java.lang.String nodeName)
           
protected  void removeApplication(java.lang.String applicationName, java.lang.String nodeName)
           
protected  void removeApplicationNode(java.lang.String nodeName)
           
 boolean shutdown()
           
protected  void viewExitRequest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected NodeView view

node

protected Node node

applicationsRootNode

protected javax.swing.tree.DefaultTreeModel applicationsRootNode

applicationsNode

protected javax.swing.tree.DefaultMutableTreeNode applicationsNode

localAppsNode

protected javax.swing.tree.DefaultMutableTreeNode localAppsNode

agentsRootNode

protected javax.swing.tree.DefaultTreeModel agentsRootNode

agentsNode

protected javax.swing.tree.DefaultMutableTreeNode agentsNode

localAgentsNode

protected javax.swing.tree.DefaultMutableTreeNode localAgentsNode

logListener

protected ILogListener logListener

logListSelectionIndices

protected int[] logListSelectionIndices

logEntriesByLogText

protected java.util.Map logEntriesByLogText

nodeByTreeNode

protected java.util.Map nodeByTreeNode

appsByTreeNode

protected java.util.Map appsByTreeNode

nodeViewsRegistry

protected NodeViewsRegistry nodeViewsRegistry
Constructor Detail

NodeViewController

public NodeViewController(NodeView view,
                          Node node)
Creates a new NodeViewController object.

Method Detail

initialize

protected void initialize()

initViewsTab

protected void initViewsTab()

initNodeViewTitleAccessor

protected void initNodeViewTitleAccessor()

initFreeTextArea

protected void initFreeTextArea()

initBillboard

protected void initBillboard()

initLogger

protected void initLogger()

initPanels

protected void initPanels()

initAgentsPanel

protected void initAgentsPanel()

addAgent

protected void addAgent(AgentPath agentPath)

getNodeAgentNode

protected javax.swing.tree.DefaultMutableTreeNode getNodeAgentNode(AgentPath agentPath)

initApplicationsPanel

protected void initApplicationsPanel()

getNode

protected Node getNode()
Returns:
Returns the node.

initEvents

public void initEvents()

addApplication

public void addApplication(AbstractApplication application)
Parameters:
application -

addAgents

protected void addAgents(AbstractApplication application)
Parameters:
application -

addApplication

public void addApplication(TreeNode appNode)
Parameters:
application -

addForeignAgentPaths

public void addForeignAgentPaths(java.util.List agentPaths)
Parameters:
agentPaths -

addApplication

protected void addApplication(AgentPath agentPath)

insert

protected javax.swing.tree.DefaultMutableTreeNode insert(javax.swing.tree.DefaultMutableTreeNode parent,
                                                         java.lang.String newNodeValue)

getAppParentNode

protected javax.swing.tree.DefaultMutableTreeNode getAppParentNode(java.lang.String nodeName)

nodeDeregistered

public void nodeDeregistered(java.lang.String nodeName)
Parameters:
string -

removeApplicationNode

protected void removeApplicationNode(java.lang.String nodeName)

removeAgentsNode

protected void removeAgentsNode(java.lang.String nodeName)

removeAgents

protected void removeAgents(java.lang.String applicationName,
                            java.lang.String nodeName)

removeApplication

protected void removeApplication(java.lang.String applicationName,
                                 java.lang.String nodeName)

applicationDeregistered

public void applicationDeregistered(java.lang.String applicationName,
                                    java.lang.String nodeName)

shutdown

public boolean shutdown()

logListValueChanged

public void logListValueChanged(javax.swing.event.ListSelectionEvent listSelectionEvent)
Parameters:
listSelectionEvent -

log

public void log(LogEntry entry)
Parameters:
entry -

closeView

public void closeView()

viewExitRequest

protected void viewExitRequest()

openButtonClicked

public void openButtonClicked()