|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PageVisit
@ThreadSafe public final class PageVisit
A single page visit (or refresh) in a browser.
Field Summary | |
---|---|
static int |
MEDIAN_GENE_COUNT
An estimate of the median gene count, per page. |
Constructor Summary | |
---|---|
PageVisit(RhiWindow _w,
File _f,
VersionedFile _fV,
ToolbarApplet _a)
Waits for page to become ready, and creates a PageVisit. |
Method Summary | |
---|---|
ToolbarApplet |
applet()
The toolbar applet. |
HTMLDocument |
document()
The page as a DOM document. |
PageVisitEDT |
edt()
Facilities restricted to the AWT event dispatch thread. |
File |
file()
Returns the source of the page as a local file, or null if the source is not a local file. |
List<Element> |
geneList()
Sparse list of genes, indexed by g-index. |
Object |
getReleaseReason()
Returns the reason why the page vist is coming to an end. |
List<Element> |
gList()
List of gene meta-data ('g') elements, ordered by g-index. |
boolean |
isPageSilent()
Returns true if the page is remote, and therefore blocks LiveConnect JavaScript messages to the page daemon. |
MultiMap<String,Element> |
locusToGeneMap()
Map of genes, keyed by locus. |
Spool |
preSpool()
Spool unwound before this instance is released. |
File |
serializedPage()
Returns a serialized copy of the page. |
void |
setReleaseReason(Object newReleaseReason)
Sets the releaseReason. |
Spool |
spool()
Spool unwound as this instance is released. |
InPageFactory |
transfer_inPageFactory()
This page as a region-transfer source. |
User |
user()
The user. |
VersionedFile |
versionedFile()
Returns the source of the page as a versioned file, or null if the source is not a versioned file. |
RhiWindow |
window()
Browser window visiting the page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MEDIAN_GENE_COUNT
Constructor Detail |
---|
PageVisit(RhiWindow _w, File _f, VersionedFile _fV, ToolbarApplet _a) throws IOException, TextbenderException
Launches a desk daemon (from the browser's own VM) if none was already running. It will be left running after the page is released. (Avoid clearing its classloader during testing. Use a separate browser to load the desk daemon, initially. And before clearing the cache in any other browser, back out of the recombinant text page first, so the page daemon's listeners can deregister.)
_w
- browser window, per window()_f
- file, per file()_fV
- versioned file, per versionedFile()_a
- toolbar applet, per applet()
IOException
- if serializedPage cannot be created,
or RemoteException if an in-page tool cannot connect
with desk daemon
TextbenderException
- per findMetaDataMethod Detail |
---|
public ToolbarApplet applet()
public HTMLDocument document()
public PageVisitEDT edt()
public File file()
serializedPage()
,
versionedFile()
public List<Element> geneList()
public Object getReleaseReason()
public void setReleaseReason(Object newReleaseReason)
IllegalStateException
- if reason already setgetReleaseReason()
public List<Element> gList()
public boolean isPageSilent()
sun.plugin.liveconnect.OriginNotAllowedException: JavaScript is not from the same origin as the Java code, caller=http://zelea.com, callee=file:/home/mike/var/tmp-public/textbender-demo/textbender.jar
The main casualty is event dispatch; remote pages cannot forward events to the page daemon. They are effectively silent.
public MultiMap<String,Element> locusToGeneMap()
public Spool preSpool()
spool()
public File serializedPage()
Note: In the latter case, the serialization will include any markup added by content and user scripts during boot; such as injected applets.
public Spool spool()
preSpool()
,
PageVisitEDT.spool()
public InPageFactory transfer_inPageFactory()
public User user()
public VersionedFile versionedFile()
file()
public RhiWindow window()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |