📄 tabnode.java
字号:
package com.cim.jsf.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import javax.faces.model.SelectItem;
public class TabNode {
private String name;
private String value;
private String type;
private boolean disabled;
private String description;
private String tooltip;
private boolean currentTab = false;
public String getName() {
return name; }
public String getValue() {
return value; }
public String getType() {
return type; }
public boolean isDisabled() {
return disabled; }
public boolean isCurrentTab() {
return currentTab; }
public String getDescription() {
return description; }
public String getTooltip() {
return tooltip; }
public void setName( String name ) {
this.name = name; }
public void setValue( String value ) {
this.value = value; }
public void setType( String type ) {
this.type = type; }
public void setDisabled( boolean disabled ) {
this.disabled = disabled; }
public void setCurrentTab( boolean currentTab ) {
this.currentTab = currentTab; }
public void setDescription( String description ) {
this.description = description; }
public void setTooltip( String tooltip ) {
this.tooltip = tooltip; }
public TabNode( String type, String value, String name, String description, String tooltip, boolean disabled ) {
this.type = type;
this.value = value;
this.name = name;
this.description = description;
this.tooltip = tooltip;
this.disabled = disabled;
}
List _children = new ArrayList(); // children
public Collection getChildrenCollection() {
Collection result = new ArrayList();
Iterator itChildren = _children.iterator();
while ( itChildren.hasNext() ) {
TabNode node = ( TabNode )itChildren.next();
SelectItem item = new SelectItem( node.getValue(), node.getDescription(),
null, node.isDisabled() );
result.add( item );
}
return result;
}
public List getChildren() {
return _children;
}
public boolean hasChildren() {
return !_children.isEmpty();
}
public int childrenCount() {
return _children.size();
}
public void addChild( TabNode child ) {
_children.add( child );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -