Java Doc for ItsNatComponentManager.java in  » Ajax » ItsNat » org » itsnat » comp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » ItsNat » org.itsnat.comp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.itsnat.comp.ItsNatComponentManager

All known Subclasses:   org.itsnat.impl.comp.ItsNatComponentManagerImpl,
ItsNatComponentManager
public interface ItsNatComponentManager (Code)
Utility interface to manage (create, register etc) ItsNat components of the associated ItsNatDocument .
author:
   Jose Maria Arranz Santamaria
See Also:   ItsNatDocument.getItsNatComponentManager




Method Summary
public  voidaddExcludedNodeAsItsNatComponent(Node node)
     Registers the specified node in the excluded registry.
public  ItsNatComponentaddItsNatComponent(Node node, String compType, NameValue[] artifacts)
     Creates and adds to the manager registry a new component object associated to the specified node.

Component creation is delegated to the method ItsNatComponentManager.createItsNatComponent(org.w3c.dom.Node,String,NameValue[]) , if no component can be created nothing is registered.

If the node specified was registered as excluded calling ItsNatComponentManager.addExcludedNodeAsItsNatComponent(org.w3c.dom.Node) no component is created and registered.


Parameters:
  node - the node to associate the new component.
Parameters:
  compType - the component type, if null the type is obtained from the node.
Parameters:
  artifacts - declared artifacts, may be null.
public  ItsNatComponentaddItsNatComponent(Node node)
     Creates and adds to the manager registry a new component object associated to the specified node.

Current implementation calls:

 return addItsNatComponent(node,null,null);
 

Parameters:
  node - the node to associate the new component.
public  voidaddItsNatComponent(ItsNatComponent comp)
     Adds to the manager registry the specified component object.
public  ItsNatComponentaddItsNatComponentById(String id)
     Creates and adds to the manager registry a new component object associated to the node with the specified id attribute.

Current implementation calls:

 return addItsNatComponentById(id,null,null);
 

Parameters:
  id - the attribute id of the node to associate the new component.
public  ItsNatComponentaddItsNatComponentById(String id, String compType, NameValue[] artifacts)
     Creates and adds to the manager registry a new component object associated to the node with the specified id attribute.

Current implementation:

 Document doc = getItsNatDocument().getDocument();
 Element node = doc.getElementById(id);         
 return addItsNatComponent(node,compType,artifacts);
 

Parameters:
  id - the attribute id of the node to associate the new component.
Parameters:
  compType - the component type, if null the type is obtained from the node.
Parameters:
  artifacts - declared artifacts, may be null.
public  ItsNatComponent[]buildItsNatComponents(Node node)
     Navigates recursively the subtree below the specified node (included) and for every node tries to create and register the built-in component associated to the node.
Parameters:
  node - the node parent of the subtree.
public  ItsNatComponent[]buildItsNatComponents()
     Navigates recursively the document tree and for every node tries to create and register the built-in component associated to the node.
public  ItsNatLabelEditorcreateDefaultItsNatLabelEditor(ItsNatComponent compEditor)
     Creates a default label editor instance using the specified component as the editor.

Current implementation supports org.itsnat.comp.html.ItsNatHTMLInputText , org.itsnat.comp.html.ItsNatHTMLSelectComboBox , org.itsnat.comp.html.ItsNatHTMLInputCheckBox and org.itsnat.comp.html.ItsNatHTMLTextArea as editors.


Parameters:
  compEditor - the component used as editor.
public  ItsNatLabelRenderercreateDefaultItsNatLabelRenderer()
     Creates a new default label renderer.
public  ItsNatListCellEditorcreateDefaultItsNatListCellEditor(ItsNatComponent compEditor)
     Creates a default list editor instance using the specified component as the editor.

Current implementation supports org.itsnat.comp.html.ItsNatHTMLInputText , org.itsnat.comp.html.ItsNatHTMLSelectComboBox , org.itsnat.comp.html.ItsNatHTMLInputCheckBox and org.itsnat.comp.html.ItsNatHTMLTextArea as editors.


