net.sf.tacos.ajax.components
Class FloatingPane

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.FloatingPane
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

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

Implementation of dojo's FloatingPane

Author:
Felix Sun, Andreas Andreou

Constructor Summary
FloatingPane()
           
 
Method Summary
abstract  boolean getConstrainToContainer()
          Should contrain to container
 int getContentHeight()
          Calculate the content height
abstract  boolean getDisplayCloseAction()
          Should display close icon.
abstract  boolean getDisplayMaximizeAction()
          Should display maximize icon.
abstract  boolean getDisplayMinimizeAction()
          Should display minimize icon.
abstract  boolean getHasShadow()
          Has Shadow
abstract  boolean getHasToolbar()
          Has Tool bar
abstract  org.apache.tapestry.IAsset getIcon()
          Window icon.
abstract  String getIdParameter()
          id
abstract  boolean getIsTaskBar()
          Is this pane a taskBar?
abstract  int getMinHeight()
          Min width of the FloatingPane
abstract  int getMinWidth()
          Min height of the FloatingPane
abstract  String getOptions()
          More js options - JSON style
abstract  boolean getPersistPosition()
          Should persist position (with cookies)
abstract  org.apache.tapestry.IScript getScript()
          injected script
abstract  String getStyle()
          style
abstract  Object getTaskBar()
          The taskBar this pane is connected to
 String getTaskBarId()
          Get the id of the connected taskBar
abstract  String getTitle()
          Title of the FloatingPane
abstract  String getToggle()
          toggle
abstract  boolean isResizable()
          Allow resize
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
 
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

FloatingPane

public FloatingPane()
Method Detail

getTitle

public abstract String getTitle()
Title of the FloatingPane


getMinWidth

public abstract int getMinWidth()
Min height of the FloatingPane


getMinHeight

public abstract int getMinHeight()
Min width of the FloatingPane


getHasShadow

public abstract boolean getHasShadow()
Has Shadow


getHasToolbar

public abstract boolean getHasToolbar()
Has Tool bar


isResizable

public abstract boolean isResizable()
Allow resize


getPersistPosition

public abstract boolean getPersistPosition()
Should persist position (with cookies)


getConstrainToContainer

public abstract boolean getConstrainToContainer()
Should contrain to container


getStyle

public abstract String getStyle()
style


getToggle

public abstract String getToggle()
toggle


getIdParameter

public abstract String getIdParameter()
id


getIcon

public abstract org.apache.tapestry.IAsset getIcon()
Window icon.


getDisplayCloseAction

public abstract boolean getDisplayCloseAction()
Should display close icon.


getDisplayMinimizeAction

public abstract boolean getDisplayMinimizeAction()
Should display minimize icon.


getDisplayMaximizeAction

public abstract boolean getDisplayMaximizeAction()
Should display maximize icon.


getTaskBar

public abstract Object getTaskBar()
The taskBar this pane is connected to


getIsTaskBar

public abstract boolean getIsTaskBar()
Is this pane a taskBar?


getOptions

public abstract String getOptions()
More js options - JSON style


getScript

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


getTaskBarId

public String getTaskBarId()
Get the id of the connected taskBar


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)

getContentHeight

public int getContentHeight()
Calculate the content height

Returns:
height