Java Doc for Field.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.Field

All known Subclasses:   org.dspace.app.xmlui.wing.element.TextArea,  org.dspace.app.xmlui.wing.element.Select,  org.dspace.app.xmlui.wing.element.Text,  org.dspace.app.xmlui.wing.element.CheckBox,  org.dspace.app.xmlui.wing.element.File,  org.dspace.app.xmlui.wing.element.Password,  org.dspace.app.xmlui.wing.element.Radio,  org.dspace.app.xmlui.wing.element.Hidden,  org.dspace.app.xmlui.wing.element.Button,  org.dspace.app.xmlui.wing.element.Composite,
Field
abstract public class Field extends AbstractWingElement implements StructuralElement(Code)


Field Summary
final public static  StringA_DISABLED
    
final public static  StringA_FIELD_TYPE
    
final public static  StringA_REQUIRED
    
final public static  StringE_FIELD
    
final public static  String[]OPERATIONS
    
final public static  StringOPERATION_ADD
    
final public static  StringOPERATION_DELETE
    
final public static  String[]TYPES
     All the possible field types collected into one array.
final public static  StringTYPE_BUTTON
    
final public static  StringTYPE_CHECKBOX
    
final public static  StringTYPE_COMPOSITE
    
final public static  StringTYPE_FILE
    
final public static  StringTYPE_HIDDEN
    
final public static  StringTYPE_PASSWORD
    
final public static  StringTYPE_RADIO
    
final public static  StringTYPE_SELECT
    
final public static  StringTYPE_TEXT
    
final public static  StringTYPE_TEXTAREA
    
protected  booleandisabled
    
protected  List<Error>errors
    
protected  List<Field>fields
    
protected  Helphelp
    
protected  List<Instance>instances
    
protected  Labellabel
    
protected  Stringname
    
protected  List<Option>options
    
protected  Paramsparams
    
protected  Stringrend
    
protected  booleanrequired
    
protected  Stringtype
    
protected  List<Value>values
    

Constructor Summary
protected  Field(WingContext context, String name, String type, String rend)
     Construct a new field.

Method Summary
public  ErroraddError()
     The error elements denotes that the fields value is invalid for the given context.
public  voidaddError(String characters)
     The error elements denotes that the fields value is invalid for the given context.
public  voidaddError(Message message)
     The error elements denotes that the fields value is invalid for the given context.
public  voiddispose()
    
protected  voidremoveValueOfType(String removeType)
     Private function to remove all values of a particular type.
public  voidsetDisabled()
     Set this field to be disabled.
public  voidsetDisabled(boolean disabled)
     Set this field to either be disabled or enabled as determined by the disabled parameter.
public  HelpsetHelp()
     The help element provides help instructions to assist the user in using this field.
public  voidsetHelp(String characters)
     The help element provides help instructions to assist the user in using this field.
public  voidsetHelp(Message message)
     The help element provides help instructions to assist the user in using this field.
public  LabelsetLabel()
     The help element provides help instructions to assist the user in using this field.
public  voidsetLabel(String characters)
     The help element provides help instructions to assist the user in using this field.
public  voidsetLabel(Message message)
     The help element provides help instructions to assist the user in using this field.
public  voidsetRequired()
     Set this field as required.
public  voidsetRequired(boolean required)
     Set this field to either be required or not required as determined by the required parameter.
public  voidtoSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces)
     Translate this element and all contained elements into SAX events.

Field Detail
A_DISABLED
final public static String A_DISABLED(Code)
The name of the disabled attribute



A_FIELD_TYPE
final public static String A_FIELD_TYPE(Code)
The name of the field type attribute



A_REQUIRED
final public static String A_REQUIRED(Code)
The name of the required attribute



E_FIELD
final public static String E_FIELD(Code)
The name of the field element



OPERATIONS
final public static String[] OPERATIONS(Code)



OPERATION_ADD
final public static String OPERATION_ADD(Code)
Possible field behavioral operations



OPERATION_DELETE
final public static String OPERATION_DELETE(Code)



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



TYPE_BUTTON
final public static String TYPE_BUTTON(Code)
The possible field types



TYPE_CHECKBOX
final public static String TYPE_CHECKBOX(Code)



TYPE_COMPOSITE
final public static String TYPE_COMPOSITE(Code)



