View Javadoc

1   // ---------- Attention: Generated code, please do not modify! -----------  
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one or more
5    * contributor license agreements.  See the NOTICE file distributed with
6    * this work for additional information regarding copyright ownership.
7    * The ASF licenses this file to You under the Apache License, Version 2.0
8    * (the "License"); you may not use this file except in compliance with
9    * the License.  You may obtain a copy of the License at
10   *
11   *      http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   */
19  
20  package org.apache.myfaces.tobago.component;
21  
22  import javax.faces.context.FacesContext;
23  import org.apache.myfaces.tobago.internal.component.AbstractUITreeData;
24  import org.apache.myfaces.tobago.internal.util.ArrayUtils;
25  import org.apache.myfaces.tobago.internal.util.StringUtils;
26  import org.apache.myfaces.tobago.internal.util.Deprecation;
27  import org.apache.myfaces.tobago.renderkit.MarginValues;
28  import org.apache.myfaces.tobago.renderkit.SpacingValues;
29  import org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer;
30  import javax.el.ELException;
31  import javax.faces.FacesException;
32  import java.util.ArrayList;
33  import java.util.List;
34  import javax.el.MethodExpression;
35  import javax.el.ValueExpression;
36  
37  /** 
38   Describes a sub tree of nodes.
39    The value has to be a javax.swing.tree.TreeNode object to use as rootNode in the tree.
40    * UIComponent class, generated from template {@code component2.0.stg} with class
41    * {@link org.apache.myfaces.tobago.internal.taglib.component.TreeDataTagDeclaration}.
42     @deprecated
43   */
44  @Deprecated
45  public class UITreeData
46      extends AbstractUITreeData  {
47  
48    public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.TreeData";
49  
50    public static final String COMPONENT_FAMILY = "javax.faces.Input";
51  
52  
53    enum PropertyKeys {
54      var,
55    }
56  
57    public String getFamily() {
58      return COMPONENT_FAMILY;
59    }
60  
61  
62    /**
63    Name of a request-scope attribute under which the model data for the row
64     selected by the current value of the "rowIndex" property
65     (i.e. also the current value of the "rowData" property) will be exposed.
66  
67    */
68    public java.lang.String getVar() {
69      return (java.lang.String) getStateHelper().eval(PropertyKeys.var);
70    }
71  
72    public void setVar(java.lang.String var) {
73      getStateHelper().put(PropertyKeys.var, var);
74    }
75  
76  
77  
78  }