Parameters:
  compEditor - the component used as editor.
public  ItsNatListCellRenderercreateDefaultItsNatListCellRenderer()
     Creates a new default list element content renderer.
public  ItsNatListStructurecreateDefaultItsNatListStructure()
     Creates a new default list structure manager.
public  ItsNatTableCellEditorcreateDefaultItsNatTableCellEditor(ItsNatComponent compEditor)
     Creates a default table editor instance using the specified component as the editor.

Current implementation supports org.itsnat.comp.html.ItsNatHTMLInputText , org.itsnat.comp.html.ItsNatHTMLSelectComboBox , org.itsnat.comp.html.ItsNatHTMLInputCheckBox and org.itsnat.comp.html.ItsNatHTMLTextArea as editors.


Parameters:
  compEditor - the component used as editor.
public  ItsNatTableCellRenderercreateDefaultItsNatTableCellRenderer()
     Creates a new default table cell content renderer.
public  ItsNatTableHeaderCellRenderercreateDefaultItsNatTableHeaderCellRenderer()
     Creates a new default table header cell content renderer.
public  ItsNatTableStructurecreateDefaultItsNatTableStructure()
     Creates a new default table structure manager.
public  ItsNatTreeCellEditorcreateDefaultItsNatTreeCellEditor(ItsNatComponent compEditor)
     Creates a default tree node editor instance using the specified component as the editor.

Current implementation supports org.itsnat.comp.html.ItsNatHTMLInputText , org.itsnat.comp.html.ItsNatHTMLSelectComboBox , org.itsnat.comp.html.ItsNatHTMLInputCheckBox and org.itsnat.comp.html.ItsNatHTMLTextArea as editors.


Parameters:
  compEditor - the component used as editor.
public  ItsNatTreeCellRenderercreateDefaultItsNatTreeCellRenderer()
     Creates a new default tree node content renderer.
public  ItsNatTreeStructurecreateDefaultItsNatTreeStructure()
     Creates a new default tree structure manager.
public  ItsNatButtonGroupcreateItsNatButtonGroup()
     Creates a new ItsNat button group with a generated name and a new javax.swing.ButtonGroup.
public  ItsNatComponentcreateItsNatComponent(Node node, String compType, NameValue[] artifacts)
     Creates a new component object associated to the specified node.

All registered CreateItsNatComponentListener listeners are used to create the component.


Parameters:
  node - the node to associate the new component.
Parameters:
  compType - the component type, if null the type is obtained from the node.
Parameters:
  artifacts - declared artifacts, may be null.
public  ItsNatComponentcreateItsNatComponent(Node node)
     Creates a new component object associated to the specified node.

Current implementation calls:

 return createItsNatComponent(node,null,null);
 

Parameters:
  node - the node to associate the new component.
public  ItsNatComponentcreateItsNatComponentById(String id)
     Creates a new component object associated to the node with the specified id attribute.

Current implementation calls:

 return createItsNatComponentById(id,null,null);
 

Parameters:
  id - the attribute id of the node to associate the new component.
public  ItsNatComponentcreateItsNatComponentById(String id, String compType, NameValue[] artifacts)
     Creates a new component object associated to the node with the specified id attribute.

Current implementation:

 Document doc = getItsNatDocument().getDocument();
 Element node = doc.getElementById(id);         
 return createItsNatComponent(node,compType,artifacts);
 

Parameters:
  id - the attribute id of the node to associate the new component.
Parameters:
  compType - the component type, if null the type is obtained from the node.
Parameters:
  artifacts - declared artifacts, may be null.
