Java Doc for Session.java in  » Testing » jacareto » jacareto » cleverphl » session » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jacareto » jacareto.cleverphl.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jacareto.system.EnvironmentMember
      jacareto.cleverphl.session.Session

Session
public class Session extends EnvironmentMember implements ReplayListener,KeyStrokeObserver,RecordChangeListener,HashtableChangeListener,Runnable,ListDataListener,JacaretoClassLoaderListener(Code)
The CleverPHL session.
author:
   Christian Spannagel
author:
   Markus Bois
version:
   1.05



Constructor Summary
public  Session(CleverPHL cleverPHL, String name, SessionType type, Customization sessionCustom)
     Creates a new non-active session.
public  Session(CleverPHL cleverPHL, String name, Customization sessionCustom)
     Creates a new non-active session with the type SessionType.COMPLETE.
public  Session(CleverPHL cleverPHL, String name, SessionType type)
    
public  Session(CleverPHL cleverPHL, String name)
     Creates a new non-active session with the default session customization and the type SessionType.COMPLETE.

Method Summary
public  voidaddAccelerators()
     Adds the accelerator keys to the menu.
public  voidaddDataSet(DataSet dataSet)
     Adds a data set.
public  voidaddSessionListener(SessionListener listener)
     Adds a session listener to the list of listeners.
public  InsertPointcalcInsertPoint()
    
public  voidclassLoaderChanged(JacaretoClassLoaderEvent event)
     Called when the target application class loader has changed.
public  voidclearRecord()
     Clears the main record and records some initial recordables to it.
public  booleanclose()
     Closes the session.
public  voidcloseRecord()
     Closes the main record.
public  voidcontentsChanged(ListDataEvent event)
     This method is called when the start list has changed.
public  voidcontinueReplay()
     Continues the replay process after a pause.
public  voidcopyStructureElements()
    
public  voidcutStructureElements()
    
public  voidfastForward()
     Fast forward.
public  voidfastForwardToNextMarked()
     Fast forward to next marked position.
public  voidfastForwardToTime(long time)
    
protected  voidfireSessionEvent(SessionEvent event)
     Fires a session event to all listeners.
public  ComponentsgetComponents()
     Returns the components belonging to the session.
public  ConceptualModelgetConceptualModel()
    
public  ConvertergetDataSetConverter()
     Returns the data set converter.
public  VectorgetDataSets()
    
public  AWTEventMaskGroupgetEventMask()
     Returns the event mask.
public  FilterListgetFilterList()
     Returns the filter list.
public  booleangetInsertionMode()
     Returns the insertion mode.
public  InteractionModelgetInteractionModel()
    
public  ManipulationManagementgetManipulationManagement()
     Returns the manipulation management.
public  StringgetName()
     Returns the session's name.
public  RandomAccessRecordgetRecord()
     Returns the session's main record.
public  ReplaygetReplay()
     Returns the replay instance.
public  VectorgetSelectedRecordables()
    
public  StructureElement[]getSelectedStructureElements()
    
public  JacaretoClassLoadergetSessionClassLoader()
     Returns the class loader of the session.
public  CustomizationgetSessionCustomization()
     Returns the session's customization.
public  ReplayModegetSessionReplayMode()
     Returns the session's replay mode.
public  StarterListgetStarterList()
     Returns the starter list.
public  StructuregetStructure()
     Returns the structure of the session's record.
public  StructureTreegetStructureTree()
     Returns the JTree showing the record.
public  JacaretoClassLoadergetTargetApplicationClassLoader()
     Returns the class loader which has loaded the target application.
public  TestLoadergetTestLoader()
     Returns the test loader.
public  TestReportgetTestReport()
     Returns the session's test report.
public  SessionTypegetType()
     Returns the session type.
public  voidhandleKeyStroke(String strokeName)
     This method will be called by the key stroke catcher when a key stroke has been dispatched.
public  voidhashtableChanged(HashtableChangeEvent event)
     This method is called when the session's customization has changed.
public  voidinitShutdownHook()
     Inits the shutdown hook.
public  voidinsertRecordable(Recordable recordable)
     Inserts a recordable at a specified position (the selected position in a record visualization, for example).
public  voidinsertStructureElement(StructureElement element)
     Inserts a structure element (not a recordable) at a specified position (the selected position in a record visualization, for example).
