org.apache.tapestry.contrib.inspector
Class Inspector

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by org.apache.tapestry.AbstractPage
                  extended by org.apache.tapestry.html.BasePage
                      extended by org.apache.tapestry.contrib.inspector.Inspector
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, IComponent, IDirectEvent, Component, IPage, IRender, ITemplateComponent

public abstract class Inspector
extends BasePage

The Tapestry Inspector page.

Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
Inspector()
           
 
Method Summary
protected  void finishLoad()
          Invoked, as a convienience, from AbstractComponent.finishLoad(IRequestCycle, IPageLoader, IComponentSpecification).
 Block getBlockForView()
          Returns the Block for the currently selected view.
 IComponent getInspectedComponent()
          Returns the IComponent current inspected; this is determined from the inspectedPageName and inspectedIdPath properties.
abstract  String getInspectedIdPath()
           
 IPage getInspectedPage()
          Returns the IPage currently inspected by the Inspector, as determined from the inspectedPageName property.
abstract  String getInspectedPageName()
           
 String getInspectorTitle()
           
abstract  String getView()
           
 void inspect(String pageName, IRequestCycle cycle)
          Method invoked by the InspectorButton component, to begin inspecting a page.
 void selectComponent(IRequestCycle cycle)
          Listener for the component selection, which allows a particular component.
 void selectComponent(String idPath)
          Invoked to change the component being inspected within the current page.
abstract  void setInspectedIdPath(String value)
           
abstract  void setInspectedPageName(String value)
           
abstract  void setView(String value)
           
 
Methods inherited from class org.apache.tapestry.html.BasePage
getResponseContentType
 
Methods inherited from class org.apache.tapestry.AbstractPage
addPageAttachListener, addPageBeginRenderListener, addPageDetachListener, addPageEndRenderListener, addPageValidateListener, attach, beginPageRender, cleanupAfterRender, detach, endPageRender, firePageAttached, firePageBeginRender, firePageDetached, firePageEndRender, firePageValidate, getChangeObserver, getEngine, getExtendedId, getIdPath, getLocale, getNestedComponent, getOutputEncoding, getPageName, getRequestCycle, hasFormComponents, hasWidgets, removePageAttachListener, removePageBeginRenderListener, removePageDetachListener, removePageEndRenderListener, removePageValidateListener, renderPage, setChangeObserver, setHasFormComponents, setHasWidgets, setLocale, setPageName, validate
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, getContainedRenderers, getInnerRenderers, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, enterActiveState, equals, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getId, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IPage
getPropertyChangeObserver
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getId, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
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

Inspector

public Inspector()
Method Detail

finishLoad

protected void finishLoad()
Description copied from class: AbstractComponent
Invoked, as a convienience, from AbstractComponent.finishLoad(IRequestCycle, IPageLoader, IComponentSpecification). This implemenation does nothing. Subclasses may override without invoking this implementation.

Overrides:
finishLoad in class AbstractComponent

getView

public abstract String getView()

setView

public abstract void setView(String value)

getInspectedPageName

public abstract String getInspectedPageName()

setInspectedPageName

public abstract void setInspectedPageName(String value)

getInspectedIdPath

public abstract String getInspectedIdPath()

setInspectedIdPath

public abstract void setInspectedIdPath(String value)

selectComponent

public void selectComponent(String idPath)
Invoked to change the component being inspected within the current page.

Since:
1.0.6

inspect

public void inspect(String pageName,
                    IRequestCycle cycle)
Method invoked by the InspectorButton component, to begin inspecting a page.


selectComponent

public void selectComponent(IRequestCycle cycle)
Listener for the component selection, which allows a particular component.

The context is a single string, the id path of the component to be selected (or null to inspect the page itself). This invokes selectComponent(String).


getInspectedPage

public IPage getInspectedPage()
Returns the IPage currently inspected by the Inspector, as determined from the inspectedPageName property.


getInspectedComponent

public IComponent getInspectedComponent()
Returns the IComponent current inspected; this is determined from the inspectedPageName and inspectedIdPath properties.


getInspectorTitle

public String getInspectorTitle()

getBlockForView

public Block getBlockForView()
Returns the Block for the currently selected view.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.