You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2006/02/27 10:08:28 UTC
svn commit: r381294 - in /myfaces/tomahawk/trunk/core/src/main:
java/org/apache/myfaces/component/html/ext/HtmlDataTable.java
tld/entities/extended_data_table_attributes.xml
Author: mmarinschek
Date: Mon Feb 27 01:08:27 2006
New Revision: 381294
URL: http://svn.apache.org/viewcvs?rev=381294&view=rev
Log:
fixed doc bugs, cleaned up HtmlDataTable (thanks to Claudio Tasso for this)
Modified:
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java
myfaces/tomahawk/trunk/core/src/main/tld/entities/extended_data_table_attributes.xml
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java?rev=381294&r1=381293&r2=381294&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java Mon Feb 27 01:08:27 2006
@@ -79,8 +79,6 @@
private boolean _isValidChildren = true;
private Set _expandedNodes = new HashSet();
-
- private UIColumn detailColumn;
public String getClientId(FacesContext context)
{
@@ -861,21 +859,11 @@
protected void setPreservedDataModel(_SerializableDataModel preservedDataModel) {
_preservedDataModel = preservedDataModel;
}
- public String getDetailHeader() {
- if(detailColumn!=null){
- return (String) ((UIOutput)detailColumn.getHeader()).getValue();
- } else {
- return null;
- }
- }
-
- public void setDetailHeader(String header) {
- if(detailColumn!=null){
- ((UIOutput)detailColumn.getHeader()).setValue(header);
- }
- }
-
+ /**
+ *
+ * @return true if the current detail row is expanded.
+ */
public boolean isCurrentDetailExpanded(){
return _expandedNodes.contains(new Integer(getRowIndex()));
}
@@ -914,16 +902,6 @@
}
}
- /**
- * Return true if the current detail row is expanded.
- *
- * @return
- */
- public boolean isDetailExpanded(){
- Integer rowIndex = new Integer(getRowIndex());
-
- return _expandedNodes.contains(rowIndex);
- }
//------------------ GENERATED CODE BEGIN (do not modify!) --------------------
Modified: myfaces/tomahawk/trunk/core/src/main/tld/entities/extended_data_table_attributes.xml
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/tld/entities/extended_data_table_attributes.xml?rev=381294&r1=381293&r2=381294&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/tld/entities/extended_data_table_attributes.xml (original)
+++ myfaces/tomahawk/trunk/core/src/main/tld/entities/extended_data_table_attributes.xml Mon Feb 27 01:08:27 2006
@@ -229,7 +229,7 @@
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>
- This variable has the boolean property "detailExpanded" which is true if the current detail row is expanded and the action method
+ This variable has the boolean property "currentdetailExpanded" which is true if the current detail row is expanded and the action method
"toggleDetail" which expand/collapse the current detail row.
</description>
</attribute>