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

Block
public class Block extends ControllerElement implements Cloneable,Serializable(Code)
A Block is a logical grouping of Expresso Controller Elements used for nesting.

Recognized Types:

The following types are recognized by the expresso framework and automatically rendered: You may add your own types or ignore them if you are doing your own page rendering.

header-row: Renders each subobject in it's own cell with the appropriate jc-header class Make the cells pipe-delimited strings

row: Renders all subobjects in one row

borderWidth: Renders the table width a paricular border.

default behavior: Render as a table/nested table.


author:
   Shash Chatterjee



Constructor Summary
public  Block()
     Instantiation Constructor.
public  Block(String newName)
     Convenience constructor - to make a new Block object with a specific name.

Method Summary
public  voidadd(ControllerElement element)
    
public  Objectclone()
    
public static  ControllerElementfromXML(Node n)
    
public  BlockgetBlock(String blockName)
     Retrieve a newsted Block by name.
public  VectorgetBlocks()
    
public  StringgetFormEncoding()
    
public  StringgetFormMethod()
    
public  TransitiongetFormTransition()
    
public  InputgetInput(String inputName)
     Retrieve a nested input by name.
public  VectorgetInputs()
    
public  MapgetNamedBlocks()
    
public  MapgetNamedInputs()
    
public  MapgetNamedOutputs()
    
public  MapgetNamedTransitions()
    
public  intgetNumContents()
    
public  OutputgetOutput(String outputName)
     Retrieve a nested output by name.
public  VectorgetOutputs()
    
public  TransitiongetTransition(String transitionName)
     Retrieve a nested transition by name.
public  VectorgetTransitions()
    
public  booleanisForm()
    
public  voidremoveNested(ControllerElement elementToRemove)
    
public  voidsetForm(String isForm)
     Set whether this form is true or not.
public  voidsetFormEncoding(String encoding)
    
public  voidsetFormMethod(String method)
     Set the form method.
public  voidsetFormTransition(Transition a)
    
protected  FastStringBuffertoNestedXML(FastStringBuffer stream, String blockLabel, Vector elements)
    
public  FastStringBuffertoXML(FastStringBuffer stream)
     Concert the object to an xml fragment.
Parameters:
  stream - an instantiated FastStringBuffer to which we are supposedto append to.


Constructor Detail
Block
public Block()(Code)
Instantiation Constructor. Normally not called



Block
public Block(String newName)(Code)
Convenience constructor - to make a new Block object with a specific name.
Parameters:
  newName - The new name of the block




Method Detail
add
public void add(ControllerElement element)(Code)
Add an element to this Block
Parameters:
  element - an element to be added



clone
public Object clone() throws CloneNotSupportedException(Code)
Generate a copy of this current Block an instantiated Block onbject



fromXML
public static ControllerElement fromXML(Node n) throws ControllerException(Code)
Return a controller element based upon the xml fragment
Parameters:
  n - a DOM Node that we extract the internal elements an instantiated ControllerElement [specifically a block]
throws:
  ControllerException - if unable to build itself from the DOM node



getBlock
public Block getBlock(String blockName)(Code)
Retrieve a newsted Block by name. Note that for this to work correctly, all added items in the block MUST have unique names. otherwise, you may get ClassCastExceptions
Parameters:
  blockName - the name of the block to retrieve Block or null if the subBlock doesn't exit



getBlocks
public Vector getBlocks()(Code)
Retrieve a list of blocks contained within this Block java.util.Vector



getFormEncoding
public String getFormEncoding()(Code)
Retrieve the form encoding attribute of this block java.lang.String or null



getFormMethod
public String getFormMethod()(Code)
Get the form method whether GET or POST java.lang.String either GET or POST



getFormTransition
public Transition getFormTransition()(Code)
Get the Form Transition com.jcorporate.expresso.core.controller.Transition



getInput
public Input getInput(String inputName)(Code)
Retrieve a nested input by name. Note that for this to work correctly, all added items in the block MUST have unique names. otherwise, you may get ClassCastExceptions
Parameters:
  inputName - the name of the block to retrieve Input or null if the sub input doesn't exit



getInputs
public Vector getInputs()(Code)
Get the nested Inputs java.util.Vector of Inputs



getNamedBlocks
public Map getNamedBlocks()(Code)
Retrieve the Blocks as a map so that JSTL can cope with navigating the ControllerResponse through a named fashion java.util.Map map of blocks which have been added



getNamedInputs
public Map getNamedInputs()(Code)
Retrieve the inputs as a map so that JSTL can cope with navigating the ControllerResponse through a named fashion java.util.Map map of inputs which have been added



getNamedOutputs
public Map getNamedOutputs()(Code)
Retrieve the outputs as a map so that JSTL can cope with navigating the ControllerResponse through a named fashion java.util.Map map of outputs which have been added



getNamedTransitions
public Map getNamedTransitions()(Code)
Retrieve the transitions as a map so that JSTL can cope with navigating the ControllerResponse through a named fashion java.util.Map map of transitions which have been added



getNumContents
public int getNumContents()(Code)
Get the number of elements contained within the nested block integer describing the size of the nested contents



getOutput
public Output getOutput(String outputName)(Code)
Retrieve a nested output by name. Note that for this to work correctly, all added items in the block MUST have unique names. otherwise, you may get ClassCastExceptions
Parameters:
  outputName - the name of the block to retrieve Output or null if the sub output doesn't exit



getOutputs
public Vector getOutputs()(Code)
Retrieve a list of Outputs nested wtihin this block java.util.Vector of nested Outputs



getTransition
public Transition getTransition(String transitionName)(Code)
Retrieve a nested transition by name. Note that for this to work correctly, all added items in the block MUST have unique names. otherwise, you may get ClassCastExceptions
Parameters:
  transitionName - the name of the block to retrieve Transition or null if the sub Transition doesn't exit



getTransitions
public Vector getTransitions()(Code)
Retrieve a list of Transitions nested wtihin this block java.util.Vector of nested Transitions



isForm
public boolean isForm()(Code)
Return true if the form attribute for this block has been set boolean true if the attribute form has been set to true for this block



removeNested
public void removeNested(ControllerElement elementToRemove) throws ControllerException(Code)
Remove an element from the nested elements for this item
Parameters:
  elementToRemove - The element to be removed from the list ofnested items.
throws:
  ControllerException - if there is no such item nested in this item



setForm
public void setForm(String isForm) throws ControllerException(Code)
Set whether this form is true or not.
Parameters:
  isForm - either 'true' or 'false' (lower case)
throws:
  ControllerException - if the methods are invalid



setFormEncoding
public void setFormEncoding(String encoding) throws ControllerException(Code)
Set the encoding attribute for the block form
Parameters:
  encoding - java.lang.String
throws:
  ControllerException - if the attribute is unable to be thrown



setFormMethod
public void setFormMethod(String method) throws ControllerException(Code)
Set the form method.
Parameters:
  method - The string get or post (lower case)
throws:
  ControllerException - upon invalid argument



setFormTransition
public void setFormTransition(Transition a) throws ControllerException(Code)
Sets the form transition
Parameters:
  a - a Transition that is the equiv of the 'submit' button on theform.
throws:
  ControllerException - if the transition is null



toNestedXML
protected FastStringBuffer toNestedXML(FastStringBuffer stream, String blockLabel, Vector elements)(Code)



toXML
public FastStringBuffer toXML(FastStringBuffer stream)(Code)
Concert the object to an xml fragment.
Parameters:
  stream - an instantiated FastStringBuffer to which we are supposedto append to. a fleshed out FastStringBuffer (usually the stream parameter)



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.