/** * A factory method for creating a new empty tree. * * @return New empty tree model. */ public static SchemaTreeModel getInstance() { SchemaRootNode root = new SchemaRootNode(); return new SchemaTreeModel(root); }
/** * Simple constructor. */ public SchemaTreeTraverser() { this.model = SchemaTreeModel.getInstance(); this.currNode = (SchemaTreeNode) this.model.getRoot(); }
public void elementDecl( XSElementDecl decl ) { elementDecl(decl,""); } private void elementDecl( XSElementDecl decl, String extraAtts ) {
public final Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value instanceof SchemaTreeNode) { SchemaTreeNode stn = (SchemaTreeNode) value; this.setValues(null, stn.getCaption(), selected); return this; } throw new IllegalStateException("Unknown node"); } }
public void modelGroup( XSModelGroup group ) { modelGroup(group,""); } private void modelGroup( XSModelGroup group, String extraAtts ) {
public void addSchemaNode(SchemaTreeNode node) { ((SchemaRootNode) this.root).add(node); } }
/** * A factory method for creating a new empty tree. * * @return New empty tree model. */ public static SchemaTreeModel getInstance() { SchemaRootNode root = new SchemaRootNode(); return new SchemaTreeModel(root); }
/** * Simple constructor. */ public SchemaTreeTraverser() { this.model = SchemaTreeModel.getInstance(); this.currNode = (SchemaTreeNode) this.model.getRoot(); }
public final Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value instanceof SchemaTreeNode) { SchemaTreeNode stn = (SchemaTreeNode) value; this.setValues(null, stn.getCaption(), selected); return this; } throw new IllegalStateException("Unknown node"); } }
public void elementDecl( XSElementDecl decl ) { elementDecl(decl,""); } private void elementDecl( XSElementDecl decl, String extraAtts ) {
public void modelGroup( XSModelGroup group ) { modelGroup(group,""); } private void modelGroup( XSModelGroup group, String extraAtts ) {
public void addSchemaNode(SchemaTreeNode node) { ((SchemaRootNode) this.root).add(node); } }
/** * A factory method for creating a new empty tree. * * @return New empty tree model. */ public static SchemaTreeModel getInstance() { SchemaRootNode root = new SchemaRootNode(); return new SchemaTreeModel(root); }
/** * Simple constructor. */ public SchemaTreeTraverser() { this.model = SchemaTreeModel.getInstance(); this.currNode = (SchemaTreeNode) this.model.getRoot(); }
public final Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (value instanceof SchemaTreeNode) { SchemaTreeNode stn = (SchemaTreeNode) value; this.setValues(null, stn.getCaption(), selected); return this; } throw new IllegalStateException("Unknown node"); } }
public void elementDecl( XSElementDecl decl ) { elementDecl(decl,""); } private void elementDecl( XSElementDecl decl, String extraAtts ) {
/** * A factory method for creating a new empty tree. * * @return New empty tree model. */ public static SchemaTreeModel getInstance() { SchemaRootNode root = new SchemaRootNode(); return new SchemaTreeModel(root); }
/** * Simple constructor. */ public SchemaTreeTraverser() { this.model = SchemaTreeModel.getInstance(); this.currNode = (SchemaTreeNode) this.model.getRoot(); }
/** * A factory method for creating a new empty tree. * * @return New empty tree model. */ public static SchemaTreeModel getInstance() { SchemaRootNode root = new SchemaRootNode(); return new SchemaTreeModel(root); }
/** * Simple constructor. */ public SchemaTreeTraverser() { this.model = SchemaTreeModel.getInstance(); this.currNode = (SchemaTreeNode) this.model.getRoot(); }