public  voidintervalAdded(ListDataEvent event)
     This method is called when the start list has changed.
public  voidintervalRemoved(ListDataEvent event)
     This method is called when the start list has changed.
public  booleanisActive()
     Returns whether this session is active or not .
public  booleanisCapturing()
     Returns whether the capture process of this session is going on or not at the moment.
public  booleanisReplayPause()
     Returns whether the replay process is paused or not.
public  booleanisReplaying()
     Returns whether the replay process of this session is going on or not at the moment.
public  booleanisSessionUnsaved()
     Returns whether or not the session has been changed and not saved.
public  voidopenRecord()
     Opens the main record.
public  voidpasteStructureElements()
     Pastes the structure elements in the clipboard into the structure tree at the selected tree path..
public  voidpauseReplay()
     Pauses the replay process of this session.
public  voidrecord(Recordable recordable)
     Records the specified recordable to the record.
public  voidrecordHasChanged(RecordChangeEvent event)
     Called when the record has been changed.
public  voidremoveDataSet(int i)
     Removes the data set at the specified index.
public  voidremoveSelectedRecordables()
     Removes all recordables which are selected in the record visualization.
public  VectorremoveSelectedStructureElements()
     Removes the selected structure elements and returns them in a vector, but does not remove the recordables from the record.
public  voidremoveSelectedStructureElementsAndRecordables()
     Removed the selected structure elements and their recordable leafs in the record.
public  voidremoveSessionListener(SessionListener listener)
     Removes a session listener from the list of listeners.
public  voidremoveShutdownHook()
     Removes the shutdown hook.
public  voidreplay()
     Starts the replay process if it is not running, or continues it if it has already been started.
public  voidreplayActualElement()
     Replay actual element.
public  voidreplayStateChanged(ReplayEvent event)
    
public  voidresetReplay()
     Resets the replay process.
public  voidrestructureRecord()
     Restructures the record.
public  voidrun()
    
public  voidselectAllStructureElements()
     Selects all structure elements.
public  voidselectStructureElement(StructureElement element)
     Selects a structure element.
public  voidselectStructureElements(StructureElement[] elements)
     Selects more than one structure element.
public  voidsetActive(boolean isActive)
     Makes this session active.
public  voidsetConceptualModel(ConceptualModel conceptualModel)
    
public  voidsetInsertionMode(boolean mode)
     Set the insertion mode.
public  voidsetInteractionModel(InteractionModel interactionModel)
    
public  voidsetName(String name)
     Sets the name of the session.
public  voidsetRecordStructureCompound(RecordStructureCompound compound)
     Sets the record structure compound.
public  voidsetSessionReplayMode(ReplayMode replayMode)
     Sets the session's replay mode.
public  voidsetSessionUnsaved(boolean isSessionUnsaved)
     Specifies whether or not the session is unsaved.
public  voidsetStarterList(StarterList starterList)
    
public  voidsetStoreOnExit(boolean storeOnExit)
     Sets whether or not the session should be automatically stored when exiting.
public  voidsetStructureTree(StructureTree structureTree)
     Returns the JTree showing the record.
public  voidsetType(SessionType type)
     Sets the session type.
public  voidstartCapture()
     Starts the capture process of this session.
public  voidstartCaptureSemanticEvents()
     Start capture semantic events.
public  voidstartMarkedCapture()
     Starts the capture and adds the recordable at the selected point.
public  voidstartReplay()
     Starts the replay process of this session.
public  voidstopCapture()
     Stops the capture process of this session.
public  voidstopCaptureSemanticEvents()
     Stop capture semantic events.
public  voidstore()
     Stores the session.


Constructor Detail
Session
public Session(CleverPHL cleverPHL, String name, SessionType type, Customization sessionCustom)(Code)
Creates a new non-active session.
Parameters:
  cleverPHL - the CleverPHL instance.
Parameters:
  name - the session's name
Parameters:
  type - the type of the session
Parameters:
  sessionCustom - the session's customization



Session
public Session(CleverPHL cleverPHL, String name, Customization sessionCustom)(Code)
Creates a new non-active session with the type SessionType.COMPLETE.
Parameters:
  cleverPHL - the CleverPHL instance.
Parameters:
  name - the session's name
