|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.Viewport
This class represents a Viewport (html-frame). It can have children viewports (acts as a frameset), or embedded viewports (up to the pilot, ala IFRAME in html4).
| Field Summary | |
protected Container |
container
|
protected Viewport |
parent
|
protected Pilot |
pilot
|
| Constructor Summary | |
Viewport(StormBase storm)
Create a new viewport nameless viewport |
|
Viewport(StormBase storm,
String name)
Create a new viewport |
|
| Method Summary | |
void |
addChild(Viewport v)
Add a child viewport (used during config phase only) |
Object |
addOnloadBlocker(Object blocker)
|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener for this view and all its descendents |
protected void |
dispose()
|
Viewport |
findImmediateChild(String s)
Find immediate child by name |
Viewport |
findViewportByName(String s)
Find viewport by name (check this viewport and all its children) |
Viewport |
findViewportInTreeByName(String name)
Look for closest viewport with given name in a whole viewport tree. |
String |
getBaseUrl()
Get URL that should be used to resolve relative URLs. |
URL |
getBaseURL()
Deprecated. Use getBaseUrl() |
Viewport |
getChildByIndex(int index)
Get child viewport with given `index' or null if `index' is outside of [0..getChildrenCount()). |
Enumeration |
getChildren()
Get a enumaration of children viewports. |
int |
getChildrenCount()
Get number of immediate children |
Container |
getContainer()
Get graphical container that this viewport lives in |
Viewport |
getContextViewport()
|
int |
getDocumentId()
Get number id of the current document |
DynamicObject |
getDocumentObject()
|
DynamicObject |
getDynamicWrapper()
Deprecated. Use getWindowObj() instead |
Viewport |
getFirstChild()
Get first child viewport |
ViewportGuiParams |
getGuiParams()
|
String |
getId()
Get unique ID of this viewport |
Viewport |
getImmediateChildWithProperty(Object key,
Object value)
Find an immediate child whose property value for `key' is `value' |
String |
getLocation()
|
String |
getName()
Get name of this viewport |
Viewport |
getNextSibling()
Get next sibling |
Viewport |
getParent()
Get the parent viewport of this viewport. |
Pilot |
getParentChainPilot()
Return pilot if non null otherwise recursively query parent chain |
Pilot |
getPilot()
|
Component |
getPilotComponent()
Get graphical component of the pilot |
Object |
getProperty(Object key)
|
Container |
getTopLevelContainer()
Get top-most ancestor of this viewport's container |
Viewport |
getTopParent()
Get top-level parent for this viewport. |
void |
getViewAndAllChildren(Vector buffer)
Append to `buffer' this view and all its children recursively |
DynamicObject |
getWindowObj()
|
int |
getZoom()
|
boolean |
isFrameArrayMember()
|
boolean |
isStopRequested()
|
boolean |
isSyntheticName()
Check if the result of getName() is synthetic. |
boolean |
isTopLevel()
Returns true if this is a top-level viewport |
void |
iterate(ViewportVisitor vc)
Iterates over current viewport and all its children, issuing a callback for each viewport to the given ViewportVisitor. |
void |
removeOnloadBlocker(Object sessionObj,
Object blocker)
|
protected void |
removePilot()
|
void |
removePilotComponent()
|
void |
removeProperty(Object key)
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove property change listener |
protected void |
scheduleValidate(Component c)
|
void |
setBaseUrl(String url)
|
void |
setContainer(Container c)
Initialize this viewport and all its children. |
void |
setFrameArrayMember()
|
void |
setGuiParams(ViewportGuiParams value)
|
void |
setLocationUrl(String url)
|
void |
setName(String s)
Set the name of this viewport |
protected void |
setPilot(Pilot p)
|
void |
setProperty(Object key,
Object value)
Note: If value can not be null. |
void |
setZoom(int z)
Set zoom value for this viewport and all its descendents |
String |
toString()
|
void |
viewportLayout(int x,
int y,
int w,
int h)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Viewport parent
protected Container container
protected Pilot pilot
| Constructor Detail |
public Viewport(StormBase storm)
public Viewport(StormBase storm,
String name)
name - name of the viewport| Method Detail |
public String toString()
public final String getId()
public final String getName()
public final boolean isSyntheticName()
getName() is synthetic.
The name is synthetic if it was generated by the browser, ant set via
document tags or by scripts
public void setName(String s)
public int getDocumentId()
public void setZoom(int z)
z - zoom value: 128 - 50%, 256 - 100%, 512 - 200%public int getZoom()
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
public Container getContainer()
public Container getTopLevelContainer()
public void setContainer(Container c)
public void setProperty(Object key,
Object value)
value can not be null.
Use DynEnv.DYNAMIC_NULL or similar tag instead
public void removeProperty(Object key)
public Object getProperty(Object key)
public ViewportGuiParams getGuiParams()
public void setGuiParams(ViewportGuiParams value)
public boolean isStopRequested()
public Viewport getNextSibling()
public Viewport getFirstChild()
public void addChild(Viewport v)
public Enumeration getChildren()
public int getChildrenCount()
public Viewport getChildByIndex(int index)
public Viewport getParent()
public Viewport getTopParent()
public boolean isTopLevel()
public void iterate(ViewportVisitor vc)
public void getViewAndAllChildren(Vector buffer)
public Viewport findViewportByName(String s)
public Viewport findImmediateChild(String s)
public Viewport getImmediateChildWithProperty(Object key,
Object value)
public Viewport findViewportInTreeByName(String name)
public Component getPilotComponent()
public Pilot getPilot()
public Pilot getParentChainPilot()
protected void setPilot(Pilot p)
protected void scheduleValidate(Component c)
c - The container to validateprotected void removePilot()
protected void dispose()
public void removePilotComponent()
public void viewportLayout(int x,
int y,
int w,
int h)
public String getLocation()
public void setLocationUrl(String url)
public URL getBaseURL()
getBaseUrl()
public String getBaseUrl()
getLocation(), for example, in HTML documents that specify the base tag.
public void setBaseUrl(String url)
public DynamicObject getDynamicWrapper()
getWindowObj() instead
public final DynamicObject getWindowObj()
public Viewport getContextViewport()
public DynamicObject getDocumentObject()
public boolean isFrameArrayMember()
public void setFrameArrayMember()
public final Object addOnloadBlocker(Object blocker)
public final void removeOnloadBlocker(Object sessionObj,
Object blocker)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||