fi.hut.tml.xsmiles.csslayout.view
Class ComponentView

java.lang.Object
  extended byfi.hut.tml.xsmiles.csslayout.view.BaseView
      extended byfi.hut.tml.xsmiles.csslayout.view.ComponentView
All Implemented Interfaces:
View

public class ComponentView
extends BaseView

Author:
honkkis

Nested Class Summary
 
Nested classes inherited from class fi.hut.tml.xsmiles.csslayout.view.BaseView
BaseView.ViewDimensions
 
Field Summary
protected  VisualComponentService visual
           
 
Fields inherited from class fi.hut.tml.xsmiles.csslayout.view.BaseView
absoluteChildViews, absolutePosition, backImage, bgColor, border, childViews, closeFloat, dimensions, domElement, floatLeft, floatRight, hasRelativeHeight, hasRelativeWidth, parent, posX, posY, relativeChildViews, relativePosition, renderer, sizeRequirements, style, visible, zoom
 
Fields inherited from interface fi.hut.tml.xsmiles.csslayout.view.View
X_AXIS, Y_AXIS
 
Constructor Summary
ComponentView(CSSRenderer r, org.w3c.dom.Node node, VisualComponentService visComp, View parent)
          Creates a new instance of BlockView
 
Method Summary
 void doLayout()
          do the layout for this and its children
protected  java.awt.Container getContainer()
           
 void paint(java.awt.Graphics g)
          paints this view
 void setComponent()
           
 void setSizeRequirements()
           
 void viewRemoved()
          this method is called when a view is removed from the hierarchy.
 
Methods inherited from class fi.hut.tml.xsmiles.csslayout.view.BaseView
addAbsoluteChildView, addChildView, addRelativeChildView, addView, calculateIntersection, createChildView, createChildViews, createComponentView, createView, dump, findContainingBlock, getAbsolutePositionX, getAbsolutePositionY, getChildren, getChildView, getCSSRenderer, getDimensions, getDOMElement, getFirstChild, getMaximumSpan, getMinimumSpan, getParentView, getPreferredSpan, getRectangle, getSizeRequirements, getStyle, getText, getViewAtPoint, getViewHeight, getViewWidth, handleRelativeView, hasAbsoluteChildren, hasAbsolutePosition, hasRelativePosition, insertBefore, isInTable, isLeftFloated, isRightFloated, moveChildViews, moveView, notifyViewRemovedRecursively, paintBackground, paintBorder, removeChild, removeChildren, removeFromTree, repaint, repaintDocument, repaintDocument, repaintView, setAbsoluteCoordinates, setAbsolutePosition, setContentHeight, setContentWidth, setMaxContentSize, setParentView, setRelativePosition, setStyle, setViewHeight, setViewWidth, testValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visual

protected VisualComponentService visual
Constructor Detail

ComponentView

public ComponentView(CSSRenderer r,
                     org.w3c.dom.Node node,
                     VisualComponentService visComp,
                     View parent)
Creates a new instance of BlockView

Method Detail

getContainer

protected java.awt.Container getContainer()
Returns:
the container where this component should be added.

setComponent

public void setComponent()

doLayout

public void doLayout()
Description copied from interface: View
do the layout for this and its children

Specified by:
doLayout in interface View
Overrides:
doLayout in class BaseView

viewRemoved

public void viewRemoved()
Description copied from class: BaseView
this method is called when a view is removed from the hierarchy. for instance, components can then be removed from the containers

Specified by:
viewRemoved in interface View
Overrides:
viewRemoved in class BaseView

paint

public void paint(java.awt.Graphics g)
paints this view

Specified by:
paint in interface View
Overrides:
paint in class BaseView

setSizeRequirements

public void setSizeRequirements()
Specified by:
setSizeRequirements in interface View
Overrides:
setSizeRequirements in class BaseView


X-Smiles 1.2