Parameters:
  sessionCustom - the session's customization



Session
public Session(CleverPHL cleverPHL, String name, SessionType type)(Code)
Creates a new non-active session with the default session customization
Parameters:
  cleverPHL - the CleverPHL instance.
Parameters:
  name - the session's name
Parameters:
  type - the session's type



Session
public Session(CleverPHL cleverPHL, String name)(Code)
Creates a new non-active session with the default session customization and the type SessionType.COMPLETE.
Parameters:
  cleverPHL - the CleverPHL instance.
Parameters:
  name - the session's name




Method Detail
addAccelerators
public void addAccelerators()(Code)
Adds the accelerator keys to the menu.



addDataSet
public void addDataSet(DataSet dataSet)(Code)
Adds a data set.
Parameters:
  dataSet - DOCUMENT ME!



addSessionListener
public void addSessionListener(SessionListener listener)(Code)
Adds a session listener to the list of listeners. All listeners will be notified of session events.
Parameters:
  listener - the listener to add



calcInsertPoint
public InsertPoint calcInsertPoint()(Code)



classLoaderChanged
public void classLoaderChanged(JacaretoClassLoaderEvent event)(Code)
Called when the target application class loader has changed. Changes will be sent to the session class loader which has to know the classpaths added to the target application class loader.
Parameters:
  event - the class loader event



clearRecord
public void clearRecord()(Code)
Clears the main record and records some initial recordables to it.



close
public boolean close()(Code)
Closes the session. All records of this session will be closed, too. true if the session has been closed, otherwise false



closeRecord
public void closeRecord()(Code)
Closes the main record.



contentsChanged
public void contentsChanged(ListDataEvent event)(Code)
This method is called when the start list has changed.
Parameters:
  event - DOCUMENT ME!



continueReplay
public void continueReplay()(Code)
Continues the replay process after a pause.



copyStructureElements
public void copyStructureElements()(Code)
Copies the selected structure elements out of the structure tree and stores them in the clipboard



cutStructureElements
public void cutStructureElements()(Code)
Cuts the selected structure elements out of the structure tree and stores them in the clipboard



fastForward
public void fastForward()(Code)
Fast forward.



fastForwardToNextMarked
public void fastForwardToNextMarked()(Code)
Fast forward to next marked position.



fastForwardToTime
public void fastForwardToTime(long time)(Code)
Fast forward to next the given media time
Parameters:
  time - the time to stop



fireSessionEvent
protected void fireSessionEvent(SessionEvent event)(Code)
Fires a session event to all listeners.
Parameters:
  event - the event



getComponents
public Components getComponents()(Code)
Returns the components belonging to the session. DOCUMENT ME!



getConceptualModel
public ConceptualModel getConceptualModel()(Code)
Returns the ConceptualModel DOCUMENT ME!



getDataSetConverter
public Converter getDataSetConverter()(Code)
Returns the data set converter. DOCUMENT ME!



getDataSets
public Vector getDataSets()(Code)
Returns the data sets DOCUMENT ME!



getEventMask
public AWTEventMaskGroup getEventMask()(Code)
Returns the event mask. DOCUMENT ME!



getFilterList
public FilterList getFilterList()(Code)
Returns the filter list. DOCUMENT ME!



getInsertionMode
public boolean getInsertionMode()(Code)
Returns the insertion mode. DOCUMENT ME!



getInteractionModel
public InteractionModel getInteractionModel()(Code)
Returns the interaction model DOCUMENT ME!



getManipulationManagement
public ManipulationManagement getManipulationManagement()(Code)
Returns the manipulation management. guess!



getName
public String getName()(Code)
Returns the session's name. DOCUMENT ME!



getRecord
public RandomAccessRecord getRecord()(Code)
Returns the session's main record. DOCUMENT ME!



getReplay
public Replay getReplay()(Code)
Returns the replay instance. DOCUMENT ME!



getSelectedRecordables
public Vector getSelectedRecordables()(Code)



getSelectedStructureElements
public StructureElement[] getSelectedStructureElements()(Code)
Gets the selected StructureElements from the StructureTree StructureElements[]



getSessionClassLoader
public JacaretoClassLoader getSessionClassLoader()(Code)
Returns the class loader of the session. DOCUMENT ME!