TYPE_FILE
final public static String TYPE_FILE(Code)



TYPE_HIDDEN
final public static String TYPE_HIDDEN(Code)



TYPE_PASSWORD
final public static String TYPE_PASSWORD(Code)



TYPE_RADIO
final public static String TYPE_RADIO(Code)



TYPE_SELECT
final public static String TYPE_SELECT(Code)



TYPE_TEXT
final public static String TYPE_TEXT(Code)



TYPE_TEXTAREA
final public static String TYPE_TEXTAREA(Code)



disabled
protected boolean disabled(Code)
Weather this field is disabled



errors
protected List<Error> errors(Code)
Error instructions for this field



fields
protected List<Field> fields(Code)
All sub fields contained within a composite field



help
protected Help help(Code)
Help instructions for this field



instances
protected List<Instance> instances(Code)
The set of stored values



label
protected Label label(Code)
The fields Label



name
protected String name(Code)
The field's name



options
protected List<Option> options(Code)
The value of this field



params
protected Params params(Code)
Additional field parameters



rend
protected String rend(Code)
Any special rendering instructions



required
protected boolean required(Code)
Weather this field is required



type
protected String type(Code)
The type of field, see TYPES above



values
protected List<Value> values(Code)
The value of this field




Constructor Detail
Field
protected Field(WingContext context, String name, String type, String rend) throws WingException(Code)
Construct a new field.
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 non-unique local identifier used to differentiatethe element from its siblings within an interactive division.This is the name of the field use when data is submitted backto the server.
Parameters:
  type - (Required) Specify the type of field, must be one of the fieldtypes defined in the static variable TYPES.
Parameters:
  rend - (May be null) a rendering hint used to override the defaultdisplay of the element.




Method Detail
addError
public Error addError() throws WingException(Code)
The error elements denotes that the fields value is invalid for the given context. The message contained within the error message will provide assistance to the user in correcting the problem.



addError
public void addError(String characters) throws WingException(Code)
The error elements denotes that the fields value is invalid for the given context. The message contained within the error message will provide assistance to the user in correcting the problem.
Parameters:
  characters - (May be null) Direct content or a dictionary tag to beinserted into the element.



addError
public void addError(Message message) throws WingException(Code)
The error elements denotes that the fields value is invalid for the given context. The message contained within the error message will provide assistance to the user in correcting the problem.
Parameters:
  message - (Required) A key into the i18n catalogue for translation intothe user's preferred language.



dispose
public void dispose()(Code)
Dispose



removeValueOfType
protected void removeValueOfType(String removeType)(Code)
Private function to remove all values of a particular type.
Parameters:
  removeType - The type to be removed.



setDisabled
public void setDisabled()(Code)
Set this field to be disabled.



setDisabled
public void setDisabled(boolean disabled)(Code)
Set this field to either be disabled or enabled as determined by the disabled parameter.
Parameters:
  disabled - Determine if the field is required or not.



setHelp
public Help setHelp() throws WingException(Code)
The help element provides help instructions to assist the user in using this field.



setHelp
public void setHelp(String characters) throws WingException(Code)
The help element provides help instructions to assist the user in using this field.
Parameters:
  characters - (May be null) Direct content or a dictionary tag to beinserted into the element.



setHelp
public void setHelp(Message message) throws WingException(Code)
The help element provides help instructions to assist the user in using this field.
Parameters:
  message - (Required) A key into the i18n catalogue for translation intothe user's preferred language.



setLabel
public Label setLabel() throws WingException(Code)
The help element provides help instructions to assist the user in using this field.



setLabel
public void setLabel(String characters) throws WingException(Code)
The help element provides help instructions to assist the user in using this field.
Parameters:
  characters - (May be null) Direct content or a dictionary tag to beinserted into the element.



setLabel
public void setLabel(Message message) throws WingException(Code)
The help element provides help instructions to assist the user in using this field.
Parameters:
  message - (Required) A key into the i18n catalogue for translation intothe user's preferred language.



setRequired
public void setRequired()(Code)
Set this field as required.



setRequired
public void setRequired(boolean required)(Code)
Set this field to either be required or not required as determined by the required parameter.
Parameters:
  requeired - Determine if the field is required or not.



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.