|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.wing.element.AbstractWingElement
org.dspace.app.xmlui.wing.element.Options
public class Options
A class representing a set of navigational options.
| Field Summary | |
|---|---|
static String |
E_OPTIONS
The name of the options element |
| Fields inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
context |
| Constructor Summary | |
|---|---|
protected |
Options(WingContext context)
Generate a new Options framework element. |
| Method Summary | |
|---|---|
List |
addList(String name)
Add a new sublist to this item. |
List |
addList(String name,
String type,
String rend)
Add a new sublist to this item. |
void |
dispose()
dispose |
Attributes |
merge(Attributes attributes)
Inform the options element that it is being merged with an existing options element. |
WingMergeableElement |
mergeChild(String namespace,
String localName,
String qName,
Attributes attributes)
Find the sublist that this SAX event represents. |
boolean |
mergeEqual(String namespace,
String localName,
String qName,
Attributes attributes)
Return true if this SAX Event an options element? |
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events. |
| 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 |
|---|
public static final String E_OPTIONS
| Constructor Detail |
|---|
protected Options(WingContext context)
throws WingException
context - (Required) The context this element is contained in.
WingException| Method Detail |
|---|
public List addList(String name,
String type,
String rend)
throws WingException
name - (Required) a local identifier used to differentiate the
element from its siblings.type - (May be null) determines the list type. If this is blank the
list type is infered from the context and use.rend - (May be null) a rendering hint used to override the default
display of the element.
WingException
public List addList(String name)
throws WingException
name - (Required) a local identifier used to differentiate the
element from its siblings.
WingException
public boolean mergeEqual(String namespace,
String localName,
String qName,
Attributes attributes)
mergeEqual in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this elementqName - The qualified name for this elementattributes - The element's attributes
public WingMergeableElement mergeChild(String namespace,
String localName,
String qName,
Attributes attributes)
throws SAXException,
WingException
mergeChild in interface WingMergeableElementnamespace - The element's name spacelocalName - The local, unqualified, name for this element *qName - The qualified name for this elementattributes - The element's attributes
SAXException
WingException
public Attributes merge(Attributes attributes)
throws SAXException,
WingException
merge in interface WingMergeableElementSAXException
WingException
public void toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
NamespaceSupport namespaces)
throws SAXException
toSAX in interface WingElementcontentHandler - (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.
SAXExceptionpublic void dispose()
dispose in interface WingElementdispose in class AbstractWingElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||