public  ItsNatFreeButtonNormalcreateItsNatFreeButtonNormal(Element element, NameValue[] artifacts)
     Creates a new free normal button component.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeButtonNormalLabelcreateItsNatFreeButtonNormalLabel(Element element, NameValue[] artifacts)
     Creates a new free normal button component with a label.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeCheckBoxcreateItsNatFreeCheckBox(Element element, NameValue[] artifacts)
     Creates a new free check box component.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeCheckBoxLabelcreateItsNatFreeCheckBoxLabel(Element element, NameValue[] artifacts)
     Creates a new free check box component with a label.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeComboBoxcreateItsNatFreeComboBox(Element element, ItsNatListStructure structure, NameValue[] artifacts)
     Creates a new free combo box component.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeIncludecreateItsNatFreeInclude(Element element, NameValue[] artifacts)
     Creates a new free include component.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeLabelcreateItsNatFreeLabel(Element element, NameValue[] artifacts)
     Creates a new free label component.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeListMultSelcreateItsNatFreeListMultSel(Element element, ItsNatListStructure structure, NameValue[] artifacts)
     Creates a new free list component.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeRadioButtoncreateItsNatFreeRadioButton(Element element, NameValue[] artifacts)
     Creates a new free radio button component.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeRadioButtonLabelcreateItsNatFreeRadioButtonLabel(Element element, NameValue[] artifacts)
     Creates a new free radio buttom component with a label.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeTablecreateItsNatFreeTable(Element element, ItsNatTableStructure structure, NameValue[] artifacts)
     Creates a new free table component.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeTreecreateItsNatFreeTree(Element element, boolean treeTable, boolean rootless, ItsNatTreeStructure structure, NameValue[] artifacts)
     Creates a new free tree component.
Parameters:
  element - the DOM element associated.
public  ItsNatFreeTreecreateItsNatFreeTree(Element element, NameValue[] artifacts)
     Creates a new free tree component.

By default is not a tree-table unless "treeTable" is defined in the artifacts (value "true") or as a markup attribute (value "true").

By default the root node has view unless "rootless" is defined in the artifacts (value "true") or as a markup attribute (value "true").

The structure is obtained from artifacts ("useStructure"), if not defined then from markup ("useStructure" attribute), if not defined the default structure is used.
Parameters:
  element - the DOM element associated.

public  ItsNatComponentfindItsNatComponent(Node node)
     Returns the registered component associated to the specified node.
Parameters:
  node - the node the search the associated component.
public  ItsNatComponentfindItsNatComponentById(String id)
     Returns the registered component associated to the node which id attribute is specified.

Current implementation:

 Document doc = getItsNatDocument().getDocument();
 Element node = doc.getElementById(id);         
 return findItsNatComponent(node);
 

Parameters:
  id - the attribute id of the node to search.
public  ItsNatButtonGroupgetItsNatButtonGroup(String name)
     Returns the ItsNat button group with the specified name.
Parameters:
  name - the button group name to search for.
public  ItsNatButtonGroupgetItsNatButtonGroup(ButtonGroup group)
     Returns the ItsNat button group with the specified Swing button group.
Parameters:
  group - the Swing button group to search for.
public  ItsNatDocumentgetItsNatDocument()
     Returns the associated ItsNat document (parent of this object).
public  booleanisExcludedNodeAsItsNatComponent(Node node)
     Informs whether the specified node is in the excluded registry.
public  voidremoveExcludedNodeAsItsNatComponent(Node node)
     Removes the specified node from the excluded registry.
public  ItsNatComponentremoveItsNatComponent(Node node)
     Unregisters the component associated to the specified node.
Parameters:
  node - the node the search the associated component.
public  ItsNatComponentremoveItsNatComponent(String id)
     Unregisters the component associated to the node specified by the id attribute.

Current implementation:

 Document doc = getItsNatDocument().getDocument();
 Element node = doc.getElementById(id);         
 return removeItsNatComponent(node);
 

Parameters:
  id - the attribute id of the node to search.
public  ItsNatComponent[]removeItsNatComponents(Node node, boolean dispose)
     Navigates recursively the subtree below the specified node (included) and for every node removes the associated component if any from the registry and optionally disposes it.
Parameters:
  node - the node parent of the subtree.
