|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.princeton.wordnet.client.browser.WidgetFactory
public class WidgetFactory
Widget factory
Field Summary | |
---|---|
static boolean |
renderAsWordNet
Rendering option : rendering mode as WordNet |
private Controller |
theController
Controller |
private long |
theDuration
How long request took |
Constructor Summary | |
---|---|
WidgetFactory(Controller thisController)
Constructor |
Method Summary | |
---|---|
long |
getDuration()
Getter for duration |
Widget |
make(java.lang.String thisLookup,
boolean withLinks,
boolean recurse)
Make widget from query |
Widget |
make(java.net.URL thisUrl)
Make widget from url of XML document |
private org.w3c.dom.Document |
open(java.net.URL thisUrl)
Open document |
private org.w3c.dom.Document |
query(java.lang.String thisLookup,
boolean withLinks,
boolean recurse)
Query |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Controller theController
public static boolean renderAsWordNet
private long theDuration
Constructor Detail |
---|
public WidgetFactory(Controller thisController)
thisController
- controller
java.lang.Exception
Method Detail |
---|
public Widget make(java.net.URL thisUrl) throws java.lang.Exception
thisUrl
- target url
java.lang.Exception
private org.w3c.dom.Document open(java.net.URL thisUrl) throws java.lang.Exception
thisUrl
- url of XML document
java.lang.Exception
public Widget make(java.lang.String thisLookup, boolean withLinks, boolean recurse) throws java.lang.Exception
thisLookup
- target lookupwithLinks
- want linksrecurse
- recurse
java.lang.Exception
private org.w3c.dom.Document query(java.lang.String thisLookup, boolean withLinks, boolean recurse) throws java.lang.Exception
thisLookup
- target lookupwithLinks
- want linksrecurse
- recurse
java.lang.Exception
public long getDuration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |