You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by an...@apache.org on 2006/08/02 17:28:49 UTC

svn commit: r428028 - in /tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html: Relation.java RelationBean.java

Author: andyhot
Date: Wed Aug  2 08:28:49 2006
New Revision: 428028

URL: http://svn.apache.org/viewvc?rev=428028&view=rev
Log:
TAPESTRY-199: Define component to support all kinds of relations and placeholder for the data

Added:
    tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java
    tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/RelationBean.java

Added: tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java?rev=428028&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java Wed Aug  2 08:28:49 2006
@@ -0,0 +1,37 @@
+// Copyright Aug 2, 2006 The Apache Software Foundation
+//
+// Licensed 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.tapestry.html;
+
+import org.apache.tapestry.AbstractComponent;
+import org.apache.tapestry.IMarkupWriter;
+import org.apache.tapestry.IRequestCycle;
+
+/**
+ * Works with the {@link Shell} component to define and append a 
+ * relationship between docuements (typically a stylesheet) to 
+ * the HTML response. 
+ * 
+ * @author andyhot
+ */
+public class Relation extends AbstractComponent
+{
+    /** 
+     * {@inheritDoc}
+     */
+    protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
+    {
+        // TODO Auto-generated method stub        
+    }
+
+}

Added: tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/RelationBean.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/RelationBean.java?rev=428028&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/RelationBean.java (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/RelationBean.java Wed Aug  2 08:28:49 2006
@@ -0,0 +1,83 @@
+// Copyright Aug 2, 2006 The Apache Software Foundation
+//
+// Licensed 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.tapestry.html;
+
+/**
+ * Defines a relationship between two documents.
+ * 
+ * @author andyhot
+ */
+public class RelationBean
+{
+    /** The target URL of the resource. */
+    private String _href;
+    /** Specifies on what device the document will be displayed. */
+    private String _media;
+    /** Defines the relationship between the current document and the targeted document. */
+    private String _rel;
+    /** Defines the relationship between the targeted document and the current document. */
+    private String _rev;
+    /** Specifies the MIME type of the target URL. */
+    private String _type;
+    
+    public String getHref()
+    {
+        return _href;
+    }
+    
+    public void setHref(String href)
+    {
+        _href = href;
+    }
+    
+    public String getMedia()
+    {
+        return _media;
+    }
+    
+    public void setMedia(String media)
+    {
+        _media = media;
+    }
+    
+    public String getRel()
+    {
+        return _rel;
+    }
+    
+    public void setRel(String rel)
+    {
+        _rel = rel;
+    }
+    
+    public String getRev()
+    {
+        return _rev;
+    }
+    
+    public void setRev(String rev)
+    {
+        _rev = rev;
+    }
+    
+    public String getType()
+    {
+        return _type;
+    }
+    
+    public void setType(String type)
+    {
+        _type = type;
+    }
+}