public  ItsNatComponent[]removeItsNatComponents(boolean dispose)
     Navigates recursively the document and for every node removes the associated component if any from the registry and optionally disposes it.
Parameters:
  dispose - if every component found is disposed.



Method Detail
addExcludedNodeAsItsNatComponent
public void addExcludedNodeAsItsNatComponent(Node node)(Code)
Registers the specified node in the excluded registry.

No component is created and registered with ItsNatComponentManager.addItsNatComponent(org.w3c.dom.Node,String,NameValue[]) if the specified node is in the excluded registry.


Parameters:
  node - the node to exclude.



addItsNatComponent
public ItsNatComponent addItsNatComponent(Node node, String compType, NameValue[] artifacts)(Code)
Creates and adds to the manager registry a new component object associated to the specified node.

Component creation is delegated to the method ItsNatComponentManager.createItsNatComponent(org.w3c.dom.Node,String,NameValue[]) , if no component can be created nothing is registered.

If the node specified was registered as excluded calling ItsNatComponentManager.addExcludedNodeAsItsNatComponent(org.w3c.dom.Node) no component is created and registered.


Parameters:
  node - the node to associate the new component.
Parameters:
  compType - the component type, if null the type is obtained from the node.
Parameters:
  artifacts - declared artifacts, may be null. the new component, is null if no component can be created with the submitted parameters.
See Also:   ItsNatComponentManager.addItsNatComponent(ItsNatComponent)



addItsNatComponent
public ItsNatComponent addItsNatComponent(Node node)(Code)
Creates and adds to the manager registry a new component object associated to the specified node.

Current implementation calls:

 return addItsNatComponent(node,null,null);
 

Parameters:
  node - the node to associate the new component. the new component, is null if no component can be created with the submitted parameters.
See Also:   ItsNatComponentManager.addItsNatComponent(org.w3c.dom.Node,String,NameValue[])



addItsNatComponent
public void addItsNatComponent(ItsNatComponent comp)(Code)
Adds to the manager registry the specified component object.

This method ignores the "excluded registry".


Parameters:
  comp - the component to register.
See Also:   ItsNatComponentManager.addItsNatComponent(org.w3c.dom.Node,String,NameValue[])
See Also:   ItsNatComponentManager.addExcludedNodeAsItsNatComponent(org.w3c.dom.Node)



addItsNatComponentById
public ItsNatComponent addItsNatComponentById(String id)(Code)
Creates and adds to the manager registry a new component object associated to the node with the specified id attribute.

Current implementation calls:

 return addItsNatComponentById(id,null,null);
 

Parameters:
  id - the attribute id of the node to associate the new component. the new component, is null if no component can be created with the submitted parameters.
See Also:   ItsNatComponentManager.addItsNatComponentById(String,String,NameValue[])



addItsNatComponentById
public ItsNatComponent addItsNatComponentById(String id, String compType, NameValue[] artifacts)(Code)
Creates and adds to the manager registry a new component object associated to the node with the specified id attribute.

Current implementation:

 Document doc = getItsNatDocument().getDocument();
 Element node = doc.getElementById(id);         
 return addItsNatComponent(node,compType,artifacts);
 

Parameters:
  id - the attribute id of the node to associate the new component.
Parameters:
  compType - the component type, if null the type is obtained from the node.
Parameters:
  artifacts - declared artifacts, may be null. the new component, is null if no component can be created with the submitted parameters.
See Also:   ItsNatComponentManager.addItsNatComponent(org.w3c.dom.Node,String,NameValue[])



buildItsNatComponents
public ItsNatComponent[] buildItsNatComponents(Node node)(Code)
Navigates recursively the subtree below the specified node (included) and for every node tries to create and register the built-in component associated to the node.
Parameters:
  node - the node parent of the subtree. an array with the components created and registered.
See Also:   ItsNatComponentManager.buildItsNatComponents()
See Also:   ItsNatComponentManager.removeItsNatComponents(org.w3c.dom.Node,boolean)
See Also:   ItsNatComponentManager.addItsNatComponent(org.w3c.dom.Node)



