StarTable
public class ProgressBarStarTable extends WrapperStarTable
Thread.interrupt()
ing the thread in which the RowSequence
is being iterated over will cause the next method
to throw an IOException.
Said RowSequences may be used from any thread, that is
they are not restricted to use from the AWT event dispatcher thread.
However you don't want to be using two such
row sequences simultaneously or the progress bar will be getting two
sets of updates at once.
You might think this should be based on a
BoundedRangeModel
(JProgressBar's model) instead,
but unfortunately that doesn't allow you use of
indeterminate progress states.
baseTable
Constructor | Description |
---|---|
ProgressBarStarTable(StarTable baseTable) |
|
ProgressBarStarTable(StarTable baseTable,
javax.swing.JProgressBar progBar) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getActiveLabel() |
Returns the text of the label which is visible in the progress bar
when a RowSequence acquired from this table is active.
|
javax.swing.JProgressBar |
getProgressBar() |
|
RowSequence |
getRowSequence() |
Returns an object which can iterate over all the rows in the table
sequentially.
|
void |
setActiveLabel(java.lang.String label) |
Sets a label which will be visible in the progress bar when a
RowSequence acquired from this table is being iterated over.
|
void |
setProgressBar(javax.swing.JProgressBar progBar) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkedLongToInt, getBaseTable, getCell, getColumnAuxDataInfos, getColumnCount, getColumnInfo, getName, getParameterByName, getParameters, getRow, getRowCount, getURL, isRandom, setName, setParameter, setURL, toString
public ProgressBarStarTable(StarTable baseTable)
public ProgressBarStarTable(StarTable baseTable, javax.swing.JProgressBar progBar)
public void setProgressBar(javax.swing.JProgressBar progBar)
public javax.swing.JProgressBar getProgressBar()
public void setActiveLabel(java.lang.String label)
label
- label textpublic java.lang.String getActiveLabel()
public RowSequence getRowSequence() throws java.io.IOException
StarTable
getRowSequence
in interface StarTable
getRowSequence
in class WrapperStarTable
java.io.IOException
- if there is an error providing accessCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.