java.io.Serializable, javax.swing.ListSelectionModel, javax.swing.table.TableModelpublic class ProgressManager
extends javax.swing.table.AbstractTableModel
implements javax.swing.ListSelectionModel
| Modifier and Type | Field | Description |
|---|---|---|
static int |
AUTOMATIC |
|
static int |
COL_ITEM |
|
static int |
COL_REC |
|
static int |
COL_TEXT |
|
static int |
COL_UPLOAD |
|
static int |
COL_URL |
|
static int |
COLUMNS |
|
static int |
ERROR_MSG_MAX_ITEMS |
|
static int |
MANUAL |
|
static int |
RANDOM |
|
static java.lang.String |
REC_SCRIPT_DTD |
|
static java.lang.String |
REC_SCRIPT_DTD_1 |
|
static java.lang.String |
REC_SCRIPT_DTD_2 |
|
static java.lang.String |
RECORDED_COL_ID |
|
static int |
SEQUENTIAL |
| Constructor | Description |
|---|---|
ProgressManager() |
RecScriptManager loads the recording script and organizes the sequence of
recordings.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addListSelectionListener(javax.swing.event.ListSelectionListener l) |
|
void |
addSelectionInterval(int index0,
int index1) |
|
void |
addSessionManagerListener(ProgressManagerListener acl) |
Add listener.
|
void |
advanceToNextRecording() |
advanceToNextRecording() selects the next non-recorded recording item.
|
boolean |
allRecordingsDone() |
allRecordingsDone() returns true if all items have been recorded at least
once, false otherwise.
|
void |
clearSelection() |
|
boolean |
currentPromptBlocking() |
|
Section.PromptPhase |
currentPromptPhase() |
|
void |
decrementIndex() |
decrements the current recording index by 1 if the
original index was greater than 0; otherwise the index is set to the
maximum recording index.
|
void |
doClose() |
resets the manager to the initial state
|
protected void |
fireSessionManagerUpdate(ProgressManagerEvent event) |
|
int |
getAnchorSelectionIndex() |
|
java.lang.Class |
getColumnClass(int col) |
getColumnClass() returns the Class of the column specified by the column
index
|
int |
getColumnCount() |
getColumnCount() returns the number of items to be displayed in a prompt
item.
|
java.lang.String |
getColumnName(int col) |
getColumnName() returns the name of the column specified by the column
index
|
java.net.URL |
getContext() |
Get the workspace project context.
|
PromptItem |
getCurrentPromptItem() |
returns the prompt item for the current recording item index
|
Section |
getCurrentRecSection() |
returns the recording section corresponding to the given
recording item index
|
int |
getLeadSelectionIndex() |
|
<T extends java.util.EventListener> |
getListeners(java.lang.Class<T> listenerType) |
|
javax.swing.event.ListSelectionListener[] |
getListSelectionListeners() |
|
java.util.logging.Logger |
getLogger() |
|
int |
getMaxSelectionIndex() |
|
int |
getMinSelectionIndex() |
|
PromptItem |
getPromptItem(int promptIndex) |
returns the prompt item corresponding to the given recording index
|
int |
getRecCounter(int index) |
returns the number of recordings for the prompt item with
a given index
|
java.lang.Integer |
getRecIndex() |
returns the index of the current recording.
|
java.util.Hashtable |
getRecScriptResources() |
returns the prompt resources that were
pre-fetched via URLs.
|
java.lang.String |
getRecSectionInfo() |
returns the information string of the current recording
section.
|
int |
getRowCount() |
getRowCount() returns the number of prompt items in the current recording
script
|
Script |
getScript() |
Get currently used script.
|
java.lang.String |
getScriptID() |
|
int |
getSelectionMode() |
|
SetIndexAction |
getSetIndexAction() |
|
java.lang.String |
getSystemId() |
|
java.lang.String |
getSystemIdBase() |
|
java.lang.Object |
getValueAt(int row,
int column) |
getValueAt() returns the appropriate item for the given row and column
coordinates.
|
boolean |
getValueIsAdjusting() |
|
void |
incrementIndex() |
increments the current recording index by 1 if the
original index was less than the maximum recording index; otherwise the
index is set to 0.
|
void |
incrementRecCounter(int index) |
increments the recording counter for a given item
Discussion: should the fact that the count of recordings of this item has
increased be reported to the ProgressViewer?
|
void |
initialize() |
initializes the RecScriptManager, i.e. set the current recording index
and the maximum index to 0 and creates a new recording sections Vector
|
void |
insertIndexInterval(int index,
int length,
boolean before) |
|
boolean |
isCellEditable(int row,
int column) |
isCellEditable() returns true if the cell at a given row and column index
is editable, false otherwise
|
boolean |
isLeadAnchorNotificationEnabled() |
|
boolean |
isProgresToNextUnrecorded() |
|
boolean |
isResourceLoaded(java.net.URL resourceURL) |
isResourceLoaded() returns true if a resource identified by a given URL
has been loaded into the system
|
boolean |
isScriptSaved() |
|
boolean |
isSelectedIndex(int index) |
|
boolean |
isSelectionEmpty() |
|
void |
markItemAsProcessed(int index) |
sets the processing flag of the current recording
item to true.
|
void |
moveLeadSelectionIndex(int leadIndex) |
|
boolean |
needsBeep() |
|
boolean |
needsSilenceDetector() |
|
int |
numberOfPromptItems() |
Returns the number of items in the recording script.
|
void |
removeIndexInterval(int index0,
int index1) |
|
void |
removeListSelectionListener(javax.swing.event.ListSelectionListener l) |
|
void |
removeSelectionInterval(int index0,
int index1) |
|
void |
removeSessionManagerListener(ProgressManagerListener acl) |
Remove listener.
|
void |
resetItemMarkers() |
resets the recording index to 0 and marks all items as
not recorded and not processed.
|
void |
setAnchorSelectionIndex(int anchorIndex) |
|
void |
setContext(java.net.URL context) |
Set the URL context (usually the project directory in the workspace).
|
PromptItem |
setCurrentPromptItem(PromptItem promptItem) |
|
void |
setLeadAnchorNotificationEnabled(boolean flag) |
|
void |
setLeadSelectionIndex(int leadIndex) |
|
void |
setLogEntries() |
adds the current prompt item data (LBR, CCD) to the recording logger
|
void |
setProgresToNextUnrecorded(boolean progresToNextUnrecorded) |
|
void |
setRecIndex(java.lang.Integer index) |
sets the recording index to a given value.
|
void |
setScript(Script script) |
Set the script to use.
|
void |
setSelectionInterval(int index0,
int index1) |
|
void |
setSelectionMode(int selectionMode) |
|
void |
setSetIndexAction(SetIndexAction setIndexAction) |
|
void |
setStorageManager(ActiveSessionStorageManager sm) |
|
void |
setSystemId(java.lang.String scriptDTD) |
|
void |
setSystemIdBase(java.lang.String string) |
|
void |
setValueIsAdjusting(boolean isAdjusting) |
|
void |
updateItemMarkers() |
checks which items have been recorded already and sets their
recording counter and processing status accordingly.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getTableModelListeners, removeTableModelListener, setValueAtpublic static final java.lang.String REC_SCRIPT_DTD_1
public static final java.lang.String REC_SCRIPT_DTD_2
public static final java.lang.String REC_SCRIPT_DTD
public static final int AUTOMATIC
public static final int MANUAL
public static final int SEQUENTIAL
public static final int RANDOM
public static final int COL_ITEM
public static final int COL_URL
public static final int COL_TEXT
public static final int COL_REC
public static final int COL_UPLOAD
public static final int COLUMNS
public static final java.lang.String RECORDED_COL_ID
public static final int ERROR_MSG_MAX_ITEMS
public ProgressManager()
public SetIndexAction getSetIndexAction()
public void setSetIndexAction(SetIndexAction setIndexAction)
public void initialize()
public Script getScript()
public void setScript(Script script)
script - StorageManagerExceptionpublic boolean needsSilenceDetector()
public boolean needsBeep()
public void updateItemMarkers()
throws ProgressManagerException
public void resetItemMarkers()
public void setStorageManager(ActiveSessionStorageManager sm)
public java.util.Hashtable getRecScriptResources()
public boolean isResourceLoaded(java.net.URL resourceURL)
resourceURL - public Section getCurrentRecSection()
public Section.PromptPhase currentPromptPhase()
public java.lang.String getRecSectionInfo()
public PromptItem getPromptItem(int promptIndex)
promptIndex - public PromptItem getCurrentPromptItem()
public boolean currentPromptBlocking()
public int getRecCounter(int index)
index - public void incrementRecCounter(int index)
index - public void markItemAsProcessed(int index)
index - public void setLogEntries()
public void decrementIndex()
public void incrementIndex()
public java.lang.Integer getRecIndex()
public void setRecIndex(java.lang.Integer index)
public int numberOfPromptItems()
public void advanceToNextRecording()
public boolean allRecordingsDone()
public int getRowCount()
getRowCount in interface javax.swing.table.TableModelTableModel.getRowCount()public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelTableModel.getColumnCount()public java.lang.Object getValueAt(int row,
int column)
getValueAt in interface javax.swing.table.TableModelTableModel.getValueAt(int, int)public boolean isCellEditable(int row,
int column)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrow - row indexcolumn - column indexpublic java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcol - column indexpublic java.lang.Class getColumnClass(int col)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcol - column indexpublic java.lang.String getSystemIdBase()
public void setSystemIdBase(java.lang.String string)
public java.lang.String getScriptID()
public void setContext(java.net.URL context)
context - public java.net.URL getContext()
public java.util.logging.Logger getLogger()
public void doClose()
public void addListSelectionListener(javax.swing.event.ListSelectionListener l)
addListSelectionListener in interface javax.swing.ListSelectionModell - DefaultListSelectionModel.addListSelectionListener(javax.swing.event.ListSelectionListener)public void addSelectionInterval(int index0,
int index1)
addSelectionInterval in interface javax.swing.ListSelectionModelindex0 - index1 - DefaultListSelectionModel.addSelectionInterval(int, int)public void clearSelection()
clearSelection in interface javax.swing.ListSelectionModelDefaultListSelectionModel.clearSelection()public int getAnchorSelectionIndex()
getAnchorSelectionIndex in interface javax.swing.ListSelectionModelDefaultListSelectionModel.getAnchorSelectionIndex()public int getLeadSelectionIndex()
getLeadSelectionIndex in interface javax.swing.ListSelectionModelDefaultListSelectionModel.getLeadSelectionIndex()public <T extends java.util.EventListener> T[] getListeners(java.lang.Class<T> listenerType)
getListeners in class javax.swing.table.AbstractTableModelT - listenerType - DefaultListSelectionModel.getListeners(java.lang.Class)public javax.swing.event.ListSelectionListener[] getListSelectionListeners()
DefaultListSelectionModel.getListSelectionListeners()public int getMaxSelectionIndex()
getMaxSelectionIndex in interface javax.swing.ListSelectionModelDefaultListSelectionModel.getMaxSelectionIndex()public int getMinSelectionIndex()
getMinSelectionIndex in interface javax.swing.ListSelectionModelpublic int getSelectionMode()
getSelectionMode in interface javax.swing.ListSelectionModelDefaultListSelectionModel.getSelectionMode()public boolean getValueIsAdjusting()
getValueIsAdjusting in interface javax.swing.ListSelectionModelDefaultListSelectionModel.getValueIsAdjusting()public void insertIndexInterval(int index,
int length,
boolean before)
insertIndexInterval in interface javax.swing.ListSelectionModelindex - length - before - DefaultListSelectionModel.insertIndexInterval(int, int, boolean)public boolean isLeadAnchorNotificationEnabled()
public boolean isSelectedIndex(int index)
isSelectedIndex in interface javax.swing.ListSelectionModelpublic boolean isSelectionEmpty()
isSelectionEmpty in interface javax.swing.ListSelectionModelpublic void moveLeadSelectionIndex(int leadIndex)
leadIndex - DefaultListSelectionModel.moveLeadSelectionIndex(int)public void removeIndexInterval(int index0,
int index1)
removeIndexInterval in interface javax.swing.ListSelectionModelindex0 - index1 - DefaultListSelectionModel.removeIndexInterval(int, int)public void removeListSelectionListener(javax.swing.event.ListSelectionListener l)
removeListSelectionListener in interface javax.swing.ListSelectionModell - DefaultListSelectionModel.removeListSelectionListener(javax.swing.event.ListSelectionListener)public void removeSelectionInterval(int index0,
int index1)
removeSelectionInterval in interface javax.swing.ListSelectionModelindex0 - index1 - DefaultListSelectionModel.removeSelectionInterval(int, int)public void setAnchorSelectionIndex(int anchorIndex)
setAnchorSelectionIndex in interface javax.swing.ListSelectionModelanchorIndex - DefaultListSelectionModel.setAnchorSelectionIndex(int)public void setLeadAnchorNotificationEnabled(boolean flag)
flag - DefaultListSelectionModel.setLeadAnchorNotificationEnabled(boolean)public void setLeadSelectionIndex(int leadIndex)
setLeadSelectionIndex in interface javax.swing.ListSelectionModelleadIndex - DefaultListSelectionModel.setLeadSelectionIndex(int)public void setSelectionInterval(int index0,
int index1)
setSelectionInterval in interface javax.swing.ListSelectionModelindex0 - index1 - DefaultListSelectionModel.setSelectionInterval(int, int)public void setSelectionMode(int selectionMode)
setSelectionMode in interface javax.swing.ListSelectionModelselectionMode - DefaultListSelectionModel.setSelectionMode(int)public void setValueIsAdjusting(boolean isAdjusting)
setValueIsAdjusting in interface javax.swing.ListSelectionModelisAdjusting - DefaultListSelectionModel.setValueIsAdjusting(boolean)public PromptItem setCurrentPromptItem(PromptItem promptItem)
public void addSessionManagerListener(ProgressManagerListener acl)
acl - new listenerpublic void removeSessionManagerListener(ProgressManagerListener acl)
acl - listener to removeprotected void fireSessionManagerUpdate(ProgressManagerEvent event)
public boolean isScriptSaved()
public java.lang.String getSystemId()
public void setSystemId(java.lang.String scriptDTD)
public boolean isProgresToNextUnrecorded()
public void setProgresToNextUnrecorded(boolean progresToNextUnrecorded)