buildItsNatComponents
public ItsNatComponent[] buildItsNatComponents()(Code)
Navigates recursively the document tree and for every node tries to create and register the built-in component associated to the node.

Current implementation is:

 Document doc = getItsNatDocument().getDocument();
 return buildItsNatComponents(doc);
 
an array with the components created and registered.
See Also:   ItsNatComponentManager.buildItsNatComponents(org.w3c.dom.Node)



createDefaultItsNatLabelEditor
public ItsNatLabelEditor createDefaultItsNatLabelEditor(ItsNatComponent compEditor)(Code)
Creates a default label editor instance using the specified component as the editor.

Current implementation supports org.itsnat.comp.html.ItsNatHTMLInputText , org.itsnat.comp.html.ItsNatHTMLSelectComboBox , org.itsnat.comp.html.ItsNatHTMLInputCheckBox and org.itsnat.comp.html.ItsNatHTMLTextArea as editors.


Parameters:
  compEditor - the component used as editor. If null org.itsnat.comp.html.ItsNatHTMLInputText (text not formatted version) is used. a default label editor instance.



createDefaultItsNatLabelRenderer
public ItsNatLabelRenderer createDefaultItsNatLabelRenderer()(Code)
Creates a new default label renderer. a new default label renderer.



createDefaultItsNatListCellEditor
public ItsNatListCellEditor createDefaultItsNatListCellEditor(ItsNatComponent compEditor)(Code)
Creates a default list editor instance using the specified component as the editor.

Current implementation supports org.itsnat.comp.html.ItsNatHTMLInputText , org.itsnat.comp.html.ItsNatHTMLSelectComboBox , org.itsnat.comp.html.ItsNatHTMLInputCheckBox and org.itsnat.comp.html.ItsNatHTMLTextArea as editors.


Parameters:
  compEditor - the component used as editor. If null org.itsnat.comp.html.ItsNatHTMLInputText (text not formatted version) is used. a default list item editor instance.



createDefaultItsNatListCellRenderer
public ItsNatListCellRenderer createDefaultItsNatListCellRenderer()(Code)
Creates a new default list element content renderer. a new default list element content renderer.



createDefaultItsNatListStructure
public ItsNatListStructure createDefaultItsNatListStructure()(Code)
Creates a new default list structure manager. a new default list structure manager.



createDefaultItsNatTableCellEditor
public ItsNatTableCellEditor createDefaultItsNatTableCellEditor(ItsNatComponent compEditor)(Code)
Creates a default table editor instance using the specified component as the editor.

Current implementation supports org.itsnat.comp.html.ItsNatHTMLInputText , org.itsnat.comp.html.ItsNatHTMLSelectComboBox , org.itsnat.comp.html.ItsNatHTMLInputCheckBox and org.itsnat.comp.html.ItsNatHTMLTextArea as editors.


Parameters:
  compEditor - the component used as editor. If null org.itsnat.comp.html.ItsNatHTMLInputText (text not formatted version) is used. a default table cell editor instance.



createDefaultItsNatTableCellRenderer
public ItsNatTableCellRenderer createDefaultItsNatTableCellRenderer()(Code)
Creates a new default table cell content renderer. a new default table cell content renderer.



createDefaultItsNatTableHeaderCellRenderer
public ItsNatTableHeaderCellRenderer createDefaultItsNatTableHeaderCellRenderer()(Code)
Creates a new default table header cell content renderer. a new default table header cell content renderer.



createDefaultItsNatTableStructure
public ItsNatTableStructure createDefaultItsNatTableStructure()(Code)
Creates a new default table structure manager. a new default table structure manager.



createDefaultItsNatTreeCellEditor
public ItsNatTreeCellEditor createDefaultItsNatTreeCellEditor(ItsNatComponent compEditor)(Code)
Creates a default tree node editor instance using the specified component as the editor.

