Java Doc for UIData.java in  » J2EE » myfaces-core-1.2.0 » javax » faces » component » 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 » myfaces core 1.2.0 » javax.faces.component 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.faces.component.UIComponent
      javax.faces.component.UIComponentBase
         javax.faces.component.UIData

All known Subclasses:   javax.faces.component.html.HtmlDataTable,
UIData
public class UIData extends UIComponentBase implements NamingContainer(Code)


Field Summary
final public static  StringCOMPONENT_FAMILY
    
final public static  StringCOMPONENT_TYPE
    

Constructor Summary
public  UIData()
     Construct an instance of the UIData.

Method Summary
public  voidbroadcast(FacesEvent event)
     Ensure that before the event's listeners are invoked this UIData component's "current row" is set to the row associated with the event.
public  voidencodeBegin(FacesContext context)
     Perform necessary actions when rendering of this component starts, before delegating to the inherited implementation which calls the associated renderer's encodeBegin method.
public  voidencodeEnd(FacesContext context)
    
public  StringgetClientId(FacesContext context)
    
protected  DataModelgetDataModel()
     Return the datamodel for this table, potentially fetching the data from a backing bean via a value-binding if this is the first time this method has been called.

This is complicated by the fact that this table may be nested within another table.

public  StringgetFamily()
    
public  intgetFirst()
     Gets The index of the first row to be displayed, where 0 is the first row.
public  UIComponentgetFooter()
    
public  UIComponentgetHeader()
    
public  intgetRowCount()
    
public  ObjectgetRowData()
    
public  intgetRowIndex()
    
public  intgetRows()
     Gets The number of rows to be displayed.
public  ObjectgetValue()
     Gets An EL expression that specifies the data model that backs this table.
public  StringgetVar()
     Gets Defines the name of the request-scope variable that will hold the current row during iteration.
public  booleaninvokeOnComponent(FacesContext context, String clientId, ContextCallback callback)
    
public  booleanisRowAvailable()
    
public  voidprocessDecodes(FacesContext context)
    
public  voidprocessUpdates(FacesContext context)
    
public  voidprocessValidators(FacesContext context)
    
public  voidqueueEvent(FacesEvent event)
     Modify events queued for any child components so that the UIData state will be correctly configured before the event's listeners are executed.

Child components or their renderers may register events against those child components.

public  voidrestoreState(FacesContext facesContext, Object state)
    
public  ObjectsaveState(FacesContext facesContext)
    
protected  voidsetDataModel(DataModel dataModel)
    
public  voidsetFirst(int first)
     Set the index of the first row to be displayed, where 0 is the first row.
public  voidsetFooter(UIComponent footer)
    
public  voidsetHeader(UIComponent header)
    
public  voidsetRowIndex(int rowIndex)
     Set the current row index that methods like getRowData use.
public  voidsetRows(int rows)
     Set the maximum number of rows displayed in the table.
public  voidsetValue(Object value)
    
public  voidsetValueExpression(String name, ValueExpression binding)
    
public  voidsetVar(String var)
     Sets Defines the name of the request-scope variable that will hold the current row during iteration.

Field Detail
COMPONENT_FAMILY
final public static String COMPONENT_FAMILY(Code)



COMPONENT_TYPE
final public static String COMPONENT_TYPE(Code)




Constructor Detail
UIData
public UIData()(Code)
Construct an instance of the UIData.




Method Detail
broadcast
public void broadcast(FacesEvent event) throws AbortProcessingException(Code)
Ensure that before the event's listeners are invoked this UIData component's "current row" is set to the row associated with the event.

See queueEvent for more details.




encodeBegin
public void encodeBegin(FacesContext context) throws IOException(Code)
Perform necessary actions when rendering of this component starts, before delegating to the inherited implementation which calls the associated renderer's encodeBegin method.



encodeEnd
public void encodeEnd(FacesContext context) throws IOException(Code)

See Also:   javax.faces.component.UIComponentBase.encodeEnd(javax.faces.context.FacesContext)



getClientId
public String getClientId(FacesContext context)(Code)



getDataModel
protected DataModel getDataModel()(Code)
Return the datamodel for this table, potentially fetching the data from a backing bean via a value-binding if this is the first time this method has been called.

This is complicated by the fact that this table may be nested within another table. In this case a different datamodel should be fetched for each row. When nested within a parent table, the parent reference won't change but parent.getClientId() will, as the suffix changes depending upon the current row index. A map object on this component is therefore used to cache the datamodel for each row of the table. In the normal case where this table is not nested inside a component that changes its id (like a table does) then this map only ever has one entry.




getFamily
public String getFamily()(Code)



getFirst
public int getFirst()(Code)
Gets The index of the first row to be displayed, where 0 is the first row. the new first value



getFooter
public UIComponent getFooter()(Code)



getHeader
public UIComponent getHeader()(Code)



getRowCount
public int getRowCount()(Code)