getSessionCustomization
public Customization getSessionCustomization()(Code)
Returns the session's customization. DOCUMENT ME!



getSessionReplayMode
public ReplayMode getSessionReplayMode()(Code)
Returns the session's replay mode. replayMode the session's replay mode



getStarterList
public StarterList getStarterList()(Code)
Returns the starter list. DOCUMENT ME!



getStructure
public Structure getStructure()(Code)
Returns the structure of the session's record. DOCUMENT ME!



getStructureTree
public StructureTree getStructureTree()(Code)
Returns the JTree showing the record. DOCUMENT ME!



getTargetApplicationClassLoader
public JacaretoClassLoader getTargetApplicationClassLoader()(Code)
Returns the class loader which has loaded the target application. DOCUMENT ME!



getTestLoader
public TestLoader getTestLoader()(Code)
Returns the test loader. DOCUMENT ME!



getTestReport
public TestReport getTestReport()(Code)
Returns the session's test report. DOCUMENT ME!



getType
public SessionType getType()(Code)
Returns the session type. DOCUMENT ME!



handleKeyStroke
public void handleKeyStroke(String strokeName)(Code)
This method will be called by the key stroke catcher when a key stroke has been dispatched.
Parameters:
  strokeName - the name of the key stroke



hashtableChanged
public void hashtableChanged(HashtableChangeEvent event)(Code)
This method is called when the session's customization has changed.
Parameters:
  event - DOCUMENT ME!



initShutdownHook
public void initShutdownHook()(Code)
Inits the shutdown hook.



insertRecordable
public void insertRecordable(Recordable recordable)(Code)
Inserts a recordable at a specified position (the selected position in a record visualization, for example).
Parameters:
  recordable - the record to insert



insertStructureElement
public void insertStructureElement(StructureElement element)(Code)
Inserts a structure element (not a recordable) at a specified position (the selected position in a record visualization, for example).
Parameters:
  element - the element to insert



intervalAdded
public void intervalAdded(ListDataEvent event)(Code)
This method is called when the start list has changed.
Parameters:
  event - DOCUMENT ME!



intervalRemoved
public void intervalRemoved(ListDataEvent event)(Code)
This method is called when the start list has changed.
Parameters:
  event - DOCUMENT ME!



isActive
public boolean isActive()(Code)
Returns whether this session is active or not . DOCUMENT ME!



isCapturing
public boolean isCapturing()(Code)
Returns whether the capture process of this session is going on or not at the moment. DOCUMENT ME!



isReplayPause
public boolean isReplayPause()(Code)
Returns whether the replay process is paused or not. DOCUMENT ME!



isReplaying
public boolean isReplaying()(Code)
Returns whether the replay process of this session is going on or not at the moment. DOCUMENT ME!



isSessionUnsaved
public boolean isSessionUnsaved()(Code)
Returns whether or not the session has been changed and not saved. true if the session has not been saved; otherwise false



openRecord
public void openRecord()(Code)
Opens the main record.



pasteStructureElements
public void pasteStructureElements()(Code)
Pastes the structure elements in the clipboard into the structure tree at the selected tree path..



pauseReplay
public void pauseReplay()(Code)
Pauses the replay process of this session.



record
public void record(Recordable recordable)(Code)
Records the specified recordable to the record.
Parameters:
  recordable - the recordable to record



recordHasChanged
public void recordHasChanged(RecordChangeEvent event)(Code)
Called when the record has been changed.
Parameters:
  event - RecordChangeEvent



removeDataSet
public void removeDataSet(int i)(Code)
Removes the data set at the specified index.
Parameters:
  i - DOCUMENT ME!



removeSelectedRecordables
public void removeSelectedRecordables()(Code)
Removes all recordables which are selected in the record visualization.



removeSelectedStructureElements
public Vector removeSelectedStructureElements()(Code)
Removes the selected structure elements and returns them in a vector, but does not remove the recordables from the record. DOCUMENT ME!



removeSelectedStructureElementsAndRecordables
public void removeSelectedStructureElementsAndRecordables()(Code)
Removed the selected structure elements and their recordable leafs in the record.



removeSessionListener
public void removeSessionListener(SessionListener listener)(Code)
Removes a session listener from the list of listeners.
Parameters:
  listener - the listener to remove