Current implementation supports org.itsnat.comp.html.ItsNatHTMLInputText , org.itsnat.comp.html.ItsNatHTMLSelectComboBox , org.itsnat.comp.html.ItsNatHTMLInputCheckBox and org.itsnat.comp.html.ItsNatHTMLTextArea as editors.


Parameters:
  compEditor - the component used as editor. If null org.itsnat.comp.html.ItsNatHTMLInputText (text not formatted version) is used. a default tree node editor instance.



createDefaultItsNatTreeCellRenderer
public ItsNatTreeCellRenderer createDefaultItsNatTreeCellRenderer()(Code)
Creates a new default tree node content renderer. a new default tree node content renderer.



createDefaultItsNatTreeStructure
public ItsNatTreeStructure createDefaultItsNatTreeStructure()(Code)
Creates a new default tree structure manager. a new default tree structure manager.



createItsNatButtonGroup
public ItsNatButtonGroup createItsNatButtonGroup()(Code)
Creates a new ItsNat button group with a generated name and a new javax.swing.ButtonGroup.

Generated name is unique per document.

a new ItsNat button group.



createItsNatComponent
public ItsNatComponent createItsNatComponent(Node node, String compType, NameValue[] artifacts)(Code)
Creates a new component object associated to the specified node.

All registered CreateItsNatComponentListener listeners are used to create the component.


Parameters:
  node - the node to associate the new component.
Parameters:
  compType - the component type, if null the type is obtained from the node.
Parameters:
  artifacts - declared artifacts, may be null. the new component, is null if no component can be created with the submitted parameters.
See Also:   org.itsnat.core.DocumentTemplate.addCreateItsNatComponentListener(CreateItsNatComponentListener)



createItsNatComponent
public ItsNatComponent createItsNatComponent(Node node)(Code)
Creates a new component object associated to the specified node.

Current implementation calls:

 return createItsNatComponent(node,null,null);
 

Parameters:
  node - the node to associate the new component. the new component, is null if no component can be created.
See Also:   ItsNatComponentManager.createItsNatComponent(org.w3c.dom.Node,String,NameValue[])



createItsNatComponentById
public ItsNatComponent createItsNatComponentById(String id)(Code)
Creates a new component object associated to the node with the specified id attribute.

Current implementation calls:

 return createItsNatComponentById(id,null,null);
 

Parameters:
  id - the attribute id of the node to associate the new component. the new component, is null if no component can be created.
See Also:   ItsNatComponentManager.createItsNatComponentById(String,String,NameValue[])



createItsNatComponentById
public ItsNatComponent createItsNatComponentById(String id, String compType, NameValue[] artifacts)(Code)
Creates a new component object associated to the node with the specified id attribute.

Current implementation:

 Document doc = getItsNatDocument().getDocument();
 Element node = doc.getElementById(id);         
 return createItsNatComponent(node,compType,artifacts);
 

Parameters:
  id - the attribute id of the node to associate the new component.
Parameters:
  compType - the component type, if null the type is obtained from the node.
Parameters:
  artifacts - declared artifacts, may be null. the new component, is null if no component can be created.
See Also:   ItsNatComponentManager.createItsNatComponent(org.w3c.dom.Node,String,NameValue[])



createItsNatFreeButtonNormal
public ItsNatFreeButtonNormal createItsNatFreeButtonNormal(Element element, NameValue[] artifacts)(Code)
Creates a new free normal button component.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free normal button component.



createItsNatFreeButtonNormalLabel
public ItsNatFreeButtonNormalLabel createItsNatFreeButtonNormalLabel(Element element, NameValue[] artifacts)(Code)
Creates a new free normal button component with a label.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free normal button component.



createItsNatFreeCheckBox
public ItsNatFreeCheckBox createItsNatFreeCheckBox(Element element, NameValue[] artifacts)(Code)
Creates a new free check box component.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free check box component.



createItsNatFreeCheckBoxLabel
public ItsNatFreeCheckBoxLabel createItsNatFreeCheckBoxLabel(Element element, NameValue[] artifacts)(Code)
Creates a new free check box component with a label.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free check box component.



