org.kahina.core.visual.text
Class KahinaTextView<T extends KahinaLineReference>

java.lang.Object
  extended by org.kahina.core.visual.KahinaView<T>
      extended by org.kahina.core.visual.text.KahinaTextView<T>
All Implemented Interfaces:
KahinaListener
Direct Known Subclasses:
KahinaDefaultTextView

public class KahinaTextView<T extends KahinaLineReference>
extends KahinaView<T>
implements KahinaListener


Field Summary
protected  DefaultListModel listModel
           
protected  ListSelectionModel selectionModel
           
 
Fields inherited from class org.kahina.core.visual.KahinaView
config, model
 
Constructor Summary
KahinaTextView(KahinaController control)
           
 
Method Summary
 void doDisplay()
          Subclasses may override this method to take certain actions directly after KahinaView.model has changed.
 ListModel getListModel()
           
 ListSelectionModel getSelectionModel()
           
 void processEvent(KahinaConsoleLineEvent e)
           
 void processEvent(KahinaEvent e)
           
 void processEvent(KahinaMessageEvent e)
           
 void registerNewLineReference(KahinaLineReference ref)
           
 JComponent wrapInPanel(KahinaController control)
          Returns the panel that represents this view in the GUI.
 
Methods inherited from class org.kahina.core.visual.KahinaView
display, getConfig, getModel, getTitle, processEvent, recalculate, setConfig, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listModel

protected DefaultListModel listModel

selectionModel

protected ListSelectionModel selectionModel
Constructor Detail

KahinaTextView

public KahinaTextView(KahinaController control)
Method Detail

doDisplay

public void doDisplay()
Description copied from class: KahinaView
Subclasses may override this method to take certain actions directly after KahinaView.model has changed. This default implementation does nothing.

Overrides:
doDisplay in class KahinaView<T extends KahinaLineReference>

registerNewLineReference

public void registerNewLineReference(KahinaLineReference ref)

getListModel

public ListModel getListModel()

getSelectionModel

public ListSelectionModel getSelectionModel()

wrapInPanel

public JComponent wrapInPanel(KahinaController control)
Description copied from class: KahinaView
Returns the panel that represents this view in the GUI. This method must be invoked from the event dispatch thread.

Specified by:
wrapInPanel in class KahinaView<T extends KahinaLineReference>
Returns:

processEvent

public void processEvent(KahinaEvent e)
Specified by:
processEvent in interface KahinaListener
Overrides:
processEvent in class KahinaView<T extends KahinaLineReference>

processEvent

public void processEvent(KahinaMessageEvent e)

processEvent

public void processEvent(KahinaConsoleLineEvent e)