org.dspace.app.xmlui.wing.element
Class Trail

java.lang.Object
  extended by org.dspace.app.xmlui.wing.element.AbstractWingElement
      extended by org.dspace.app.xmlui.wing.element.Container
          extended by org.dspace.app.xmlui.wing.element.TextContainer
              extended by org.dspace.app.xmlui.wing.element.Trail
All Implemented Interfaces:
WingElement

public class Trail
extends TextContainer

This is a class representing a trail element. Trail elements carry information about the user's current location in the system relative to the repository's root page.

Author:
Scott Phillips

Field Summary
static String A_RENDER
          The name of the render attribute
static String A_TARGET
          The name of the target attribute
static String E_TRAIL
          The name of the trail element
 
Fields inherited from class org.dspace.app.xmlui.wing.element.Container
contents
 
Fields inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement
context
 
Constructor Summary
protected Trail(WingContext context, String target, String rend)
          Construct a new trail
 
Method Summary
 void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces)
          Translate into SAX events.
 
Methods inherited from class org.dspace.app.xmlui.wing.element.TextContainer
addContent, addContent, addContent
 
Methods inherited from class org.dspace.app.xmlui.wing.element.Container
dispose
 
Methods inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

E_TRAIL

public static final String E_TRAIL
The name of the trail element

See Also:
Constant Field Values

A_TARGET

public static final String A_TARGET
The name of the target attribute

See Also:
Constant Field Values

A_RENDER

public static final String A_RENDER
The name of the render attribute

See Also:
Constant Field Values
Constructor Detail

Trail

protected Trail(WingContext context,
                String target,
                String rend)
         throws WingException
Construct a new trail

Parameters:
target - (May be null) The trail's target
rend - (May be null) Special rendering instructions.
Throws:
WingException
Method Detail

toSAX

public void toSAX(ContentHandler contentHandler,
                  LexicalHandler lexicalHandler,
                  NamespaceSupport namespaces)
           throws SAXException
Translate into SAX events.

Specified by:
toSAX in interface WingElement
Overrides:
toSAX in class Container
Parameters:
contentHandler - (Required) The registered contentHandler where SAX events should be routed too.
lexicalHandler - (Required) The registered lexicalHandler where lexical events (such as CDATA, DTD, etc) should be routed too.
namespaces - (Required) SAX Helper class to keep track of namespaces able to determine the correct prefix for a given namespace URI.
Throws:
SAXException


Copyright © 2012 DuraSpace. All Rights Reserved.