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.BodyContentDescription; 021 import org.apache.myfaces.tobago.apt.annotation.Tag; 022 import org.apache.myfaces.tobago.apt.annotation.TagAttribute; 023 import org.apache.myfaces.tobago.apt.annotation.UIComponentTag; 024 import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute; 025 import org.apache.myfaces.tobago.taglib.decl.HasActionListener; 026 import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered; 027 import org.apache.myfaces.tobago.taglib.decl.HasIdReference; 028 import org.apache.myfaces.tobago.taglib.decl.HasNameReference; 029 import org.apache.myfaces.tobago.taglib.decl.HasState; 030 import org.apache.myfaces.tobago.taglib.decl.HasTabIndex; 031 import org.apache.myfaces.tobago.taglib.decl.HasTreeNodeValue; 032 import org.apache.myfaces.tobago.taglib.decl.IsRequired; 033 034 /** 035 * Renders a tree view. 036 */ 037 @Deprecated 038 @Tag(name = "tree") 039 @BodyContentDescription(anyTagOf = "<f:facet>* <f:actionListener>?") 040 @UIComponentTag( 041 uiComponent = "org.apache.myfaces.tobago.component.UITreeOld", 042 rendererType = "TreeOld") 043 public interface TreeOldTagDeclaration extends TobagoTagDeclaration, 044 HasIdBindingAndRendered, HasTreeNodeValue, HasState, HasIdReference, 045 HasActionListener, HasNameReference, IsRequired, HasTabIndex { 046 047 /** 048 * Flag indicating whether or not this component should be render selectable items. 049 * Possible values are: 050 * <ul> 051 * <li><strong>multi</strong> : a multisection tree is rendered</li> 052 * <li><strong>single</strong> : a singlesection tree is rendered</li> 053 * <li><strong>multiLeafOnly</strong> : a multisection tree is rendered, 054 * only Leaf's are selectable</li> 055 * <li><strong>singleLeafOnly</strong> : a singlesection tree is rendered, 056 * only Leaf's are selectable</li> 057 * </ul> 058 * For any other value or if this attribute is omited the items are not selectable. 059 */ 060 @TagAttribute 061 @UIComponentTagAttribute(defaultValue = "off", 062 allowedValues = {"multi", "single", "multiLeafOnly", "singleLeafOnly", "off"}) 063 void setSelectable(String selectable); 064 065 @TagAttribute 066 @UIComponentTagAttribute(type = "java.lang.Boolean", 067 defaultValue = "false") 068 void setMutable(String mutable); 069 070 @TagAttribute 071 @UIComponentTagAttribute(type = "java.lang.Boolean", 072 defaultValue = "false") 073 void setShowRootJunction(String showRootJunction); 074 075 @TagAttribute 076 @UIComponentTagAttribute(type = "java.lang.Boolean", 077 defaultValue = "false") 078 void setShowIcons(String showIcons); 079 080 @TagAttribute 081 @UIComponentTagAttribute(type = "java.lang.Boolean", 082 defaultValue = "false") 083 void setShowJunctions(String showJunctions); 084 085 @TagAttribute 086 @UIComponentTagAttribute(type = "java.lang.Boolean", 087 defaultValue = "false") 088 void setShowRoot(String showRoot); 089 090 /** 091 * Bean property reference to fetch the disabled state for the treeNode's.<br /> 092 * Example:<br /> 093 * a disabledReference="userObject.disabled" try's to invoke 094 * <code><UITreeNode>.getUserObject().getDisabled()</code> to fetch the state. 095 */ 096 @TagAttribute 097 @UIComponentTagAttribute() 098 void setDisabledReference(String id); 099 100 /** 101 * Display option: Normal tree or menu. 102 */ 103 @TagAttribute 104 @UIComponentTagAttribute(defaultValue = "tree", 105 allowedValues = {"tree", "menu"}) 106 void setMode(String mode); 107 108 109 /** 110 * reference to tip value. 111 */ 112 @TagAttribute 113 @UIComponentTagAttribute() 114 void setTipReference(String tipReference); 115 116 }