ice.pilots.html4
Class EmbeddedObject

java.lang.Object
  extended byice.storm.Viewport
      extended byice.pilots.html4.EmbeddedObject
All Implemented Interfaces:
ObjectPainter

public class EmbeddedObject
extends Viewport
implements ObjectPainter


Field Summary
 
Fields inherited from class ice.storm.Viewport
container, parent, pilot
 
Method Summary
 void dispose()
           
 void draw(Graphics g)
           
 ObjectBox getBox()
           
 int getClientHeight()
          Retrieve the height of the client area within the painter.
 int getClientWidth()
          Retrieve the width of the client area within the painter.
 Container getContainer()
          Retrieve the container that contains this object.
 int getPrefHeight()
           
 int getPrefWidth()
           
 void onElementAttrChange(DElement elem, DAttr attr)
           
 void setBackground(Color c)
           
 void setBorderVisible(boolean aDrawBorder)
          Allows CSS control over whether the object implementing ObjectPainter draws its own border.
 void setBox(ObjectBox box)
           
 void setFontHints(CSSAttribs css)
          Allow the ObjectBox to instruct the FormWidgets about the initial font to use.
 void setForeground(Color c)
           
 void setPainterSize(int w, int h)
           
 void setPilot(Pilot p)
           
 
Methods inherited from class ice.storm.Viewport
addChild, addOnloadBlocker, addPropertyChangeListener, findImmediateChild, findViewportByName, findViewportInTreeByName, getBaseUrl, getBaseURL, getChildByIndex, getChildren, getChildrenCount, getContextViewport, getDocumentId, getDocumentObject, getDynamicWrapper, getFirstChild, getGuiParams, getId, getImmediateChildWithProperty, getLocation, getName, getNextSibling, getParent, getParentChainPilot, getPilot, getPilotComponent, getProperty, getTopLevelContainer, getTopParent, getViewAndAllChildren, getWindowObj, getZoom, isFrameArrayMember, isStopRequested, isSyntheticName, isTopLevel, iterate, removeOnloadBlocker, removePilot, removePilotComponent, removeProperty, removePropertyChangeListener, scheduleValidate, setBaseUrl, setContainer, setFrameArrayMember, setGuiParams, setLocationUrl, setName, setProperty, setZoom, toString, viewportLayout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

dispose

public void dispose()
Specified by:
dispose in interface ObjectPainter
Overrides:
dispose in class Viewport

setForeground

public void setForeground(Color c)
Specified by:
setForeground in interface ObjectPainter

setBackground

public void setBackground(Color c)
Specified by:
setBackground in interface ObjectPainter

setBorderVisible

public void setBorderVisible(boolean aDrawBorder)
Description copied from interface: ObjectPainter
Allows CSS control over whether the object implementing ObjectPainter draws its own border.

Specified by:
setBorderVisible in interface ObjectPainter
Parameters:
aDrawBorder - false if the underlying widget is NOT to draw its own border.

setFontHints

public void setFontHints(CSSAttribs css)
Description copied from interface: ObjectPainter
Allow the ObjectBox to instruct the FormWidgets about the initial font to use. This method is called at a time when the CSSAttribs object is valid, yet only once on layout.

Specified by:
setFontHints in interface ObjectPainter

setBox

public void setBox(ObjectBox box)
Specified by:
setBox in interface ObjectPainter

getBox

public ObjectBox getBox()
Specified by:
getBox in interface ObjectPainter

setPainterSize

public void setPainterSize(int w,
                           int h)
Specified by:
setPainterSize in interface ObjectPainter

getPrefWidth

public int getPrefWidth()
Specified by:
getPrefWidth in interface ObjectPainter

getPrefHeight

public int getPrefHeight()
Specified by:
getPrefHeight in interface ObjectPainter

draw

public void draw(Graphics g)
Specified by:
draw in interface ObjectPainter

setPilot

public void setPilot(Pilot p)
Overrides:
setPilot in class Viewport

getContainer

public Container getContainer()
Retrieve the container that contains this object.

Overrides:
getContainer in class Viewport
Returns:
The container containing this object

onElementAttrChange

public void onElementAttrChange(DElement elem,
                                DAttr attr)
Specified by:
onElementAttrChange in interface ObjectPainter

getClientWidth

public int getClientWidth()
Description copied from interface: ObjectPainter
Retrieve the width of the client area within the painter. For widgets that support this capability, this method will return the width of the client area of the widget. For ScrollPanes, this will be the width of the visible area, minus the vertical scroll bar width, for AWT components, this will be some hack value approximating same, since the scroll components are not separately available.

Specified by:
getClientWidth in interface ObjectPainter
Returns:
The visible client width in pixels

getClientHeight

public int getClientHeight()
Description copied from interface: ObjectPainter
Retrieve the height of the client area within the painter. For widgets that support this capability, this method will return the height of the client area of the widget. For ScrollPanes, this will be the height of the visible area, minus the horizontal scroll bar thickness, for AWT components, this will be some hack value approximating same, since the scroll components are not separately available.

Specified by:
getClientHeight in interface ObjectPainter
Returns:
The visible client height in pixels