Author: jrthomerson
Date: Sun Feb 20 03:44:43 2011
New Revision: 1072485

URL: http://svn.apache.org/viewvc?rev=1072485&view=rev
Log:
resolves WICKET-3457 for 1.4.x - forgot one file

Added:
    
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/behavior/IComponentConfigurationBehavior.java

Added: 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/behavior/IComponentConfigurationBehavior.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/behavior/IComponentConfigurationBehavior.java?rev=1072485&view=auto
==============================================================================
--- 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/behavior/IComponentConfigurationBehavior.java
 (added)
+++ 
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/behavior/IComponentConfigurationBehavior.java
 Sun Feb 20 03:44:43 2011
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.behavior;
+
+import org.apache.wicket.Component;
+
+/**
+ * An add-on interface for IBehavior instances that want to contribute to a 
component's
+ * configuration. Any IBehavior that also implements this method will receive 
notifications when the
+ * component onConfigure method is being called.
+ * 
+ * @author jrthomerson
+ * @since 1.4.16
+ */
+public interface IComponentConfigurationBehavior extends IBehavior
+{
+
+       /**
+        * Called immediately before the onConfigure method in a component. 
Since this is before the
+        * rendering cycle has begun, the behavior can modify the configuration 
of the component (i.e.
+        * setVisible(false))
+        * 
+        * @param component
+        *            the component being configured
+        */
+       void preConfigure(Component component);
+
+       /**
+        * Called immediately after the onConfigure method in a component. 
Since this is before the
+        * rendering cycle has begun, the behavior can modify the configuration 
of the component (i.e.
+        * setVisible(false))
+        * 
+        * @param component
+        *            the component being configured
+        */
+       void postConfigure(Component component);
+}


Reply via email to