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.Tag;
023    import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
024    import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
025    import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
026    import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered;
027    import org.apache.myfaces.tobago.taglib.decl.HasLabel;
028    import org.apache.myfaces.tobago.taglib.decl.HasTip;
029    import org.apache.myfaces.tobago.taglib.decl.HasWidth;
030    
031    /*
032     * Date: 20.02.2006
033     * Time: 22:10:07
034     */
035    
036    /**
037     * Renders a UIComponent that represents a single column of data within a
038     * parent UIData component.
039     */
040    @Tag(name = "column")
041    @UIComponentTag(
042        uiComponent = "org.apache.myfaces.tobago.component.UIColumn")
043    //rendererType = "Column")
044    public interface ColumnTagDeclaration extends TobagoTagDeclaration, HasIdBindingAndRendered, HasLabel, HasTip,
045        HasWidth {
046      /**
047       * Alignment of this column.
048       */
049      @TagAttribute
050      @UIComponentTagAttribute()
051      void setAlign(String align);
052    
053      /**
054       * Flag indicating whether or not this column is sortable.
055       * To make a column sortable the data of the sheet must be one of
056       * <code>java.util.List</code> or <code>Object[]</code>.
057       */
058      @TagAttribute
059      @UIComponentTagAttribute(type = {"java.lang.Boolean"},
060          defaultValue = "false")
061      void setSortable(String sortable);
062    
063      /**
064       * Flag indicating whether or not the width of this column is resizable.
065       */
066      @TagAttribute
067      @UIComponentTagAttribute(type = {"java.lang.Boolean"},
068          defaultValue = "true")
069      void setResizable(String resizable);
070    
071      /**
072       * Indicate markup of this component.
073       * Possible value is 'none'. But this can be overridden in the theme.
074       */
075      @TagAttribute
076      @UIComponentTagAttribute(defaultValue = "none")
077      void setMarkup(String markup);
078    }