Java Doc for List.java in  » Content-Management-System » dspace » org » dspace » app » xmlui » wing » element » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » dspace » org.dspace.app.xmlui.wing.element 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.dspace.app.xmlui.wing.element.AbstractWingElement
      org.dspace.app.xmlui.wing.element.List

List
public class List extends AbstractWingElement implements WingMergeableElement,StructuralElement(Code)


Field Summary
final public static  StringA_TYPE
    
final public static  StringE_LIST
    
final public static  String[]TYPES
    
final public static  StringTYPE_BULLETED
    
final public static  StringTYPE_FORM
    
final public static  StringTYPE_GLOSS
    
final public static  StringTYPE_ORDERED
    
final public static  StringTYPE_PROGRESS
    
final public static  StringTYPE_SIMPLE
    

Constructor Summary
protected  List(WingContext context, String name, String type, String rend)
     Construct a new list.
Parameters:
  context - (Required) The context this element is contained in, such aswhere to route SAX events and what i18n catalogue to use.
Parameters:
  name - (Required) a local identifier used to differentiate theelement from its siblings.
Parameters:
  type - (May be null) determines the list type.

Method Summary
public  ItemaddItem()
     Add an empty unnamed item.
public  ItemaddItem(String name, String rend)
     Add an item element, which serves a dual purpose.
public  voidaddItem(String characters)
     Add an item element that contains only character content.
public  voidaddItem(Message key)
     Add an item element that contains only translated content.
public  voidaddItemXref(String target, String characters)
     Add an item to the list that contains a link.
public  voidaddItemXref(String target, Message key)
     Add an item to the list that contains a link.
public  LabeladdLabel(String name, String rend)
     Add a label element, they are associated with an item and annotates that item with a number, a textual description of some sort, or a simple bullet.
public  voidaddLabel(String characters)
     Add a label element, they are associated with an item and annotates that item with a number, a textual description of some sort, or a simple bullet.
public  voidaddLabel()
     Add a label element, they are associated with an item and annotates that item with a number, a textual description of some sort, or a simple bullet.
public  voidaddLabel(Message key)
     Add a label element, they are associated with an item and annotates that item with a number, a textual description of some sort, or a simple bullet.
public  ListaddList(String name, String type, String rend)
     Add a new sublist to this list.
Parameters:
  name - (Required) a local identifier used to differentiate theelement from its siblings.
Parameters:
  type - (May be null) determines the list type.
public  ListaddList(String name, String type)
     Add a new sublist to this list.
Parameters:
  name - (Required) a local identifier used to differentiate theelement from its siblings.
Parameters:
  type - (May be null) determines the list type.
public  ListaddList(String name)
     Add a new sublist to this list.
Parameters:
  name - (Required) a local identifier used to differentiate theelement from its siblings.
public  voiddispose()
    
public  Attributesmerge(Attributes attributes)
     Inform this list that it is being merged with an existing element.
public  WingMergeableElementmergeChild(String namespace, String localName, String qName, Attributes attributes)
     Merge the given SAX startElement event into this list's child.
public  booleanmergeEqual(String namespace, String localName, String qName, Attributes attributes)
     Determine if the given SAX startElement event is equivalent to this list.
public  HeadsetHead()
     Set the head element which is the label associated with this list.
public  voidsetHead(String characters)
     Set the head element which is the label associated with this list.
public  voidsetHead(Message key)
     Set the head element which is the label associated with this list.
public  voidtoSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces)
     Translate this element and all contained elements into SAX events.

Field Detail
A_TYPE
final public static String A_TYPE(Code)
The name of the type attribute



E_LIST
final public static String E_LIST(Code)
The name of the list element



TYPES
final public static String[] TYPES(Code)
All the possible list types collected into one array



TYPE_BULLETED
final public static String TYPE_BULLETED(Code)



TYPE_FORM
final public static String TYPE_FORM(Code)



TYPE_GLOSS
final public static String TYPE_GLOSS(Code)



TYPE_ORDERED
final public static String TYPE_ORDERED(Code)



TYPE_PROGRESS
final public static String TYPE_PROGRESS(Code)



TYPE_SIMPLE
final public static String TYPE_SIMPLE(Code)
The possible list types *




