001    package org.apache.myfaces.tobago.taglib.component;
002    
003    /*
004     * Licensed to the Apache Software Foundation (ASF) under one or more
005     * contributor license agreements.  See the NOTICE file distributed with
006     * this work for additional information regarding copyright ownership.
007     * The ASF licenses this file to You under the Apache License, Version 2.0
008     * (the "License"); you may not use this file except in compliance with
009     * the License.  You may obtain a copy of the License at
010     *
011     *      http://www.apache.org/licenses/LICENSE-2.0
012     *
013     * Unless required by applicable law or agreed to in writing, software
014     * distributed under the License is distributed on an "AS IS" BASIS,
015     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016     * See the License for the specific language governing permissions and
017     * limitations under the License.
018     */
019    
020    import org.apache.myfaces.tobago.apt.annotation.Tag;
021    import org.apache.myfaces.tobago.apt.annotation.BodyContentDescription;
022    import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
023    import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
024    import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
025    import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered;
026    import org.apache.myfaces.tobago.taglib.decl.HasTreeNodeValue;
027    import org.apache.myfaces.tobago.taglib.decl.HasState;
028    import org.apache.myfaces.tobago.taglib.decl.HasIdReference;
029    import org.apache.myfaces.tobago.taglib.decl.HasActionListener;
030    import org.apache.myfaces.tobago.taglib.decl.HasNameReference;
031    import org.apache.myfaces.tobago.taglib.decl.IsRequired;
032    
033    /**
034     * Renders a tree view.
035     */
036    @Deprecated
037    @Tag(name = "tree")
038    @BodyContentDescription(anyTagOf = "<f:facet>* <f:actionListener>?")
039    @UIComponentTag(
040        uiComponent = "org.apache.myfaces.tobago.component.UITreeOld",
041        rendererType = "TreeOld")
042    public interface TreeOldTagDeclaration extends TobagoTagDeclaration,
043        HasIdBindingAndRendered, HasTreeNodeValue, HasState,
044        HasIdReference, HasActionListener, HasNameReference, IsRequired {
045    
046      /**
047       * Flag indicating whether or not this component should be render selectable items.
048       * Possible values are:
049       * <ul>
050       * <li><strong>multi</strong> : a multisection tree is rendered
051       * <li><strong>single</strong> : a singlesection tree is rendered
052       * <li><strong>multiLeafOnly</strong> : a multisection tree is rendered,
053       * only Leaf's are selectable
054       * <li><strong>singleLeafOnly</strong> : a singlesection tree is rendered,
055       * only Leaf's are selectable
056       * </ul>
057       * For any other value or if this attribute is omited the items are not selectable.
058       */
059      @TagAttribute
060      @UIComponentTagAttribute(defaultValue = "off",
061          allowedValues = {"multi", "single", "multiLeafOnly", "singleLeafOnly", "off"})
062      void setSelectable(String selectable);
063    
064      @TagAttribute
065      @UIComponentTagAttribute(type = "java.lang.Boolean",
066          defaultValue = "false")
067      void setMutable(String mutable);
068    
069      @TagAttribute
070      @UIComponentTagAttribute(type = "java.lang.Boolean",
071          defaultValue = "false")
072      void setShowRootJunction(String showRootJunction);
073    
074      @TagAttribute
075      @UIComponentTagAttribute(type = "java.lang.Boolean",
076          defaultValue = "false")
077      void setShowIcons(String showIcons);
078    
079      @TagAttribute
080      @UIComponentTagAttribute(type = "java.lang.Boolean",
081          defaultValue = "false")
082      void setShowJunctions(String showJunctions);
083    
084      @TagAttribute
085      @UIComponentTagAttribute(type = "java.lang.Boolean",
086          defaultValue = "false")
087      void setShowRoot(String showRoot);
088    
089      /**
090       * Bean property reference to fetch the disabled state for the treeNode's.<br>
091       * Example:<br>
092       *   a disabledReference="userObject.disabled" try's to invoke
093       *   <code>&lt;UITreeNode>.getUserObject().getDisabled()<code> to fetch the state.
094       */
095      @TagAttribute
096      @UIComponentTagAttribute()
097      void setDisabledReference(String id);
098    
099      /**
100       * Display option: Normal tree or menu.
101       */
102      @TagAttribute
103      @UIComponentTagAttribute(defaultValue = "tree",
104      allowedValues = {"tree", "menu"})
105      void setMode(String mode);
106    
107    
108      /**
109       * reference to tip value.
110       */
111      @TagAttribute
112      @UIComponentTagAttribute()
113      void setTipReference(String tipReference);
114    
115    }