net.sf.tacos.ajax.components
Class FisheyeList

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by net.sf.tacos.ajax.components.FisheyeList
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

public abstract class FisheyeList
extends org.apache.tapestry.BaseComponent

Implementation of dojo's(contributed from cal at yahoo/flickr) Fisheye widget that provides zooming/clicking effects for a list of iconifiable items.

Author:
jkuhnert

Constructor Summary
FisheyeList()
           
 
Method Summary
abstract  String getAttachEdge()
          attach edge
abstract  int getBreakOn()
          Break list on specified index
abstract  double getEffectUnits()
          Effect units
abstract  int getItemHeight()
          Height of each list item
abstract  int getItemMaxHeight()
          Max height of each item
abstract  int getItemMaxWidth()
          Max width of each item
abstract  double getItemPadding()
          Padding space between each item
abstract  int getItemWidth()
          Width of each list item
abstract  String getLabelEdge()
          Label edge
abstract  String getOrientation()
          Orientation of list/horizontal or vertical
abstract  org.apache.tapestry.IScript getScript()
          java script
abstract  Object getSource()
          Source list
abstract  org.apache.tapestry.coerce.ValueConverter getValueConverter()
          injected
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
protected  void renderFisheye(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle, int currIndex, List fisheyeIds)
          Handles starting/ending the main outer fisheye widget div tags.
protected  void renderFisheyeAttributes(org.apache.tapestry.IMarkupWriter writer, List fisheyeIds)
          Renders the fisheye attributes
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

FisheyeList

public FisheyeList()
Method Detail

getItemWidth

public abstract int getItemWidth()
Width of each list item


getItemHeight

public abstract int getItemHeight()
Height of each list item


getItemMaxWidth

public abstract int getItemMaxWidth()
Max width of each item


getItemMaxHeight

public abstract int getItemMaxHeight()
Max height of each item


getOrientation

public abstract String getOrientation()
Orientation of list/horizontal or vertical


getEffectUnits

public abstract double getEffectUnits()
Effect units


getItemPadding

public abstract double getItemPadding()
Padding space between each item


getAttachEdge

public abstract String getAttachEdge()
attach edge


getLabelEdge

public abstract String getLabelEdge()
Label edge


getBreakOn

public abstract int getBreakOn()
Break list on specified index


getSource

public abstract Object getSource()
Source list


getValueConverter

public abstract org.apache.tapestry.coerce.ValueConverter getValueConverter()
injected


getScript

public abstract org.apache.tapestry.IScript getScript()
java script


renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)
Overrides:
renderComponent in class org.apache.tapestry.BaseComponent
See Also:
AbstractComponent.renderComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)

renderFisheye

protected void renderFisheye(org.apache.tapestry.IMarkupWriter writer,
                             org.apache.tapestry.IRequestCycle cycle,
                             int currIndex,
                             List fisheyeIds)
Handles starting/ending the main outer fisheye widget div tags. Also handles checking breakOnIndex parameter to enable multiple list renders.

Parameters:
writer -
cycle -
currIndex - Current index of list iterating on
fisheyeIds - List of unique element ids for each fisheye, will be appended to if current iteration requires creating a new fisheye.

renderFisheyeAttributes

protected void renderFisheyeAttributes(org.apache.tapestry.IMarkupWriter writer,
                                       List fisheyeIds)
Renders the fisheye attributes

Parameters:
writer -
fisheyeIds -