incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r449586 - in /incubator/adffaces/trunk/trinidad/trinidad-api/src/main: java-templates/org/apache/myfaces/trinidad/component/ java/org/apache/myfaces/trinidad/component/
Date Mon, 25 Sep 2006 07:00:57 GMT
Author: matzew
Date: Mon Sep 25 00:00:56 2006
New Revision: 449586

URL: http://svn.apache.org/viewvc?view=rev&rev=449586
Log:
ADFFACES-190. __broadcast renamed to broadcastToMethodBinding. method is now protected. Thx
to Arjuna Wijeyekoon for the patch.

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXCommandTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXEditableValueTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXPollTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectInputTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectRangeTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXShowDetailTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSingleStepTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTableTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/HierarchyUtils.java
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXCommandTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXCommandTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXCommandTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXCommandTemplate.java
Mon Sep 25 00:00:56 2006
@@ -85,7 +85,7 @@
 
         // Notify the specified action listener method (if any),
         // and the default action listener
-        __broadcast(event, getActionListener());
+        broadcastToMethodBinding(event, getActionListener());
 
         FacesContext context = getFacesContext();
         ActionListener defaultActionListener =
@@ -107,7 +107,7 @@
 
       if (event instanceof LaunchEvent)
       {
-        __broadcast(event, getLaunchListener());
+        broadcastToMethodBinding(event, getLaunchListener());
         boolean useWindow = 
           Boolean.TRUE.equals(getAttributes().get("useWindow"));
 
@@ -115,7 +115,7 @@
       }
       else if (event instanceof ReturnEvent)
       {
-        __broadcast(event, getReturnListener());
+        broadcastToMethodBinding(event, getReturnListener());
         // =-=AEW: always jump to render response???  Seems the safest
         // option, because we don't want to immediately update a model
         // or really perform any validation.

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXEditableValueTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXEditableValueTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXEditableValueTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXEditableValueTemplate.java
Mon Sep 25 00:00:56 2006
@@ -168,7 +168,7 @@
 
     if (event instanceof ValueChangeEvent)
     {
-      __broadcast(event, getValueChangeListener());
+      broadcastToMethodBinding(event, getValueChangeListener());
     }
   }
 

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXPollTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXPollTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXPollTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXPollTemplate.java
Mon Sep 25 00:00:56 2006
@@ -45,7 +45,7 @@
     // Notify the specified Poll listener method (if any)
     if (event instanceof PollEvent)
     {
-      __broadcast(event, getPollListener());
+      broadcastToMethodBinding(event, getPollListener());
     }
   }
 

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectInputTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectInputTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectInputTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectInputTemplate.java
Mon Sep 25 00:00:56 2006
@@ -86,7 +86,7 @@
 
         // Notify the specified action listener method (if any),
         // and the default action listener
-        __broadcast(event, getActionListener());
+        broadcastToMethodBinding(event, getActionListener());
 
         FacesContext context = getFacesContext();
         ActionListener defaultActionListener =
