edu.jhu.tmaj.client.image
Class AbstractSessionsPanel

java.lang.Object
  extended by edu.jhu.tmaj.client.image.AbstractSessionsPanel
Direct Known Subclasses:
OpenSessionsPanel, RecentSessionsPanel

public abstract class AbstractSessionsPanel
extends java.lang.Object

A Panel containing a List of sessions. Used for the RecentSessions and OpenSessions Panels in the ProjectFrame.


Constructor Summary
AbstractSessionsPanel(java.lang.String labelText)
           
 
Method Summary
protected  void addButtonPanel(javax.swing.JPanel buttonPanel)
           
 void addIASessionBean(IASessionBean iaSessionBean)
           
 void addIASessionBeanToTop(IASessionBean iasessionBean)
          Adds a SessionBean to the top of the JList.
protected  void addKeyListenerToJList(java.awt.event.KeyListener keyListener)
          Add a keyListener to respond to KeyEvents when typed in the JList.
protected  void addMouseListenerToJList(java.awt.event.MouseListener mouseListener)
          Add a MouseListener that will response to MouseEvents generated in the JList.
 void addSessionBean(SessionBean sessionBean)
          Adds a SessionBean to the bottom of the JList.
 void addSessionBeanToTop(SessionBean sessionBean)
          Adds a SessionBean to the top of the JList.
protected  void clearList()
          Clears the JList
 java.util.List<IASessionBean> getAllIASessionBeans()
          Returns a list of IASessionBeans in the JList.
 java.util.List<SessionBean> getAllSessionBeans()
          Returns a list of SessionBeans in the JList.
 javax.swing.JPanel getMainPanel()
          Returns the JComponent representing this class.
protected  java.util.List<IASessionBean> getSelectedIASessionBeans()
           
protected  java.util.List<SessionBean> getSelectedSessionBeans()
          Gets the currently selected SessionBean, or returns null if nothing is selected.
protected  boolean isIASessionBeanInList(IASessionBean iaSessionBeanComponent)
           
protected  boolean isSessionBeanInList(SessionBean sessionBeanComponent)
          Returns true if the SessionBean is in the JList.
 void removeIASessionBean(IASessionBean iasessionBean)
           
 void removeSessionBean(SessionBean sessionBean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSessionsPanel

public AbstractSessionsPanel(java.lang.String labelText)
Method Detail

addButtonPanel

protected final void addButtonPanel(javax.swing.JPanel buttonPanel)

getSelectedSessionBeans

protected final java.util.List<SessionBean> getSelectedSessionBeans()
Gets the currently selected SessionBean, or returns null if nothing is selected.


getSelectedIASessionBeans

protected final java.util.List<IASessionBean> getSelectedIASessionBeans()

clearList

protected final void clearList()
Clears the JList


isSessionBeanInList

protected final boolean isSessionBeanInList(SessionBean sessionBeanComponent)
Returns true if the SessionBean is in the JList.


isIASessionBeanInList

protected final boolean isIASessionBeanInList(IASessionBean iaSessionBeanComponent)

getAllSessionBeans

public final java.util.List<SessionBean> getAllSessionBeans()
Returns a list of SessionBeans in the JList.


getAllIASessionBeans

public final java.util.List<IASessionBean> getAllIASessionBeans()
Returns a list of IASessionBeans in the JList.


getMainPanel

public final javax.swing.JPanel getMainPanel()
Returns the JComponent representing this class.


addSessionBean

public final void addSessionBean(SessionBean sessionBean)
Adds a SessionBean to the bottom of the JList.


addIASessionBean

public final void addIASessionBean(IASessionBean iaSessionBean)

addSessionBeanToTop

public final void addSessionBeanToTop(SessionBean sessionBean)
Adds a SessionBean to the top of the JList.


addIASessionBeanToTop

public final void addIASessionBeanToTop(IASessionBean iasessionBean)
Adds a SessionBean to the top of the JList.


removeSessionBean

public final void removeSessionBean(SessionBean sessionBean)

removeIASessionBean

public final void removeIASessionBean(IASessionBean iasessionBean)

addKeyListenerToJList

protected void addKeyListenerToJList(java.awt.event.KeyListener keyListener)
Add a keyListener to respond to KeyEvents when typed in the JList.


addMouseListenerToJList

protected void addMouseListenerToJList(java.awt.event.MouseListener mouseListener)
Add a MouseListener that will response to MouseEvents generated in the JList.