siuying.gm.app.gmailer4j.controller
Class GMConvPanelController

java.lang.Object
  extended by siuying.gm.app.gmailer4j.controller.GMConvPanelController

public class GMConvPanelController
extends java.lang.Object

GMThreadPanelController Controller of the GMThreadPanel, used to display a conversation, user can navigate through the threads in conversation

Version:
0.2
Author:
siuying

Constructor Summary
GMConvPanelController(javax.swing.JFrame parent)
           
 
Method Summary
 void addHyperLinkListener(javax.swing.event.HyperlinkListener l)
          Add a HyperlinkListener to the text content pane
 void dispose()
           
 GMConversation getConversation()
           
 javax.swing.JPanel getPanel()
           
 void reset()
          Reset the text of this panel to default string
 void scrollTop()
           
 void setConversation(GMConversation conv)
          Set the conversation of this panel One panel can only display on set of conversation
 void setConvTreeEnabled(boolean enabled)
           
 void setCurrentThreads(int index)
          Set the current threads this panel displayed Input parameter must be a valid index of the conversation
 void show()
          Pop up a frame display the Threads
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMConvPanelController

public GMConvPanelController(javax.swing.JFrame parent)
Method Detail

addHyperLinkListener

public void addHyperLinkListener(javax.swing.event.HyperlinkListener l)
Add a HyperlinkListener to the text content pane

Parameters:
l - HyperlinkListener

getConversation

public GMConversation getConversation()

getPanel

public javax.swing.JPanel getPanel()

setConversation

public void setConversation(GMConversation conv)
Set the conversation of this panel One panel can only display on set of conversation


setConvTreeEnabled

public void setConvTreeEnabled(boolean enabled)
To do:
this do not work well, fix it

setCurrentThreads

public void setCurrentThreads(int index)
Set the current threads this panel displayed Input parameter must be a valid index of the conversation

Parameters:
int - index index of current conversation
Throws:
java.lang.IllegalArgumentException - If conversation have not been set, or index is smaller than 0 or larger than conversation index

show

public void show()
Pop up a frame display the Threads


reset

public void reset()
Reset the text of this panel to default string


dispose

public void dispose()

scrollTop

public void scrollTop()