001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements.  See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership.  The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the
007     * "License"); you may not use this file except in compliance
008     * with the License.  You may obtain a copy of the License at
009     *
010     *   http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing,
013     * software distributed under the License is distributed on an
014     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015     * KIND, either express or implied.  See the License for the
016     * specific language governing permissions and limitations
017     * under the License.
018     */
019    
020    package org.apache.myfaces.tobago.taglib.component;
021    
022    import org.apache.myfaces.tobago.apt.annotation.BodyContent;
023    import org.apache.myfaces.tobago.apt.annotation.Tag;
024    import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
025    import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
026    import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
027    import org.apache.myfaces.tobago.taglib.decl.HasBorder;
028    import org.apache.myfaces.tobago.taglib.decl.HasDimension;
029    import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered;
030    import org.apache.myfaces.tobago.taglib.decl.HasTip;
031    
032    /*
033     * Created: Aug 6, 2005 3:19:55 PM
034     * User: bommel
035     * $Id: ImageTagDeclaration.java 1368577 2012-08-02 16:20:31Z lofwyr $
036     */
037    /**
038     * Renders a Image.
039     */
040    @Tag(name = "image", bodyContent = BodyContent.EMPTY)
041    @UIComponentTag(
042        uiComponent = "javax.faces.component.UIGraphic",
043        rendererType = "Image", isComponentAlreadyDefined = true)
044    public interface ImageTagDeclaration extends TobagoTagDeclaration,
045        HasIdBindingAndRendered, HasBorder, HasDimension, HasTip {
046    
047      /**
048       * Absolute url to an image or image name to lookup in tobago resource path
049       */
050      @TagAttribute(required = true)
051      @UIComponentTagAttribute()
052      void setValue(String value);
053    
054      /**
055       * Alternate textual description of the image rendered by this component.
056       */
057      @TagAttribute
058      @UIComponentTagAttribute()
059      void setAlt(String alt);
060    
061    }