getRowData
public Object getRowData()(Code)



getRowIndex
public int getRowIndex()(Code)



getRows
public int getRows()(Code)
Gets The number of rows to be displayed. Specify zero for all remaining rows in the table. the new rows value



getValue
public Object getValue()(Code)
Gets An EL expression that specifies the data model that backs this table. The value can be of any type. A value of type DataModel is used directly. Array-like parameters of type java.util.List, array of Object, java.sql.ResultSet, or javax.servlet.jsp.jstl.sql.Result are wrapped in a DataModel. Other values are wrapped in a DataModel as a single row. the new value value



getVar
public String getVar()(Code)
Gets Defines the name of the request-scope variable that will hold the current row during iteration. This value must be a static value. the new var value



invokeOnComponent
public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException(Code)



isRowAvailable
public boolean isRowAvailable()(Code)



processDecodes
public void processDecodes(FacesContext context)(Code)



processUpdates
public void processUpdates(FacesContext context)(Code)



processValidators
public void processValidators(FacesContext context)(Code)



queueEvent
public void queueEvent(FacesEvent event)(Code)
Modify events queued for any child components so that the UIData state will be correctly configured before the event's listeners are executed.

Child components or their renderers may register events against those child components. When the listener for that event is eventually invoked, it may expect the uidata's rowData and rowIndex to be referring to the same object that caused the event to fire.

The original queueEvent call against the child component has been forwarded up the chain of ancestors in the standard way, making it possible here to wrap the event in a new event whose source is this component, not the original one. When the event finally is executed, this component's broadcast method is invoked, which ensures that the UIData is set to be at the correct row before executing the original event.




restoreState
public void restoreState(FacesContext facesContext, Object state)(Code)



saveState
public Object saveState(FacesContext facesContext)(Code)



setDataModel
protected void setDataModel(DataModel dataModel)(Code)



setFirst
public void setFirst(int first)(Code)
Set the index of the first row to be displayed, where 0 is the first row.



setFooter
public void setFooter(UIComponent footer)(Code)



setHeader
public void setHeader(UIComponent header)(Code)



setRowIndex
public void setRowIndex(int rowIndex)(Code)
Set the current row index that methods like getRowData use.

Param rowIndex can be -1, meaning "no row".


Parameters:
  rowIndex -




setRows
public void setRows(int rows)(Code)
Set the maximum number of rows displayed in the table.



setValue
public void setValue(Object value)(Code)



setValueExpression
public void setValueExpression(String name, ValueExpression binding)(Code)



setVar
public void setVar(String var)(Code)
Sets Defines the name of the request-scope variable that will hold the current row during iteration. This value must be a static value.
Parameters:
  var - the new var value



Methods inherited from javax.faces.component.UIComponentBase
protected void addFacesListener(FacesListener listener)(Code)(Java Doc)
public void broadcast(FacesEvent event) throws AbortProcessingException(Code)(Java Doc)
public void decode(FacesContext context)(Code)(Java Doc)
public void encodeBegin(FacesContext context) throws IOException(Code)(Java Doc)
public void encodeChildren(FacesContext context) throws IOException(Code)(Java Doc)
public void encodeEnd(FacesContext context) throws IOException(Code)(Java Doc)
public UIComponent findComponent(String expr)(Code)(Java Doc)
public Map<String, Object> getAttributes()(Code)(Java Doc)
public int getChildCount()(Code)(Java Doc)
public List<UIComponent> getChildren()(Code)(Java Doc)
public String getClientId(FacesContext context)(Code)(Java Doc)
T getExpressionValue(String attribute, T explizitValue, T defaultValueIfExpressionNull)(Code)(Java Doc)
protected FacesContext getFacesContext()(Code)(Java Doc)
protected FacesListener[] getFacesListeners(Class clazz)(Code)(Java Doc)
public UIComponent getFacet(String name)(Code)(Java Doc)
public int getFacetCount()(Code)(Java Doc)
public Map<String, UIComponent> getFacets()(Code)(Java Doc)
public Iterator<UIComponent> getFacetsAndChildren()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public UIComponent getParent()(Code)(Java Doc)
protected Renderer getRenderer(FacesContext context)(Code)(Java Doc)
public String getRendererType()(Code)(Java Doc)
public boolean getRendersChildren()(Code)(Java Doc)
public ValueBinding getValueBinding(String name)(Code)(Java Doc)
public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException(Code)(Java Doc)
public boolean isRendered()(Code)(Java Doc)
public boolean isTransient()(Code)(Java Doc)
public void processDecodes(FacesContext context)(Code)(Java Doc)
public void processRestoreState(FacesContext context, Object state)(Code)(Java Doc)
public Object processSaveState(FacesContext context)(Code)(Java Doc)
public void processUpdates(FacesContext context)(Code)(Java Doc)
public void processValidators(FacesContext context)(Code)(Java Doc)
public void queueEvent(FacesEvent event)(Code)(Java Doc)
protected void removeFacesListener(FacesListener listener)(Code)(Java Doc)
public static Object restoreAttachedState(FacesContext context, Object stateObj) throws IllegalStateException(Code)(Java Doc)
public void restoreState(FacesContext context, Object state)(Code)(Java Doc)
public static Object saveAttachedState(FacesContext context, Object attachedObject)(Code)(Java Doc)
public Object saveState(FacesContext context)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setParent(UIComponent parent)(Code)(Java Doc)
public void setRendered(boolean rendered)(Code)(Java Doc)
public void setRendererType(String rendererType)(Code)(Java Doc)
public void setTransient(boolean transientFlag)(Code)(Java Doc)
public void setValueBinding(String name, ValueBinding binding)(Code)(Java Doc)