createItsNatFreeComboBox
public ItsNatFreeComboBox createItsNatFreeComboBox(Element element, ItsNatListStructure structure, NameValue[] artifacts)(Code)
Creates a new free combo box component.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  structure - the specified structure, if null then is obtained from artifacts ("useStructure"), if not defined then from markup ("useStructure" attribute), if not defined the default structure is used.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free combo box component.
See Also:   ItsNatComponentManager.createDefaultItsNatListStructure()



createItsNatFreeInclude
public ItsNatFreeInclude createItsNatFreeInclude(Element element, NameValue[] artifacts)(Code)
Creates a new free include component.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free include component.



createItsNatFreeLabel
public ItsNatFreeLabel createItsNatFreeLabel(Element element, NameValue[] artifacts)(Code)
Creates a new free label component.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free label component.



createItsNatFreeListMultSel
public ItsNatFreeListMultSel createItsNatFreeListMultSel(Element element, ItsNatListStructure structure, NameValue[] artifacts)(Code)
Creates a new free list component.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  structure - the specified structure, if null then is obtained from artifacts ("useStructure"), if not defined then from markup ("useStructure" attribute), if not defined the default structure is used.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free list component.
See Also:   ItsNatComponentManager.createDefaultItsNatListStructure()



createItsNatFreeRadioButton
public ItsNatFreeRadioButton createItsNatFreeRadioButton(Element element, NameValue[] artifacts)(Code)
Creates a new free radio button component.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free radio buttom component.



createItsNatFreeRadioButtonLabel
public ItsNatFreeRadioButtonLabel createItsNatFreeRadioButtonLabel(Element element, NameValue[] artifacts)(Code)
Creates a new free radio buttom component with a label.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free radio buttom component.



createItsNatFreeTable
public ItsNatFreeTable createItsNatFreeTable(Element element, ItsNatTableStructure structure, NameValue[] artifacts)(Code)
Creates a new free table component.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  structure - the specified structure, if null then is obtained from artifacts ("useStructure"), if not defined then from markup ("useStructure" attribute), if not defined the default structure is used.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free table component.
See Also:   ItsNatComponentManager.createDefaultItsNatTableStructure()



createItsNatFreeTree
public ItsNatFreeTree createItsNatFreeTree(Element element, boolean treeTable, boolean rootless, ItsNatTreeStructure structure, NameValue[] artifacts)(Code)
Creates a new free tree component.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  treeTable - true if this tree is a tree-table.
Parameters:
  rootless - true if this tree is rootless (root node has not view).
Parameters:
  structure - the specified structure, if null then is obtained from artifacts ("useStructure"), if not defined then from markup ("useStructure" attribute), if not defined the default structure is used.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free tree component.
See Also:   ItsNatComponentManager.createDefaultItsNatTreeStructure()
See Also:   ItsNatComponentManager.createItsNatFreeTree(Element,NameValue[])



createItsNatFreeTree
public ItsNatFreeTree createItsNatFreeTree(Element element, NameValue[] artifacts)(Code)
Creates a new free tree component.

By default is not a tree-table unless "treeTable" is defined in the artifacts (value "true") or as a markup attribute (value "true").

By default the root node has view unless "rootless" is defined in the artifacts (value "true") or as a markup attribute (value "true").

The structure is obtained from artifacts ("useStructure"), if not defined then from markup ("useStructure" attribute), if not defined the default structure is used.
Parameters:
  element - the DOM element associated. Can not be null.
Parameters:
  artifacts - artifacts used to construct the component. May be null. a new free tree component.
See Also:   ItsNatComponentManager.createItsNatFreeTree(Element,boolean,boolean,ItsNatTreeStructure,NameValue[])




findItsNatComponent
public ItsNatComponent findItsNatComponent(Node node)(Code)
Returns the registered component associated to the specified node.
Parameters:
  node - the node the search the associated component. the component associated to the specified node or null if not found.