Constructor Detail
List
protected List(WingContext context, String name, String type, String rend) throws WingException(Code)
Construct a new list.
Parameters:
  context - (Required) The context this element is contained in, such aswhere to route SAX events and what i18n catalogue to use.
Parameters:
  name - (Required) a local identifier used to differentiate theelement from its siblings.
Parameters:
  type - (May be null) determines the list type. If this is blank thelist type is inferred from the context and use.
Parameters:
  rend - (May be null) a rendering hint used to override the defaultdisplay of the element. There are a set of predefinedrendering values, see the class documentation above.




Method Detail
addItem
public Item addItem() throws WingException(Code)
Add an empty unnamed item. a new Item



addItem
public Item addItem(String name, String rend) throws WingException(Code)
Add an item element, which serves a dual purpose. It can contain other lists, allowing for hierarchies and recursive lists. Alternatively it can serve as a character container to display textual data, possibly enhanced with hyperlinks, emphasized blocks of text, images and form fields. An item cannot be both a character container and contain a list.
Parameters:
  name - (May be null) a local identifier used to differentiate theelement from its siblings.
Parameters:
  rend - (May be null) a rendering hint used to override the defaultdisplay of the element. * a new Item



addItem
public void addItem(String characters) throws WingException(Code)
Add an item element that contains only character content.
Parameters:
  characters - (Required) Untranslated character data to be included.



addItem
public void addItem(Message key) throws WingException(Code)
Add an item element that contains only translated content.
Parameters:
  key - (Required) Key to the i18n catalogue to translate the contentinto the language preferred by the user.



addItemXref
public void addItemXref(String target, String characters) throws WingException(Code)
Add an item to the list that contains a link. The link will consist of the given content and linked to the given target.
Parameters:
  target - (Required) The link target.
Parameters:
  characters - (Required) Untranslated character data to be included as thelink's body.



addItemXref
public void addItemXref(String target, Message key) throws WingException(Code)
Add an item to the list that contains a link. The link will consist of the given content and linked to the given target.
Parameters:
  target - (Required) The link target.
Parameters:
  key - (Required) i18n key for translating content into the user'spreferred language.



addLabel
public Label addLabel(String name, String rend) throws WingException(Code)
Add a label element, they are associated with an item and annotates that item with a number, a textual description of some sort, or a simple bullet.
Parameters:
  name - (May be null) a local identifier used to differentiate theelement from its siblings.
Parameters:
  rend - (May be null) a rendering hint used to override the defaultdisplay of the element.



addLabel
public void addLabel(String characters) throws WingException(Code)
Add a label element, they are associated with an item and annotates that item with a number, a textual description of some sort, or a simple bullet.
Parameters:
  characters - (Required) Untranslated character data to be included.



addLabel
public void addLabel() throws WingException(Code)
Add a label element, they are associated with an item and annotates that item with a number, a textual description of some sort, or a simple bullet. This version of label provides no textual label but may be used to indicate some implicit labeling such as ordered lists.



addLabel
public void addLabel(Message key) throws WingException(Code)
Add a label element, they are associated with an item and annotates that item with a number, a textual description of some sort, or a simple bullet.
Parameters:
  key - (Required) Key to the i18n catalogue to translate the contentinto the language preferred by the user.



addList
public List addList(String name, String type, String rend) throws WingException(Code)
Add a new sublist to this list.
Parameters:
  name - (Required) a local identifier used to differentiate theelement from its siblings.
Parameters:
  type - (May be null) determines the list type. If this is blank thelist type is inferred from the context and use.
Parameters:
  rend - (May be null) a rendering hint used to override the defaultdisplay of the element. A new sub list.



addList
public List addList(String name, String type) throws WingException(Code)
Add a new sublist to this list.
Parameters:
  name - (Required) a local identifier used to differentiate theelement from its siblings.
Parameters:
  type - (May be null) determines the list type. If this is blank thelist type is inferred from the context and use. A new sub list.



addList
public List addList(String name) throws WingException(Code)
Add a new sublist to this list.
Parameters:
  name - (Required) a local identifier used to differentiate theelement from its siblings. A new sub list.



dispose
public void dispose()(Code)
dispose



