Java Doc for Output.java in  » J2EE » Expresso » com » jcorporate » expresso » core » controller » 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 » J2EE » Expresso » com.jcorporate.expresso.core.controller 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jcorporate.expresso.core.controller.ControllerElement
      com.jcorporate.expresso.core.controller.Output

Output
public class Output extends ControllerElement implements Cloneable,Cacheable,java.io.Serializable(Code)
An item returned from a controller to provide output/feedback to the client.
An Output object is one of the three types of object that can be returned by a Controller moving to a new state. The other two are Input and Action items.
An Output item can be a single item, or a list of items, using the "nested" methods in the ControllerElement class.



Constructor Summary
public  Output()
    
public  Output(String c)
    
public  Output(String name, String c)
    

Method Summary
public  voidaddNested(Output o)
    
public  voidclearUsedCount()
    
public  Objectclone()
    
public static  ControllerElementfromXML(Node n)
    
public  StringgetAlignment()
    
public  StringgetContent()
    
public  StringgetDefaultValue()
    
public  StringgetKey()
    
public  StringgetStyle()
    
public  longgetUsedCount()
    
public  booleanhasNested(String nestedName)
    
public synchronized  voidincrementUsedCount()
    
public synchronized  voidsetAlignment(String newAlignment)
    
public synchronized  voidsetContent(String newContent)
    
public synchronized  voidsetDefaultValue(String newContent)
    
public synchronized  voidsetKey(String newKey)
    
public synchronized  voidsetStyle(String newStyle)
    
public  FastStringBuffertoXML(FastStringBuffer stream)
     Concert the object to an xml fragment.


Constructor Detail
Output
public Output()(Code)
Default constructor



Output
public Output(String c)(Code)
Convenience constructor for creating an output with a specific string as it's contents in one step
Parameters:
  c - The string contents of this Output item



Output
public Output(String name, String c)(Code)
Convenience constructor for creating an output with a specific string as it's contents and a name in one step
Parameters:
  name - The name of this new Output item
Parameters:
  c - The string contents of the Output item




Method Detail
addNested
public void addNested(Output o)(Code)
Add a new nested output item to this item
Parameters:
  o - The new Output item to be nested into this one



clearUsedCount
public void clearUsedCount()(Code)
Clears the used count



clone
public Object clone() throws CloneNotSupportedException(Code)
Deep copy clone the object Copy of this current output



fromXML
public static ControllerElement fromXML(Node n) throws ControllerException(Code)
Return a controller element based upon the xml fragment
Parameters:
  n - a DOM node a built ControllerElement
throws:
  ControllerException - if the nodes do not match what we expect



getAlignment
public String getAlignment()(Code)
Get the suggested alignment for this item The suggested alignment for this Output item



getContent
public String getContent()(Code)
Get the "contents" of this Output, the string value that this Output object represents A String value for the contents of this Output



getDefaultValue
public String getDefaultValue()(Code)
Return contents; convenience method to unify Input/Output method names A String content



getKey
public String getKey()(Code)
Get the name of this output element the key of the output Element



getStyle
public String getStyle()(Code)
/** Return the suggested "style" for displaying this Output item A "style" string as suggested by the Controller



getUsedCount
public long getUsedCount()(Code)
the number of times this output has been used



hasNested
public boolean hasNested(String nestedName) throws ControllerException(Code)
Does this output have a nested item with the given name?
Parameters:
  nestedName - The name to check against true if there is such an element, else false
throws:
  ControllerException - upon error



incrementUsedCount
public synchronized void incrementUsedCount()(Code)



setAlignment
public synchronized void setAlignment(String newAlignment)(Code)
Method used by the Controller to specify a suggested alignment for this Output item
Parameters:
  newAlignment - A String suggesting an alignment to the clientwhen displaying this Output item



setContent
public synchronized void setContent(String newContent)(Code)
Used by the Controller to specify the contents string of this Output
Parameters:
  newContent - The new contents string



setDefaultValue
public synchronized void setDefaultValue(String newContent)(Code)
set contents; convenience method to unify Input/Output method names
Parameters:
  newContent - The new contents string



setKey
public synchronized void setKey(String newKey)(Code)

Parameters:
  newKey - The new Key for the output



setStyle
public synchronized void setStyle(String newStyle)(Code)
Used by the Controller to set a suggested "style" for displaying this Output item
Parameters:
  newStyle - The new "style" to set for this output object



toXML
public FastStringBuffer toXML(FastStringBuffer stream)(Code)
Concert the object to an xml fragment.
Parameters:
  stream - The fastStringBuffer to append to a FastStingBuffer object that represents this output in anxml fragment



Methods inherited from com.jcorporate.expresso.core.controller.ControllerElement
public void addNested(ControllerElement e)(Code)(Java Doc)
public Vector allNested()(Code)(Java Doc)
public Object clone() throws java.lang.CloneNotSupportedException(Code)(Java Doc)
public static ControllerElement fromXML(Node n) throws ControllerException(Code)(Java Doc)
protected static ControllerElement fromXML(Node n, ControllerElement ce) throws ControllerException(Code)(Java Doc)
public String getAttribute(String att)(Code)(Java Doc)
public HashMap getAttributes()(Code)(Java Doc)
public HashMap getAttributesOrNull()(Code)(Java Doc)
public ControllerElement getContent(String name)(Code)(Java Doc)
public Vector getContents()(Code)(Java Doc)
protected ControllerResponse getControllerResponse()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public int getDisplayLength()(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public int getLines()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public Vector getNested()(Code)(Java Doc)
public ControllerElement getNested(String nestedName) throws ControllerException(Code)(Java Doc)
public int getNestedCount()(Code)(Java Doc)
public Iterator getNestedIterator()(Code)(Java Doc)
public Map getNestedMap()(Code)(Java Doc)
public Vector getNestedOrNull()(Code)(Java Doc)
public ControllerElement getParent()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
public String getType()(Code)(Java Doc)
public void remove() throws ControllerException(Code)(Java Doc)
public void removeNested(ControllerElement elementToRemove) throws ControllerException(Code)(Java Doc)
public void setAttribute(String attrib, String val)(Code)(Java Doc)
public synchronized void setControllerResponse(ControllerResponse newResponse)(Code)(Java Doc)
public void setDescription(String newDescription)(Code)(Java Doc)
public void setDisplayLength(int newLength)(Code)(Java Doc)
public void setLabel(String newLabel)(Code)(Java Doc)
public void setLines(int newLines)(Code)(Java Doc)
public void setName(String newName)(Code)(Java Doc)
public void setParent(ControllerElement t)(Code)(Java Doc)
public void setType(String s)(Code)(Java Doc)
public FastStringBuffer toXML(FastStringBuffer stream)(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.