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

java.lang.Object
  extended byfi.hut.tml.xsmiles.csslayout.view.BaseView
      extended byfi.hut.tml.xsmiles.csslayout.view.BlockView
          extended byfi.hut.tml.xsmiles.csslayout.view.ScrollBlockView
All Implemented Interfaces:
ContainerView, java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, ScrollView, View

public class ScrollBlockView
extends BlockView
implements ScrollView, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

Author:
honkkis

Nested Class Summary
 class ScrollBlockView.ContentComponent
           
 class ScrollBlockView.ContentContainer
           
 
Nested classes inherited from class fi.hut.tml.xsmiles.csslayout.view.BaseView
BaseView.ViewDimensions
 
Field Summary
protected  java.awt.Container container
           
protected  java.awt.Container content
           
protected  java.awt.Container midcontainer
           
protected  java.awt.Container scrollpane
           
 
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
ScrollBlockView(CSSRenderer r, org.w3c.dom.Node node, View parent)
          Creates a new instance of ScrollBlockView
 
Method Summary
protected  void createScrollPane()
           
 void doLayout()
          do, or redo layout for this and children
 java.awt.Container getContainerForDescendants()
           
 boolean hasContainer()
           
 void mouseClicked(java.awt.event.MouseEvent event)
           
 void mouseDragged(java.awt.event.MouseEvent arg0)
           
 void mouseEntered(java.awt.event.MouseEvent arg0)
           
 void mouseExited(java.awt.event.MouseEvent arg0)
           
 void mouseMoved(java.awt.event.MouseEvent event)
           
 void mousePressed(java.awt.event.MouseEvent arg0)
           
 void mouseReleased(java.awt.event.MouseEvent arg0)
           
 void paint(java.awt.Graphics g)
          paints this view
 void removeContainerFromView()
          remove the container from the view, for instance, when a parent view becomes invisible
 void viewRemoved()
          this method is called when a view is removed from the hierarchy.
 
Methods inherited from class fi.hut.tml.xsmiles.csslayout.view.BlockView
insideClip
 
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, setSizeRequirements, setStyle, setViewHeight, setViewWidth, testValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected java.awt.Container container

scrollpane

protected java.awt.Container scrollpane

midcontainer

protected java.awt.Container midcontainer

content

protected java.awt.Container content
Constructor Detail

ScrollBlockView

public ScrollBlockView(CSSRenderer r,
                       org.w3c.dom.Node node,
                       View parent)
Creates a new instance of ScrollBlockView

Method Detail

createScrollPane

protected void createScrollPane()

doLayout

public void doLayout()
do, or redo layout for this and children

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

paint

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

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

hasContainer

public boolean hasContainer()
Specified by:
hasContainer in interface ContainerView

getContainerForDescendants

public java.awt.Container getContainerForDescendants()
Specified by:
getContainerForDescendants in interface ContainerView

removeContainerFromView

public void removeContainerFromView()
Description copied from interface: ContainerView
remove the container from the view, for instance, when a parent view becomes invisible

Specified by:
removeContainerFromView in interface ContainerView

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

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent event)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent arg0)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent arg0)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent arg0)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent arg0)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent arg0)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent event)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener


X-Smiles 1.2