Package org.tn5250j.framework.common
Class Sessions
- java.lang.Object
-
- org.tn5250j.framework.common.Sessions
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener,SessionsInterface
public class Sessions extends java.lang.Object implements SessionsInterface, java.awt.event.ActionListener
Contains a collection of Session objects. This list is a static snapshot of the list of Session objects available at the time of the snapshot.
-
-
Constructor Summary
Constructors Constructor Description Sessions()
-
Method Summary
Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)protected voidaddSession(Session5250 newSession)intgetCount()java.util.ArrayList<Session5250>getSessionsList()Session5250item(int index)Session5250item(java.lang.String sessionName)Session5250item(Session5250 sessionObject)voidrefresh()protected voidremoveSession(int index)protected voidremoveSession(java.lang.String sessionName)protected voidremoveSession(Session5250 session)
-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
addSession
protected void addSession(Session5250 newSession)
-
removeSession
protected void removeSession(Session5250 session)
-
removeSession
protected void removeSession(java.lang.String sessionName)
-
removeSession
protected void removeSession(int index)
-
getCount
public int getCount()
- Specified by:
getCountin interfaceSessionsInterface
-
item
public Session5250 item(int index)
- Specified by:
itemin interfaceSessionsInterface
-
item
public Session5250 item(java.lang.String sessionName)
- Specified by:
itemin interfaceSessionsInterface
-
item
public Session5250 item(Session5250 sessionObject)
-
getSessionsList
public java.util.ArrayList<Session5250> getSessionsList()
-
refresh
public void refresh()
- Specified by:
refreshin interfaceSessionsInterface
-
-