|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.Pilot
ice.pilots.html4.ThePilot
| Field Summary | |
static boolean |
viewNoframes
|
| Constructor Summary | |
ThePilot()
|
|
| Method Summary | |
static void |
addColorDefinition(String name,
Color color)
Use to extend default color definitons. |
void |
addPersistentDOMEventListener(String type,
EventListener listener,
boolean useCapture)
Register DOM event listener to the llist of listeners that are called for any event of the given type generated by the browser by this pilot instance. |
protected boolean |
allowedToRunHandler(DOMEvent de,
DNode node)
|
void |
applySnapshot(Object snapshot)
Applies the specified snapshot to this
ThePilot's DDocument in order to recreate the
state represented by the snapshot. |
void |
beforeUnload()
|
void |
clear(String contentType)
Clear the displayed content |
void |
clearSelection()
Clears the selected text highlighting. |
Component |
createComponent()
Ask the pilot to create its GUI. |
protected ice.pilots.html4.CSSLayout |
createCSSLayout(String media,
DDocument doc)
Create a new CSSManager |
StormPrinter |
createPrinter()
Create a new instance of a StormPrinter. |
void |
dispose()
When the pilot is no longer needed, the system calls this method to allow the pilot to get rid of all resources it has been using. |
protected void |
evalScriptHandlerListeners(DNode node,
DOMEvent domEvent,
Object handler)
|
Object |
execDynamicMethodOnWindow(DynamicObject window,
String name,
Object[] args,
DynEnv env)
|
DDocument |
getDDocument()
|
DefaultEventHandler |
getDefaultEventHandler()
|
DocPane |
getDocPane()
|
Document |
getDocument()
Get DOM Document that represents the content loaded into this pilot. |
Dimension |
getDocumentDimension(Dimension rv)
Deprecated. Use , and
and
. |
DynamicObject |
getDocumentObject()
Get pilot notion of a document object for scripters |
Object |
getDynamicValueOnWindow(DynamicObject window,
String name,
DynEnv env)
|
String |
getEncoding()
Get encoding. |
String |
getPageInfo(String name)
Get a named HTTP header that arrived when loading this page |
protected DynamicObject |
getScriptHandlerThis(DNode node,
DOMEvent domEvent)
|
Search |
getSearch()
Perform search |
String |
getSelectedText()
Get selected text |
Object |
getSnapshot()
Creates a snapshot of this ThePilot's
DDocument in order to preserve its state. |
static DStyleSheet |
getUserStyleSheet(StormBase storm)
Return the default user stylesheet. |
TheView |
getView()
Get layout information (default view) of the DOM document in this pilot. |
Dimension |
getViewDimension(Dimension rv)
Deprecated. Use , and
and
. |
void |
gotoRef(String ref)
If the Storm is asked to go to a URL with a Ref and the pilot is already displaing the URL, this method will be called to tell the pilot to go to a Ref in the document. |
void |
init(String componentToolkitName)
Initialize a pilot. |
boolean |
isDisposed()
|
boolean |
isSelectionActive()
Determine if a text selection range is active in the viewport managed by this pilot |
void |
onLoadingDone()
|
void |
onLowMemory()
Tells the pilot to free resources while still be somewhat useful |
void |
parse(ContentLoader cl)
Parse the data from the ContentLoader |
void |
parsingDone()
This method is used by StormBase to notify that it has successfully completed parsing and sent propertychange "contentLoading=end". |
protected void |
processFrameset()
|
boolean |
refExists(String ref)
|
void |
refresh()
This one can be called when e.g a lightweight pilot change it size, or something else out side the pilot context that require the pilot to redraw itself. |
void |
removePersistentDOMEventListener(String type,
EventListener listener,
boolean useCapture)
Remove DOM event listener from the list of listeners that are called for any event of the given type generated by the browser by this pilot instance. |
void |
resume()
Tells the pilot to wake up from the "suspend" mode. |
protected Object |
script_createActiveXObject(String resource)
|
protected Object |
script_createOption(Object[] args)
|
protected Object |
script_getDOMImplementation()
|
void |
setDefaultEventHandler(DefaultEventHandler handler)
|
int |
setDynamicValueOnWindow(DynamicObject window,
String name,
Object value,
DynEnv env)
|
void |
setEncoding(String enc)
Set encoding. |
protected void |
setZoom(int z)
Set zooming value. |
void |
stopImageAnimation()
|
void |
stopLoading()
Tells the pilot to stop loading |
void |
suspend()
Tells the pilot to go into "suspend" mode and use as little resources as possible. |
void |
updateFrameList()
Make sure that storm has proper list of child vieports representing all frame objects that should be visible to scripts. |
| Methods inherited from class ice.storm.Pilot |
findOrCreateViewport, findOrCreateViewport, firePropertyChange, getAllPilotInstances, getPilotViewport, getStorm, getUrlMaster, getViewportContainer, getViewportId, getViewportProperty, isDetached, isStopRequested, modifiedByScript, refreshViewport, renderContent, viewportBecameActive |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean viewNoframes
| Constructor Detail |
public ThePilot()
| Method Detail |
public void init(String componentToolkitName)
Pilot
init in class PilotcomponentToolkitName - pilot contextpublic final boolean isDisposed()
public void beforeUnload()
beforeUnload in class Pilotpublic void dispose()
Pilot
dispose in class Pilot
protected ice.pilots.html4.CSSLayout createCSSLayout(String media,
DDocument doc)
public Dimension getDocumentDimension(Dimension rv)
Pilot.getDocPane(), and
DocPane.getDocWidth() and
DocPane.getDocHeight().
public Dimension getViewDimension(Dimension rv)
Pilot.getDocPane(), and
DocPane.getPaneWidth() and
DocPane.getPaneHeight().
public void setEncoding(String enc)
public String getEncoding()
public String getPageInfo(String name)
public Component createComponent()
Pilot
createComponent in class Pilotpublic StormPrinter createPrinter()
createPrinter in class Pilotpublic boolean refExists(String ref)
refExists in class Pilotpublic void gotoRef(String ref)
Pilot
gotoRef in class Pilotpublic final Document getDocument()
public DDocument getDDocument()
public TheView getView()
public DocPane getDocPane()
getDocPane in class Pilotpublic String getSelectedText()
public boolean isSelectionActive()
public void clearSelection()
public Search getSearch()
public void refresh()
Pilot
refresh in class Pilotprotected void setZoom(int z)
Pilot
setZoom in class Pilotpublic void suspend()
Pilot
suspend in class Pilotpublic void resume()
Pilot
resume in class Pilotpublic void clear(String contentType)
Pilot
clear in class Pilotpublic void stopImageAnimation()
public void stopLoading()
Pilot
stopLoading in class Pilotpublic void onLowMemory()
Pilot
onLowMemory in class Pilot
public void addPersistentDOMEventListener(String type,
EventListener listener,
boolean useCapture)
type - The event type for which the user is registeringlistener - The listener parameter takes an interface
implemented by the user which contains the methods to be called
when the event occurs.useCapture - If true, listener will be called before the capture phase of event dispatch, otherwise it will be called after the bubbling phase.DNode.addEventListener(java.lang.String, org.w3c.dom.events.EventListener, boolean),
removePersistentDOMEventListener(java.lang.String, org.w3c.dom.events.EventListener, boolean)
public void removePersistentDOMEventListener(String type,
EventListener listener,
boolean useCapture)
public DefaultEventHandler getDefaultEventHandler()
public void setDefaultEventHandler(DefaultEventHandler handler)
public void parse(ContentLoader cl)
throws IOException
Pilot
parse in class PilotIOExceptionpublic void parsingDone()
parsingDone in class Pilotpublic void onLoadingDone()
onLoadingDone in class Pilotprotected void processFrameset()
protected boolean allowedToRunHandler(DOMEvent de,
DNode node)
protected DynamicObject getScriptHandlerThis(DNode node,
DOMEvent domEvent)
protected void evalScriptHandlerListeners(DNode node,
DOMEvent domEvent,
Object handler)
public static void addColorDefinition(String name,
Color color)
addColorDefinition("silver", new Color(0xC0,0xC0,0xC0));
Note however that this entry is already present by default.
public static DStyleSheet getUserStyleSheet(StormBase storm)
protected Object script_createOption(Object[] args)
protected Object script_createActiveXObject(String resource)
protected Object script_getDOMImplementation()
public final DynamicObject getDocumentObject()
Pilot
getDocumentObject in class Pilotpublic void updateFrameList()
Pilot
updateFrameList in class Pilot
public Object getDynamicValueOnWindow(DynamicObject window,
String name,
DynEnv env)
getDynamicValueOnWindow in class Pilot
public int setDynamicValueOnWindow(DynamicObject window,
String name,
Object value,
DynEnv env)
setDynamicValueOnWindow in class Pilot
public Object execDynamicMethodOnWindow(DynamicObject window,
String name,
Object[] args,
DynEnv env)
execDynamicMethodOnWindow in class Pilotpublic void applySnapshot(Object snapshot)
Applies the specified snapshot to this
ThePilot's DDocument in order to recreate the
state represented by the snapshot.
applySnapshot in class Pilotsnapshot - the snapshot to be applied to this
ThePilot's DDocument.getSnapshot()public Object getSnapshot()
Creates a snapshot of this ThePilot's
DDocument in order to preserve its state.
getSnapshot in class PilotapplySnapshot(Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||