merge
public Attributes merge(Attributes attributes) throws SAXException, WingException(Code)
Inform this list that it is being merged with an existing element. Practically this means that when this method is being transformed to SAX it should assume that the element's SAX events have all ready been sent. In this case the element would only need to transform to SAX the children of this element. Further more if the element needs to add any attributes to the SAX startElement event it may modify the attributes object passed to make changes. The attributes for this merged element



mergeChild
public WingMergeableElement mergeChild(String namespace, String localName, String qName, Attributes attributes) throws SAXException, WingException(Code)
Merge the given SAX startElement event into this list's child. If this SAX event matches a child element of this list then it should be removed from the internal book keep of this element and returned. Typically this is accomplished by looping through all children elements and returned the first one that returns true for the mergeEqual method.
Parameters:
  namespace - The element's name space
Parameters:
  localName - The local, unqualified, name for this element *
Parameters:
  qName - The qualified name for this element
Parameters:
  attributes - The element's attributes The child element



mergeEqual
public boolean mergeEqual(String namespace, String localName, String qName, Attributes attributes)(Code)
Determine if the given SAX startElement event is equivalent to this list.
Parameters:
  namespace - The element's name space
Parameters:
  localName - The local, unqualified, name for this element
Parameters:
  qName - The qualified name for this element
Parameters:
  attributes - The element's attributes True if this list is equivalent to the given SAX Event.



setHead
public Head setHead() throws WingException(Code)
Set the head element which is the label associated with this list. This method should be called before any other elements have been added to the list.
Parameters:
  characters - (May be null) Untranslated character data to be included asthe list's head.



setHead
public void setHead(String characters) throws WingException(Code)
Set the head element which is the label associated with this list. This method should be called before any other elements have been added to the list.
Parameters:
  characters - (Required) Untranslated character data to be included as thelist's head.



setHead
public void setHead(Message key) throws WingException(Code)
Set the head element which is the label associated with this list. This method should be called before any other elements have been added to the list.
Parameters:
  key - (Required) Key to the i18n catalogue to translate the contentinto the language preferred by the user.



toSAX
public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws SAXException(Code)
Translate this element and all contained elements into SAX events. The events should be routed to the contentHandler found in the WingContext.
Parameters:
  contentHandler - (Required) The registered contentHandler where SAX eventsshould be routed too.
Parameters:
  lexicalHandler - (Required) The registered lexicalHandler where lexical events (such as CDATA, DTD, etc) should be routed too.
Parameters:
  namespaces - (Required) SAX Helper class to keep track of namespaces ableto determine the correct prefix for a given namespace URI.



Fields inherited from org.dspace.app.xmlui.wing.element.AbstractWingElement
protected WingContext context(Code)(Java Doc)

Methods inherited from org.dspace.app.xmlui.wing.element.AbstractWingElement
public void dispose()(Code)(Java Doc)
protected void endElement(ContentHandler contentHandler, NamespaceSupport namespaces, String name) throws SAXException(Code)(Java Doc)
protected void endElement(ContentHandler contentHandler, NamespaceSupport namespaces, Namespace namespace, String name) throws SAXException(Code)(Java Doc)
protected WingContext getWingContext()(Code)(Java Doc)
protected void greater(int parameter, int greater, String message) throws WingInvalidArgument(Code)(Java Doc)
protected void lesser(int parameter, int lesser, String message) throws WingInvalidArgument(Code)(Java Doc)
protected void require(String parameter, String message) throws WingInvalidArgument(Code)(Java Doc)
protected void require(Message parameter, String message) throws WingInvalidArgument(Code)(Java Doc)
protected void requireFalse(boolean test, String message) throws WingInvalidArgument(Code)(Java Doc)
protected void requireTrue(boolean test, String message) throws WingInvalidArgument(Code)(Java Doc)
protected void restrict(String parameter, String[] options, String message) throws WingInvalidArgument(Code)(Java Doc)
protected void sendCharacters(ContentHandler contentHandler, String characters) throws SAXException(Code)(Java Doc)
protected void setWingContext(WingContext context)(Code)(Java Doc)
protected void startElement(ContentHandler contentHandler, NamespaceSupport namespaces, String name, AttributeMap attributes) throws SAXException(Code)(Java Doc)
protected void startElement(ContentHandler contentHandler, NamespaceSupport namespaces, Namespace namespace, String name, AttributeMap attributes) throws SAXException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.