You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/11/03 21:57:47 UTC
svn commit: r832553 - in
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago:
component/ taglib/component/
Author: lofwyr
Date: Tue Nov 3 20:57:44 2009
New Revision: 832553
URL: http://svn.apache.org/viewvc?rev=832553&view=rev
Log:
TOBAGO-412: Add deprecated classes for backward compatibility
Added:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UILinkCommand.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIColumn.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTagDeclaration.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/OutTagDeclaration.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIColumn.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIColumn.java?rev=832553&r1=832552&r2=832553&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIColumn.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIColumn.java Tue Nov 3 20:57:44 2009
@@ -20,5 +20,17 @@
import javax.faces.component.UIColumn;
public abstract class AbstractUIColumn extends UIColumn {
+
+ public abstract void setSortable(Boolean sortable);
+
+ /**
+ * @deprecated since Tobago 1.5.
+ * Compatibility setter for java 1.4 (no autoboxing).
+ * @param sortable
+ */
+ @Deprecated
+ public void setSortable(boolean sortable) {
+ setSortable(Boolean.valueOf(sortable));
+ }
}
Added: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UILinkCommand.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UILinkCommand.java?rev=832553&view=auto
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UILinkCommand.java (added)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UILinkCommand.java Tue Nov 3 20:57:44 2009
@@ -0,0 +1,101 @@
+package org.apache.myfaces.tobago.component;
+
+/*
+ * 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.
+ */
+
+import javax.faces.component.ActionSource;
+import javax.faces.component.StateHolder;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+import javax.faces.event.AbortProcessingException;
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @deprecated Please use UILink
+ */
+@Deprecated
+public interface UILinkCommand extends ActionSource, StateHolder {
+
+ public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.Link";
+
+ Map<String, Object> getAttributes();
+
+ ValueBinding getValueBinding(String name);
+
+ void setValueBinding(String name, ValueBinding binding);
+
+ String getClientId(FacesContext context);
+
+ String getFamily();
+
+ String getId();
+
+ void setId(String id);
+
+ UIComponent getParent();
+
+ void setParent(UIComponent parent);
+
+ boolean isRendered();
+
+ void setRendered(boolean rendered);
+
+ String getRendererType();
+
+ void setRendererType(String rendererType);
+
+ boolean getRendersChildren();
+
+ List<UIComponent> getChildren();
+
+ int getChildCount();
+
+ UIComponent findComponent(String expr);
+
+ Map<String, UIComponent> getFacets();
+
+ UIComponent getFacet(String name);
+
+ Iterator<UIComponent> getFacetsAndChildren();
+
+ void broadcast(javax.faces.event.FacesEvent event) throws AbortProcessingException;
+
+ void decode(FacesContext context);
+
+ void encodeBegin(FacesContext context) throws IOException;
+
+ void encodeChildren(FacesContext context) throws IOException;
+
+ void encodeEnd(FacesContext context) throws IOException;
+
+ void queueEvent(javax.faces.event.FacesEvent event);
+
+ void processRestoreState(FacesContext context, Object state);
+
+ void processDecodes(FacesContext context);
+
+ void processValidators(FacesContext context);
+
+ void processUpdates(FacesContext context);
+
+ Object processSaveState(FacesContext context);
+
+}
Added: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java?rev=832553&view=auto
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java (added)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java Tue Nov 3 20:57:44 2009
@@ -0,0 +1,101 @@
+package org.apache.myfaces.tobago.component;
+
+/*
+ * 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.
+ */
+
+import javax.faces.component.StateHolder;
+import javax.faces.component.UIComponent;
+import javax.faces.component.ValueHolder;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+import javax.faces.event.AbortProcessingException;
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @deprecated Please use UIOut
+ */
+@Deprecated
+public interface UIOutput extends ValueHolder, StateHolder {
+
+ public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.Out";
+
+ Map<String, Object> getAttributes();
+
+ ValueBinding getValueBinding(String name);
+
+ void setValueBinding(String name, ValueBinding binding);
+
+ String getClientId(FacesContext context);
+
+ String getFamily();
+
+ String getId();
+
+ void setId(String id);
+
+ UIComponent getParent();
+
+ void setParent(UIComponent parent);
+
+ boolean isRendered();
+
+ void setRendered(boolean rendered);
+
+ String getRendererType();
+
+ void setRendererType(String rendererType);
+
+ boolean getRendersChildren();
+
+ List<UIComponent> getChildren();
+
+ int getChildCount();
+
+ UIComponent findComponent(String expr);
+
+ Map<String, UIComponent> getFacets();
+
+ UIComponent getFacet(String name);
+
+ Iterator<UIComponent> getFacetsAndChildren();
+
+ void broadcast(javax.faces.event.FacesEvent event) throws AbortProcessingException;
+
+ void decode(FacesContext context);
+
+ void encodeBegin(FacesContext context) throws IOException;
+
+ void encodeChildren(FacesContext context) throws IOException;
+
+ void encodeEnd(FacesContext context) throws IOException;
+
+ void queueEvent(javax.faces.event.FacesEvent event);
+
+ void processRestoreState(FacesContext context, Object state);
+
+ void processDecodes(FacesContext context);
+
+ void processValidators(FacesContext context);
+
+ void processUpdates(FacesContext context);
+
+ Object processSaveState(FacesContext context);
+
+}
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTagDeclaration.java?rev=832553&r1=832552&r2=832553&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTagDeclaration.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTagDeclaration.java Tue Nov 3 20:57:44 2009
@@ -44,6 +44,7 @@
@UIComponentTag(
uiComponent = "org.apache.myfaces.tobago.component.UILink",
uiComponentBaseClass = "org.apache.myfaces.tobago.component.UICommand",
+ interfaces = "org.apache.myfaces.tobago.component.UILinkCommand",
rendererType = RendererTypes.LINK,
allowedChildComponenents = "NONE",
facets = {
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/OutTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/OutTagDeclaration.java?rev=832553&r1=832552&r2=832553&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/OutTagDeclaration.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/OutTagDeclaration.java Tue Nov 3 20:57:44 2009
@@ -39,6 +39,7 @@
@UIComponentTag(
uiComponent = "org.apache.myfaces.tobago.component.UIOut",
uiComponentBaseClass = "org.apache.myfaces.tobago.component.AbstractUIOut",
+ interfaces = "org.apache.myfaces.tobago.component.UIOutput",
componentType = ComponentTypes.OUT,
rendererType = RendererTypes.OUT,
allowedChildComponenents = "NONE")