Fields inherited from javax.faces.component.UIComponent
protected Map<String, ValueExpression> bindings(Code)(Java Doc)

Methods inherited from javax.faces.component.UIComponent
abstract protected void addFacesListener(javax.faces.event.FacesListener listener)(Code)(Java Doc)
abstract public void broadcast(javax.faces.event.FacesEvent event) throws AbortProcessingException(Code)(Java Doc)
abstract public void decode(javax.faces.context.FacesContext context)(Code)(Java Doc)
public void encodeAll(javax.faces.context.FacesContext context) throws java.io.IOException(Code)(Java Doc)
abstract public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException(Code)(Java Doc)
abstract public void encodeChildren(javax.faces.context.FacesContext context) throws java.io.IOException(Code)(Java Doc)
abstract public void encodeEnd(javax.faces.context.FacesContext context) throws java.io.IOException(Code)(Java Doc)
abstract public javax.faces.component.UIComponent findComponent(java.lang.String expr)(Code)(Java Doc)
abstract public java.util.Map<String, Object> getAttributes()(Code)(Java Doc)
abstract public int getChildCount()(Code)(Java Doc)
abstract public java.util.List<UIComponent> getChildren()(Code)(Java Doc)
abstract public java.lang.String getClientId(javax.faces.context.FacesContext context)(Code)(Java Doc)
public String getContainerClientId(FacesContext ctx)(Code)(Java Doc)
abstract protected javax.faces.context.FacesContext getFacesContext()(Code)(Java Doc)
abstract protected javax.faces.event.FacesListener[] getFacesListeners(java.lang.Class clazz)(Code)(Java Doc)
abstract public javax.faces.component.UIComponent getFacet(java.lang.String name)(Code)(Java Doc)
public int getFacetCount()(Code)(Java Doc)
abstract public java.util.Map<String, UIComponent> getFacets()(Code)(Java Doc)
abstract public java.util.Iterator<UIComponent> getFacetsAndChildren()(Code)(Java Doc)
abstract public java.lang.String getFamily()(Code)(Java Doc)
abstract public java.lang.String getId()(Code)(Java Doc)
abstract public javax.faces.component.UIComponent getParent()(Code)(Java Doc)
abstract protected javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext context)(Code)(Java Doc)
abstract public java.lang.String getRendererType()(Code)(Java Doc)
abstract public boolean getRendersChildren()(Code)(Java Doc)
abstract public javax.faces.el.ValueBinding getValueBinding(java.lang.String name)(Code)(Java Doc)
public ValueExpression getValueExpression(String name)(Code)(Java Doc)
public boolean invokeOnComponent(javax.faces.context.FacesContext context, String clientId, javax.faces.component.ContextCallback callback) throws javax.faces.FacesException(Code)(Java Doc)
abstract public boolean isRendered()(Code)(Java Doc)
abstract public void processDecodes(javax.faces.context.FacesContext context)(Code)(Java Doc)
abstract public void processRestoreState(javax.faces.context.FacesContext context, java.lang.Object state)(Code)(Java Doc)
abstract public java.lang.Object processSaveState(javax.faces.context.FacesContext context)(Code)(Java Doc)
abstract public void processUpdates(javax.faces.context.FacesContext context)(Code)(Java Doc)
abstract public void processValidators(javax.faces.context.FacesContext context)(Code)(Java Doc)
abstract public void queueEvent(javax.faces.event.FacesEvent event)(Code)(Java Doc)
abstract protected void removeFacesListener(javax.faces.event.FacesListener listener)(Code)(Java Doc)
abstract public void setId(java.lang.String id)(Code)(Java Doc)
abstract public void setParent(javax.faces.component.UIComponent parent)(Code)(Java Doc)
abstract public void setRendered(boolean rendered)(Code)(Java Doc)
abstract public void setRendererType(java.lang.String rendererType)(Code)(Java Doc)
abstract public void setValueBinding(java.lang.String name, javax.faces.el.ValueBinding binding)(Code)(Java Doc)
public void setValueExpression(String name, ValueExpression expression)(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.