@@ -113,7 +113,7 @@
     {
       super.broadcast(event);
 
-      __broadcast(event, getReturnListener());
+      broadcastToMethodBinding(event, getReturnListener());
       Object returnValue = ((ReturnEvent) event).getReturnValue();
       if (returnValue != null)
       {

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectRangeTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectRangeTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectRangeTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSelectRangeTemplate.java
Mon Sep 25 00:00:56 2006
@@ -58,7 +58,7 @@
       // update first when the event is delivered
       setFirst(gtEvent.getNewStart());
 
-      __broadcast(event, getRangeChangeListener());
+      broadcastToMethodBinding(event, getRangeChangeListener());
     }
 
     // Perform standard superclass processing

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXShowDetailTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXShowDetailTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXShowDetailTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXShowDetailTemplate.java
Mon Sep 25 00:00:56 2006
@@ -81,7 +81,7 @@
         getFacesContext().renderResponse();
 
       // Notify the specified disclosure listener method (if any)
-      __broadcast(event, getDisclosureListener());
+      broadcastToMethodBinding(event, getDisclosureListener());
     }
   }
 

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSingleStepTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSingleStepTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSingleStepTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXSingleStepTemplate.java
Mon Sep 25 00:00:56 2006
@@ -99,11 +99,11 @@
     {
       if (getActionType() == PREVIOUS_ACTION_TYPE)
       {
-        __broadcast(event, getPreviousActionListener());
+        broadcastToMethodBinding(event, getPreviousActionListener());
       }
       else
       {
-        __broadcast(event, getNextActionListener());
+        broadcastToMethodBinding(event, getNextActionListener());
       }
 
       ActionListener defaultActionListener =

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTableTemplate.java
Mon Sep 25 00:00:56 2006
@@ -101,7 +101,7 @@
       // since the range is now different we can clear the currency cache:
       clearCurrencyStringCache();
       
-      __broadcast(event, getRangeChangeListener());
+      broadcastToMethodBinding(event, getRangeChangeListener());
     }
     else if (event instanceof RowDisclosureEvent)
     {
@@ -109,20 +109,20 @@
       RowKeySet set = getDisclosedRowKeys();
       set.addAll(eEvent.getAddedSet());
       set.removeAll(eEvent.getRemovedSet());
-      __broadcast(event, getRowDisclosureListener());
+      broadcastToMethodBinding(event, getRowDisclosureListener());
     }
     else if (event instanceof SortEvent)
     {
       SortEvent sEvent = (SortEvent) event;
       setSortCriteria(sEvent.getSortCriteria());
-      __broadcast(event, getSortListener());
+      broadcastToMethodBinding(event, getSortListener());
     }
     else if (event instanceof SelectionEvent)
     {
       //pu: Implicitly record a Change for 'selectionState' attribute
       addAttributeChange("selectedRowKeys",
                          getSelectedRowKeys());
-      __broadcast(event, getSelectionListener());
+      broadcastToMethodBinding(event, getSelectionListener());
     }
 
     super.broadcast(event);

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTableTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTableTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTableTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTableTemplate.java
Mon Sep 25 00:00:56 2006
@@ -180,7 +180,7 @@
       // it is nice to expand the focused item:
       getDisclosedRowKeys().add();
 
-      __broadcast(event, getFocusListener());
+      broadcastToMethodBinding(event, getFocusListener());
     }
     else if (event instanceof RangeChangeEvent)
     {
@@ -190,7 +190,7 @@
       //=-=pu: This ain't getting restored. Check with Arj or file a bug.
       addAttributeChange("first",
                          new Integer(rce.getNewStart()));
-      __broadcast(event, getRangeChangeListener());
+      broadcastToMethodBinding(event, getRangeChangeListener());
     }
 
     // Perform standard superclass processing

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXTreeTemplate.java
Mon Sep 25 00:00:56 2006
@@ -66,7 +66,7 @@
       //=-=pu: This ain't getting restored. Check with Arj or file a bug.
       addAttributeChange("selectedRowKeys",
                          getSelectedRowKeys());
-      __broadcast(event, getSelectionListener());
+      broadcastToMethodBinding(event, getSelectionListener());
     }
 
     HierarchyUtils.__handleBroadcast(this, 

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/HierarchyUtils.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/HierarchyUtils.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/HierarchyUtils.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/HierarchyUtils.java
Mon Sep 25 00:00:56 2006
@@ -65,7 +65,7 @@
       }
       //pu: Implicitly record a Change for 'expandedRowKeys' attribute
       comp.addAttributeChange("expandedRowKeys", state);
-      comp.__broadcast(event, disclosureListener);
+      comp.broadcastToMethodBinding(event, disclosureListener);
     }
   }
 

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java?view=diff&rev=449586&r1=449585&r2=449586
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXComponentBase.java
Mon Sep 25 00:00:56 2006
@@ -593,7 +593,7 @@
 
     if (event instanceof AttributeChangeEvent)
     {
-      __broadcast(event, getAttributeChangeListener());
+      broadcastToMethodBinding(event, getAttributeChangeListener());
     }
   }
 
@@ -1145,8 +1145,11 @@
 
   /**
    * Broadcast an event to a MethodBinding.
+   * This can be used to support MethodBindings such as the "actionListener"
+   * binding on ActionSource components:
+   * <tr:commandButton actionListener="#{mybean.myActionListener}">
    */
-  final void __broadcast(
+  protected final void broadcastToMethodBinding(
     FacesEvent event,
     MethodBinding method) throws AbortProcessingException
   {



Mime
View raw message