See Also:   ItsNatComponentManager.addItsNatComponent(org.w3c.dom.Node)



findItsNatComponentById
public ItsNatComponent findItsNatComponentById(String id)(Code)
Returns the registered component associated to the node which id attribute is specified.

Current implementation:

 Document doc = getItsNatDocument().getDocument();
 Element node = doc.getElementById(id);         
 return findItsNatComponent(node);
 

Parameters:
  id - the attribute id of the node to search. the component associated to the specified node or null if not found.
See Also:   ItsNatComponentManager.findItsNatComponent(org.w3c.dom.Node)



getItsNatButtonGroup
public ItsNatButtonGroup getItsNatButtonGroup(String name)(Code)
Returns the ItsNat button group with the specified name.
Parameters:
  name - the button group name to search for. the ItsNat button group, if not found a new one is registered and returned.
See Also:   ItsNatComponentManager.getItsNatButtonGroup(javax.swing.ButtonGroup)



getItsNatButtonGroup
public ItsNatButtonGroup getItsNatButtonGroup(ButtonGroup group)(Code)
Returns the ItsNat button group with the specified Swing button group.
Parameters:
  group - the Swing button group to search for. the ItsNat button group, if not found a new one is registered and returned.
See Also:   ItsNatComponentManager.getItsNatButtonGroup(String)



getItsNatDocument
public ItsNatDocument getItsNatDocument()(Code)
Returns the associated ItsNat document (parent of this object). the associated ItsNat document.



isExcludedNodeAsItsNatComponent
public boolean isExcludedNodeAsItsNatComponent(Node node)(Code)
Informs whether the specified node is in the excluded registry.
Parameters:
  node - the node to search for.
See Also:   ItsNatComponentManager.addExcludedNodeAsItsNatComponent(org.w3c.dom.Node)



removeExcludedNodeAsItsNatComponent
public void removeExcludedNodeAsItsNatComponent(Node node)(Code)
Removes the specified node from the excluded registry.
Parameters:
  node - the node to exclude.
See Also:   ItsNatComponentManager.addExcludedNodeAsItsNatComponent(org.w3c.dom.Node)



removeItsNatComponent
public ItsNatComponent removeItsNatComponent(Node node)(Code)
Unregisters the component associated to the specified node.
Parameters:
  node - the node the search the associated component. the component associated to the specified node or null if not found.
See Also:   ItsNatComponentManager.findItsNatComponent(org.w3c.dom.Node)



removeItsNatComponent
public ItsNatComponent removeItsNatComponent(String id)(Code)
Unregisters the component associated to the node specified by the id attribute.

Current implementation:

 Document doc = getItsNatDocument().getDocument();
 Element node = doc.getElementById(id);         
 return removeItsNatComponent(node);
 

Parameters:
  id - the attribute id of the node to search. the component associated to the specified node or null if not found.
See Also:   ItsNatComponentManager.removeItsNatComponent(org.w3c.dom.Node)



removeItsNatComponents
public ItsNatComponent[] removeItsNatComponents(Node node, boolean dispose)(Code)
Navigates recursively the subtree below the specified node (included) and for every node removes the associated component if any from the registry and optionally disposes it.
Parameters:
  node - the node parent of the subtree.
Parameters:
  dispose - if every component found is disposed. an array with the components removed.
See Also:   ItsNatComponentManager.removeItsNatComponents(boolean)
See Also:   ItsNatComponentManager.removeItsNatComponent(org.w3c.dom.Node)
See Also:   ItsNatComponentManager.buildItsNatComponents(org.w3c.dom.Node)
See Also:   



removeItsNatComponents
public ItsNatComponent[] removeItsNatComponents(boolean dispose)(Code)
Navigates recursively the document and for every node removes the associated component if any from the registry and optionally disposes it.
Parameters:
  dispose - if every component found is disposed. an array with the components removed.
See Also:   ItsNatComponentManager.removeItsNatComponents(org.w3c.dom.Node,boolean)
See Also:   



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.