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