| org.itsnat.comp.ItsNatComponentManager
All known Subclasses: org.itsnat.impl.comp.ItsNatComponentManagerImpl,
Method Summary | |
public void | addExcludedNodeAsItsNatComponent(Node node) Registers the specified node in the excluded registry. | public ItsNatComponent | addItsNatComponent(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 ItsNatComponent | addItsNatComponent(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 void | addItsNatComponent(ItsNatComponent comp) Adds to the manager registry the specified component object. | public ItsNatComponent | addItsNatComponentById(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 ItsNatComponent | addItsNatComponentById(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 ItsNatLabelEditor | createDefaultItsNatLabelEditor(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 ItsNatLabelRenderer | createDefaultItsNatLabelRenderer() Creates a new default label renderer. | public ItsNatListCellEditor | createDefaultItsNatListCellEditor(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 ItsNatListCellRenderer | createDefaultItsNatListCellRenderer() Creates a new default list element content renderer. | public ItsNatListStructure | createDefaultItsNatListStructure() Creates a new default list structure manager. | public ItsNatTableCellEditor | createDefaultItsNatTableCellEditor(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 ItsNatTableCellRenderer | createDefaultItsNatTableCellRenderer() Creates a new default table cell content renderer. | public ItsNatTableHeaderCellRenderer | createDefaultItsNatTableHeaderCellRenderer() Creates a new default table header cell content renderer. | public ItsNatTableStructure | createDefaultItsNatTableStructure() Creates a new default table structure manager. | public ItsNatTreeCellEditor | createDefaultItsNatTreeCellEditor(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 ItsNatTreeCellRenderer | createDefaultItsNatTreeCellRenderer() Creates a new default tree node content renderer. | public ItsNatTreeStructure | createDefaultItsNatTreeStructure() Creates a new default tree structure manager. | public ItsNatButtonGroup | createItsNatButtonGroup() Creates a new ItsNat button group with a generated name and a new javax.swing.ButtonGroup . | public ItsNatComponent | createItsNatComponent(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 ItsNatComponent | createItsNatComponent(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 ItsNatComponent | createItsNatComponentById(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 ItsNatComponent | createItsNatComponentById(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 ItsNatFreeButtonNormal | createItsNatFreeButtonNormal(Element element, NameValue[] artifacts) Creates a new free normal button component.
Parameters: element - the DOM element associated. | public ItsNatFreeButtonNormalLabel | createItsNatFreeButtonNormalLabel(Element element, NameValue[] artifacts) Creates a new free normal button component with a label.
Parameters: element - the DOM element associated. | public ItsNatFreeCheckBox | createItsNatFreeCheckBox(Element element, NameValue[] artifacts) Creates a new free check box component.
Parameters: element - the DOM element associated. | public ItsNatFreeCheckBoxLabel | createItsNatFreeCheckBoxLabel(Element element, NameValue[] artifacts) Creates a new free check box component with a label.
Parameters: element - the DOM element associated. | public ItsNatFreeComboBox | createItsNatFreeComboBox(Element element, ItsNatListStructure structure, NameValue[] artifacts) Creates a new free combo box component.
Parameters: element - the DOM element associated. | public ItsNatFreeInclude | createItsNatFreeInclude(Element element, NameValue[] artifacts) Creates a new free include component.
Parameters: element - the DOM element associated. | public ItsNatFreeLabel | createItsNatFreeLabel(Element element, NameValue[] artifacts) Creates a new free label component.
Parameters: element - the DOM element associated. | public ItsNatFreeListMultSel | createItsNatFreeListMultSel(Element element, ItsNatListStructure structure, NameValue[] artifacts) Creates a new free list component.
Parameters: element - the DOM element associated. | public ItsNatFreeRadioButton | createItsNatFreeRadioButton(Element element, NameValue[] artifacts) Creates a new free radio button component.
Parameters: element - the DOM element associated. | public ItsNatFreeRadioButtonLabel | createItsNatFreeRadioButtonLabel(Element element, NameValue[] artifacts) Creates a new free radio buttom component with a label.
Parameters: element - the DOM element associated. | public ItsNatFreeTable | createItsNatFreeTable(Element element, ItsNatTableStructure structure, NameValue[] artifacts) Creates a new free table component.
Parameters: element - the DOM element associated. | public ItsNatFreeTree | createItsNatFreeTree(Element element, boolean treeTable, boolean rootless, ItsNatTreeStructure structure, NameValue[] artifacts) Creates a new free tree component.
Parameters: element - the DOM element associated. | public ItsNatFreeTree | createItsNatFreeTree(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 ItsNatComponent | findItsNatComponent(Node node) Returns the registered component associated to the specified node.
Parameters: node - the node the search the associated component. | public ItsNatComponent | findItsNatComponentById(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 ItsNatButtonGroup | getItsNatButtonGroup(String name) Returns the ItsNat button group with the specified name.
Parameters: name - the button group name to search for. | public ItsNatButtonGroup | getItsNatButtonGroup(ButtonGroup group) Returns the ItsNat button group with the specified Swing button group.
Parameters: group - the Swing button group to search for. | public ItsNatDocument | getItsNatDocument() Returns the associated ItsNat document (parent of this object). | public boolean | isExcludedNodeAsItsNatComponent(Node node) Informs whether the specified node is in the excluded registry. | public void | removeExcludedNodeAsItsNatComponent(Node node) Removes the specified node from the excluded registry. | public ItsNatComponent | removeItsNatComponent(Node node) Unregisters the component associated to the specified node.
Parameters: node - the node the search the associated component. | public ItsNatComponent | removeItsNatComponent(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. |
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()(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) |
createDefaultItsNatLabelRenderer | public ItsNatLabelRenderer createDefaultItsNatLabelRenderer()(Code) | | Creates a new default label renderer.
a new default label renderer. |
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. |
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. |
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. |
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, 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[]) |
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) |
getItsNatDocument | public ItsNatDocument getItsNatDocument()(Code) | | Returns the associated ItsNat document (parent of this object).
the associated ItsNat document. |
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) |
|
|