View Javadoc
1   /**
2    * Copyright 2011-2019 PrimeFaces Extensions
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.primefaces.extensions.component.orgchart;
17  
18  import java.util.List;
19  
20  /**
21   * <code>orgchart</code> component.
22   *
23   * @author @jxmai / last modified by $Author$
24   * @version $Revision$
25   * @since 6.3
26   */
27  public interface OrgChartNode {
28  
29      public String getId();
30  
31      public void setId(String id);
32  
33      String getName();
34  
35      void setName(String name);
36  
37      String getTitle();
38  
39      void setTitle(String title);
40  
41      List<OrgChartNode> getChildren();
42  
43      void setChildren(List<OrgChartNode> children);
44  
45      OrgChartNode getParent();
46  
47      void setParent(OrgChartNode parent);
48  
49      public void addChild(OrgChartNode child);
50  
51      public void clearChildren();
52  
53      public void clearParent();
54  
55      public String getClassName();
56  
57      public void setClassName(String className);
58  
59      public int getChildCount();
60  
61  }