removeShutdownHook
public void removeShutdownHook()(Code)
Removes the shutdown hook.



replay
public void replay()(Code)
Starts the replay process if it is not running, or continues it if it has already been started.



replayActualElement
public void replayActualElement()(Code)
Replay actual element.



replayStateChanged
public void replayStateChanged(ReplayEvent event)(Code)
Called when replay state has changed
Parameters:
  event - DOCUMENT ME!



resetReplay
public void resetReplay()(Code)
Resets the replay process.



restructureRecord
public void restructureRecord()(Code)
Restructures the record.



run
public void run()(Code)
For the shutdown hook



selectAllStructureElements
public void selectAllStructureElements()(Code)
Selects all structure elements.



selectStructureElement
public void selectStructureElement(StructureElement element)(Code)
Selects a structure element.
Parameters:
  element - the element to be selected



selectStructureElements
public void selectStructureElements(StructureElement[] elements)(Code)
Selects more than one structure element.
Parameters:
  elements - the elements to be selected.



setActive
public void setActive(boolean isActive)(Code)
Makes this session active.
Parameters:
  isActive - DOCUMENT ME!



setConceptualModel
public void setConceptualModel(ConceptualModel conceptualModel)(Code)
Sets the ConceptualModel
Parameters:
  conceptualModel - DOCUMENT ME!



setInsertionMode
public void setInsertionMode(boolean mode)(Code)
Set the insertion mode. True mean insert into structures.
Parameters:
  mode - is the mode that should setted



setInteractionModel
public void setInteractionModel(InteractionModel interactionModel)(Code)
Sets the interaction model
Parameters:
  interactionModel - DOCUMENT ME!



setName
public void setName(String name)(Code)
Sets the name of the session.
Parameters:
  name - the new name



setRecordStructureCompound
public void setRecordStructureCompound(RecordStructureCompound compound) throws RecordException(Code)
Sets the record structure compound.
Parameters:
  compound - the compound.
throws:
  RecordException - DOCUMENT ME!



setSessionReplayMode
public void setSessionReplayMode(ReplayMode replayMode)(Code)
Sets the session's replay mode.
Parameters:
  replayMode - the new replay mode



setSessionUnsaved
public void setSessionUnsaved(boolean isSessionUnsaved)(Code)
Specifies whether or not the session is unsaved.
Parameters:
  isSessionUnsaved - true if the session has been changed and is not saved,otherwise false



setStarterList
public void setStarterList(StarterList starterList)(Code)
Sets the starter list
Parameters:
  starterList - DOCUMENT ME!



setStoreOnExit
public void setStoreOnExit(boolean storeOnExit)(Code)
Sets whether or not the session should be automatically stored when exiting.
Parameters:
  storeOnExit - DOCUMENT ME!



setStructureTree
public void setStructureTree(StructureTree structureTree)(Code)
Returns the JTree showing the record.
Parameters:
  structureTree - the structure tree



setType
public void setType(SessionType type)(Code)
Sets the session type.
Parameters:
  type - DOCUMENT ME!



startCapture
public void startCapture()(Code)
Starts the capture process of this session.



startCaptureSemanticEvents
public void startCaptureSemanticEvents()(Code)
Start capture semantic events.



startMarkedCapture
public void startMarkedCapture()(Code)
Starts the capture and adds the recordable at the selected point.



startReplay
public void startReplay()(Code)
Starts the replay process of this session.



stopCapture
public void stopCapture()(Code)
Stops the capture process of this session.



stopCaptureSemanticEvents
public void stopCaptureSemanticEvents()(Code)
Stop capture semantic events.



store
public void store()(Code)
Stores the session.



Fields inherited from jacareto.system.EnvironmentMember
protected Customization customization(Code)(Java Doc)
protected Environment env(Code)(Java Doc)
protected Files files(Code)(Java Doc)
protected Language language(Code)(Java Doc)
protected Logger logger(Code)(Java Doc)

Methods inherited from jacareto.system.EnvironmentMember
public Customization getCustomization()(Code)(Java Doc)
public Environment getEnvironment()(Code)(Java Doc)
public Files getFiles()(Code)(Java Doc)
public Language getLanguage()(Code)(Java Doc)
public Logger getLogger()(Code)(Java Doc)
public void setEnvironment(Environment env)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.