public interface ItsNatComponentManager
ItsNatDocument
.ItsNatDocument.getItsNatComponentManager()
Modifier and Type | Method and Description |
---|---|
void |
addCreateItsNatComponentListener(CreateItsNatComponentListener listener)
Adds a new user defined component factory.
|
void |
addExcludedNodeAsItsNatComponent(org.w3c.dom.Node node)
Registers the specified node in the excluded registry.
|
ItsNatComponent |
addItsNatComponent(ItsNatComponent comp)
Adds to the manager registry the specified component object.
|
ItsNatComponent |
addItsNatComponent(org.w3c.dom.Node node)
Creates and adds to the manager registry a new component object associated to the specified node.
|
ItsNatComponent |
addItsNatComponent(org.w3c.dom.Node node,
java.lang.String compType,
NameValue[] artifacts)
Creates and adds to the manager registry a new component object associated to the specified node.
|
ItsNatComponent |
addItsNatComponentById(java.lang.String id)
Creates and adds to the manager registry a new component object associated to the node with the specified id attribute.
|
ItsNatComponent |
addItsNatComponentById(java.lang.String id,
java.lang.String compType,
NameValue[] artifacts)
Creates and adds to the manager registry a new component object associated to the node with the specified id attribute.
|
ItsNatComponent[] |
buildItsNatComponents()
Navigates recursively the document tree and for every node tries
to create and register the built-in component associated to the node.
|
ItsNatComponent[] |
buildItsNatComponents(org.w3c.dom.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.
|
ItsNatLabelEditor |
createDefaultItsNatLabelEditor(ItsNatComponent compEditor)
Creates a default label editor instance using the specified component
as the editor.
|
ItsNatLabelRenderer |
createDefaultItsNatLabelRenderer()
Creates a new default label renderer.
|
ItsNatListCellEditor |
createDefaultItsNatListCellEditor(ItsNatComponent compEditor)
Creates a default list editor instance using the specified component
as the editor.
|
ItsNatListCellRenderer |
createDefaultItsNatListCellRenderer()
Creates a new default list element content renderer.
|
ItsNatListStructure |
createDefaultItsNatListStructure()
Creates a new default list structure manager.
|
ItsNatTableCellEditor |
createDefaultItsNatTableCellEditor(ItsNatComponent compEditor)
Creates a default table editor instance using the specified component
as the editor.
|
ItsNatTableCellRenderer |
createDefaultItsNatTableCellRenderer()
Creates a new default table cell content renderer.
|
ItsNatTableHeaderCellRenderer |
createDefaultItsNatTableHeaderCellRenderer()
Creates a new default table header cell content renderer.
|
ItsNatTableStructure |
createDefaultItsNatTableStructure()
Creates a new default table structure manager.
|
ItsNatTreeCellEditor |
createDefaultItsNatTreeCellEditor(ItsNatComponent compEditor)
Creates a default tree node editor instance using the specified component
as the editor.
|
ItsNatTreeCellRenderer |
createDefaultItsNatTreeCellRenderer()
Creates a new default tree node content renderer.
|
ItsNatTreeStructure |
createDefaultItsNatTreeStructure()
Creates a new default tree structure manager.
|
ItsNatButtonGroup |
createItsNatButtonGroup()
Creates a new ItsNat button group with a generated name and a new
javax.swing.ButtonGroup . |
ItsNatComponent |
createItsNatComponent(org.w3c.dom.Node node)
Creates a new component object associated to the specified node.
|
ItsNatComponent |
createItsNatComponent(org.w3c.dom.Node node,
java.lang.String compType,
NameValue[] artifacts)
Creates a new component object associated to the specified node.
|
ItsNatComponent |
createItsNatComponentById(java.lang.String id)
Creates a new component object associated to the node with the specified id attribute.
|
ItsNatComponent |
createItsNatComponentById(java.lang.String id,
java.lang.String compType,
NameValue[] artifacts)
Creates a new component object associated to the node with the specified id attribute.
|
ItsNatFreeButtonNormal |
createItsNatFreeButtonNormal(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new free normal button component.
|
ItsNatFreeButtonNormalLabel |
createItsNatFreeButtonNormalLabel(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new free normal button component with a label.
|
ItsNatFreeCheckBox |
createItsNatFreeCheckBox(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new free check box component.
|
ItsNatFreeCheckBoxLabel |
createItsNatFreeCheckBoxLabel(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new free check box component with a label.
|
ItsNatFreeComboBox |
createItsNatFreeComboBox(org.w3c.dom.Element element,
ItsNatListStructure structure,
NameValue[] artifacts)
Creates a new free combo box component.
|
ItsNatFreeInclude |
createItsNatFreeInclude(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new free include component.
|
ItsNatFreeLabel |
createItsNatFreeLabel(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new free label component.
|
ItsNatFreeListMultSel |
createItsNatFreeListMultSel(org.w3c.dom.Element element,
ItsNatListStructure structure,
NameValue[] artifacts)
Creates a new free list component.
|
ItsNatFreeRadioButton |
createItsNatFreeRadioButton(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new free radio button component.
|
ItsNatFreeRadioButtonLabel |
createItsNatFreeRadioButtonLabel(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new free radio buttom component with a label.
|
ItsNatFreeTable |
createItsNatFreeTable(org.w3c.dom.Element element,
ItsNatTableStructure structure,
NameValue[] artifacts)
Creates a new free table component.
|
ItsNatFreeTree |
createItsNatFreeTree(org.w3c.dom.Element element,
boolean treeTable,
boolean rootless,
ItsNatTreeStructure structure,
NameValue[] artifacts)
Creates a new free tree component.
|
ItsNatFreeTree |
createItsNatFreeTree(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new free tree component.
|
ItsNatModalLayer |
createItsNatModalLayer(org.w3c.dom.Element element,
boolean cleanBelow,
float opacity,
java.lang.String background,
NameValue[] artifacts)
Creates a new modal layer component using the specified element if provided.
|
ItsNatModalLayer |
createItsNatModalLayer(org.w3c.dom.Element element,
boolean cleanBelow,
int zIndex,
float opacity,
java.lang.String background,
NameValue[] artifacts)
Creates a new modal layer component using the specified element if provided.
|
ItsNatModalLayer |
createItsNatModalLayer(org.w3c.dom.Element element,
NameValue[] artifacts)
Creates a new modal layer component using the specified element if provided
By default cleanBelow is false unless "cleanBelow" is defined as artifact or as a markup attribute.
|
ItsNatComponent |
findItsNatComponent(org.w3c.dom.Node node)
Returns the registered component associated to the specified node.
|
ItsNatComponent |
findItsNatComponentById(java.lang.String id)
Returns the registered component associated to the node which id attribute is specified.
|
ItsNatButtonGroup |
getItsNatButtonGroup(javax.swing.ButtonGroup group)
Returns the ItsNat button group with the specified Swing button group.
|
ItsNatButtonGroup |
getItsNatButtonGroup(java.lang.String name)
Returns the ItsNat button group with the specified name.
|
ItsNatDocument |
getItsNatDocument()
Returns the associated ItsNat document (parent of this object).
|
boolean |
isAutoBuildComponents()
Informs whether components are built automatically using the necessary
markup declarations.
|
boolean |
isExcludedNodeAsItsNatComponent(org.w3c.dom.Node node)
Informs whether the specified node is in the excluded registry.
|
boolean |
isMarkupDrivenComponents()
Informs whether markup driven mode is used in new components.
|
boolean |
isSelectionOnComponentsUsesKeyboard()
Informs whether the keyboard is necessary for selection on components.
|
void |
removeCreateItsNatComponentListener(CreateItsNatComponentListener listener)
Removes the specified user defined component factory.
|
void |
removeExcludedNodeAsItsNatComponent(org.w3c.dom.Node node)
Removes the specified node from the excluded registry.
|
ItsNatComponent |
removeItsNatComponent(org.w3c.dom.Node node)
Unregisters the component associated to the specified node.
|
ItsNatComponent |
removeItsNatComponent(java.lang.String id)
Unregisters the component associated to the node specified by the id attribute.
|
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.
|
ItsNatComponent[] |
removeItsNatComponents(org.w3c.dom.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.
|
void |
setAutoBuildComponents(boolean value)
Sets whether components are built automatically using the necessary
markup declarations.
|
void |
setMarkupDrivenComponents(boolean value)
Sets whether markup driven mode is used in components.
|
void |
setSelectionOnComponentsUsesKeyboard(boolean value)
Informs whether the keyboard is necessary for selection on components
This method does not change the current state of already created components
but may be the default value of new components with this feature.
|
ItsNatDocument getItsNatDocument()
boolean isAutoBuildComponents()
If this feature is enabled any new DOM sub tree added to the document is automatically traversed, any component declared in markup is automatically built and registered into the component manager associated to a DOM element.
When a node is removed from the document tree the associated component if any is removed and disposed automatically.
The default value is defined by ItsNatDocumentTemplate.isAutoBuildComponents()
setAutoBuildComponents(boolean)
void setAutoBuildComponents(boolean value)
value
- true to enable automatic component build.isAutoBuildComponents()
boolean isSelectionOnComponentsUsesKeyboard()
The default value is defined by ItsNatDocumentTemplate.isSelectionOnComponentsUsesKeyboard()
This feature only affects to non-XML documents with events enabled and free components with multiple selection support (lists, tables and trees).
setSelectionOnComponentsUsesKeyboard(boolean)
,
ItsNatFreeListMultSel.isSelectionUsesKeyboard()
,
ItsNatTable.isSelectionUsesKeyboard()
,
ItsNatTree.isSelectionUsesKeyboard()
void setSelectionOnComponentsUsesKeyboard(boolean value)
This method does not change the current state of already created components but may be the default value of new components with this feature.
value
- true to specify the keyboard is necessary for selection.isSelectionOnComponentsUsesKeyboard()
boolean isMarkupDrivenComponents()
The default value is defined by ItsNatDocumentTemplate.isMarkupDrivenComponents()
This feature only affects to some HTML form based components.
setMarkupDrivenComponents(boolean)
,
ItsNatHTMLInputButtonToggle.isMarkupDriven()
,
ItsNatHTMLInputTextBased.isMarkupDriven()
,
ItsNatHTMLTextArea.isMarkupDriven()
void setMarkupDrivenComponents(boolean value)
This method does not change the current state of already created components but may be the default value of new components with this feature.
value
- true to enable markup driven.isMarkupDrivenComponents()
ItsNatButtonGroup getItsNatButtonGroup(java.lang.String name)
name
- the button group name to search for.getItsNatButtonGroup(javax.swing.ButtonGroup)
ItsNatButtonGroup getItsNatButtonGroup(javax.swing.ButtonGroup group)
group
- the Swing button group to search for.getItsNatButtonGroup(String)
ItsNatButtonGroup createItsNatButtonGroup()
javax.swing.ButtonGroup
.
Generated name is unique per document.
void addCreateItsNatComponentListener(CreateItsNatComponentListener listener)
listener
- the listener factory to register.removeCreateItsNatComponentListener(CreateItsNatComponentListener)
,
ItsNatDocumentTemplate.addCreateItsNatComponentListener(CreateItsNatComponentListener)
,
ItsNatServlet.addCreateItsNatComponentListener(CreateItsNatComponentListener)
void removeCreateItsNatComponentListener(CreateItsNatComponentListener listener)
listener
- the listener factory to remove.addCreateItsNatComponentListener(CreateItsNatComponentListener)
ItsNatComponent createItsNatComponent(org.w3c.dom.Node node, java.lang.String compType, NameValue[] artifacts)
All registered CreateItsNatComponentListener
listeners are used
to create the component.
node
- the node to associate the new component.compType
- the component type, if null the type is obtained from the node.artifacts
- declared artifacts, may be null.addCreateItsNatComponentListener(CreateItsNatComponentListener)
,
ItsNatDocumentTemplate.addCreateItsNatComponentListener(CreateItsNatComponentListener)
,
ItsNatServlet.addCreateItsNatComponentListener(CreateItsNatComponentListener)
ItsNatComponent createItsNatComponent(org.w3c.dom.Node node)
Current implementation calls:
return createItsNatComponent(node,null,null);
node
- the node to associate the new component.createItsNatComponent(org.w3c.dom.Node,String,NameValue[])
ItsNatComponent createItsNatComponentById(java.lang.String id)
Current implementation calls:
return createItsNatComponentById(id,null,null);
id
- the attribute id of the node to associate the new component.createItsNatComponentById(String,String,NameValue[])
ItsNatComponent createItsNatComponentById(java.lang.String id, java.lang.String compType, NameValue[] artifacts)
Current implementation:
Document doc = getItsNatDocument().getDocument(); Element node = doc.getElementById(id); return createItsNatComponent(node,compType,artifacts);
id
- the attribute id of the node to associate the new component.compType
- the component type, if null the type is obtained from the node.artifacts
- declared artifacts, may be null.createItsNatComponent(org.w3c.dom.Node,String,NameValue[])
ItsNatComponent addItsNatComponent(org.w3c.dom.Node node, java.lang.String compType, NameValue[] artifacts)
Component creation is delegated to the method 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
addExcludedNodeAsItsNatComponent(org.w3c.dom.Node)
no component is created and registered.
node
- the node to associate the new component.compType
- the component type, if null the type is obtained from the node.artifacts
- declared artifacts, may be null.addItsNatComponent(ItsNatComponent)
ItsNatComponent addItsNatComponent(org.w3c.dom.Node node)
Current implementation calls:
return addItsNatComponent(node,null,null);
node
- the node to associate the new component.addItsNatComponent(org.w3c.dom.Node,String,NameValue[])
ItsNatComponent addItsNatComponentById(java.lang.String id)
Current implementation calls:
return addItsNatComponentById(id,null,null);
id
- the attribute id of the node to associate the new component.addItsNatComponentById(String,String,NameValue[])
ItsNatComponent addItsNatComponentById(java.lang.String id, java.lang.String compType, NameValue[] artifacts)
Current implementation:
Document doc = getItsNatDocument().getDocument(); Element node = doc.getElementById(id); return addItsNatComponent(node,compType,artifacts);
id
- the attribute id of the node to associate the new component.compType
- the component type, if null the type is obtained from the node.artifacts
- declared artifacts, may be null.addItsNatComponent(org.w3c.dom.Node,String,NameValue[])
ItsNatComponent addItsNatComponent(ItsNatComponent comp)
This method ignores the "excluded registry".
comp
- the component to register.addItsNatComponent(org.w3c.dom.Node,String,NameValue[])
,
addExcludedNodeAsItsNatComponent(org.w3c.dom.Node)
ItsNatComponent findItsNatComponentById(java.lang.String id)
Current implementation:
Document doc = getItsNatDocument().getDocument(); Element node = doc.getElementById(id); return findItsNatComponent(node);
id
- the attribute id of the node to search.findItsNatComponent(org.w3c.dom.Node)
ItsNatComponent findItsNatComponent(org.w3c.dom.Node node)
node
- the node the search the associated component.addItsNatComponent(org.w3c.dom.Node)
ItsNatComponent removeItsNatComponent(org.w3c.dom.Node node)
node
- the node the search the associated component.findItsNatComponent(org.w3c.dom.Node)
ItsNatComponent removeItsNatComponent(java.lang.String id)
Current implementation:
Document doc = getItsNatDocument().getDocument(); Element node = doc.getElementById(id); return removeItsNatComponent(node);
id
- the attribute id of the node to search.removeItsNatComponent(org.w3c.dom.Node)
void addExcludedNodeAsItsNatComponent(org.w3c.dom.Node node)
No component is created and registered with addItsNatComponent(org.w3c.dom.Node,String,NameValue[])
if the specified node is in the excluded registry.
node
- the node to exclude.void removeExcludedNodeAsItsNatComponent(org.w3c.dom.Node node)
node
- the node to exclude.addExcludedNodeAsItsNatComponent(org.w3c.dom.Node)
boolean isExcludedNodeAsItsNatComponent(org.w3c.dom.Node node)
node
- the node to search for.addExcludedNodeAsItsNatComponent(org.w3c.dom.Node)
ItsNatComponent[] buildItsNatComponents(org.w3c.dom.Node node)
node
- the node parent of the subtree.buildItsNatComponents()
,
removeItsNatComponents(org.w3c.dom.Node,boolean)
,
addItsNatComponent(org.w3c.dom.Node)
ItsNatComponent[] buildItsNatComponents()
Current implementation is:
Document doc = getItsNatDocument().getDocument(); return buildItsNatComponents(doc);
buildItsNatComponents(org.w3c.dom.Node)
ItsNatComponent[] removeItsNatComponents(org.w3c.dom.Node node, boolean dispose)
node
- the node parent of the subtree.dispose
- if every component found is disposed.removeItsNatComponents(boolean)
,
removeItsNatComponent(org.w3c.dom.Node)
,
buildItsNatComponents(org.w3c.dom.Node)
ItsNatComponent[] removeItsNatComponents(boolean dispose)
dispose
- if every component found is disposed.removeItsNatComponents(org.w3c.dom.Node,boolean)
ItsNatLabelEditor createDefaultItsNatLabelEditor(ItsNatComponent compEditor)
Current implementation supports ItsNatHTMLInputText
,
ItsNatHTMLSelectComboBox
, ItsNatHTMLInputCheckBox
and ItsNatHTMLTextArea
as editors.
compEditor
- the component used as editor. If null ItsNatHTMLInputText
(text not formatted version) is used.ItsNatListCellEditor createDefaultItsNatListCellEditor(ItsNatComponent compEditor)
Current implementation supports ItsNatHTMLInputText
,
ItsNatHTMLSelectComboBox
, ItsNatHTMLInputCheckBox
and ItsNatHTMLTextArea
as editors.
compEditor
- the component used as editor. If null ItsNatHTMLInputText
(text not formatted version) is used.ItsNatTableCellEditor createDefaultItsNatTableCellEditor(ItsNatComponent compEditor)
Current implementation supports ItsNatHTMLInputText
,
ItsNatHTMLSelectComboBox
, ItsNatHTMLInputCheckBox
and ItsNatHTMLTextArea
as editors.
compEditor
- the component used as editor. If null ItsNatHTMLInputText
(text not formatted version) is used.ItsNatTreeCellEditor createDefaultItsNatTreeCellEditor(ItsNatComponent compEditor)
Current implementation supports ItsNatHTMLInputText
,
ItsNatHTMLSelectComboBox
, ItsNatHTMLInputCheckBox
and ItsNatHTMLTextArea
as editors.
compEditor
- the component used as editor. If null ItsNatHTMLInputText
(text not formatted version) is used.ItsNatLabelRenderer createDefaultItsNatLabelRenderer()
ItsNatListCellRenderer createDefaultItsNatListCellRenderer()
ItsNatTableCellRenderer createDefaultItsNatTableCellRenderer()
ItsNatTableHeaderCellRenderer createDefaultItsNatTableHeaderCellRenderer()
ItsNatTreeCellRenderer createDefaultItsNatTreeCellRenderer()
ItsNatListStructure createDefaultItsNatListStructure()
ItsNatTableStructure createDefaultItsNatTableStructure()
ItsNatTreeStructure createDefaultItsNatTreeStructure()
ItsNatFreeInclude createItsNatFreeInclude(org.w3c.dom.Element element, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.ItsNatFreeLabel createItsNatFreeLabel(org.w3c.dom.Element element, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.ItsNatFreeButtonNormal createItsNatFreeButtonNormal(org.w3c.dom.Element element, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.ItsNatFreeButtonNormalLabel createItsNatFreeButtonNormalLabel(org.w3c.dom.Element element, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.ItsNatFreeCheckBox createItsNatFreeCheckBox(org.w3c.dom.Element element, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.ItsNatFreeCheckBoxLabel createItsNatFreeCheckBoxLabel(org.w3c.dom.Element element, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.ItsNatFreeRadioButton createItsNatFreeRadioButton(org.w3c.dom.Element element, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.ItsNatFreeRadioButtonLabel createItsNatFreeRadioButtonLabel(org.w3c.dom.Element element, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.ItsNatFreeComboBox createItsNatFreeComboBox(org.w3c.dom.Element element, ItsNatListStructure structure, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.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.artifacts
- artifacts used to construct the component. May be null.createDefaultItsNatListStructure()
ItsNatFreeListMultSel createItsNatFreeListMultSel(org.w3c.dom.Element element, ItsNatListStructure structure, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.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.artifacts
- artifacts used to construct the component. May be null.createDefaultItsNatListStructure()
ItsNatFreeTable createItsNatFreeTable(org.w3c.dom.Element element, ItsNatTableStructure structure, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.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.artifacts
- artifacts used to construct the component. May be null.createDefaultItsNatTableStructure()
ItsNatFreeTree createItsNatFreeTree(org.w3c.dom.Element element, boolean treeTable, boolean rootless, ItsNatTreeStructure structure, NameValue[] artifacts)
element
- the DOM element associated. Can not be null.treeTable
- true if this tree is a tree-table.rootless
- true if this tree is rootless (root node has not view).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.artifacts
- artifacts used to construct the component. May be null.createDefaultItsNatTreeStructure()
,
createItsNatFreeTree(Element,NameValue[])
ItsNatFreeTree createItsNatFreeTree(org.w3c.dom.Element element, NameValue[] artifacts)
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.
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.createItsNatFreeTree(Element,boolean,boolean,ItsNatTreeStructure,NameValue[])
ItsNatModalLayer createItsNatModalLayer(org.w3c.dom.Element element, boolean cleanBelow, int zIndex, float opacity, java.lang.String background, NameValue[] artifacts)
The z-index associated to the modal layer is the number of modal layer components created before (and not disposed) + 1.
If the background parameter is null, no background property is set. This value is not recommended if you want transparency because in some browsers like MSIE 6 if background is not set the layer allows clicking below. Use opacity=0 and any background color to get a transparent layer capturing click events.
In SVG the background parameter is used to the fill property
element
- the DOM element used to cover the page. May be null (an internal element is used).cleanBelow
- use the clean layer technique.opacity
- a value between 0 and 1 defining the opacity of the modal layer (1 = opaque, 0 = transparent).background
- the background CSS property of the modal layer (fill property in SVG). If null no background is set.artifacts
- artifacts used to construct the component. May be null.ItsNatModalLayer createItsNatModalLayer(org.w3c.dom.Element element, boolean cleanBelow, float opacity, java.lang.String background, NameValue[] artifacts)
By default z-index is the number of current modal layers + 1 unless "zIndex" is defined as artifact or as a markup attribute.
element
- the DOM element used to cover the page. May be null (an internal element is used).cleanBelow
- use the clean layer technique.opacity
- a value between 0 and 1 defining the opacity of the modal layer (1 = opaque, 0 = transparent).background
- the background CSS property of the modal layer (fill property in SVG). If null no background is set.artifacts
- artifacts used to construct the component. May be null.createItsNatModalLayer(Element,boolean,int,float,String,NameValue[])
ItsNatModalLayer createItsNatModalLayer(org.w3c.dom.Element element, NameValue[] artifacts)
By default cleanBelow is false unless "cleanBelow" is defined as artifact or as a markup attribute.
By default z-index is the number of current modal layers + 1 unless "zIndex" is defined as artifact or as a markup attribute.
By default opacity is 1.0 unless "opacity" is defined as artifact or as a markup attribute.
By default background is "black" unless "background" is defined as artifact or as a markup attribute. In XUL is set to null.
element
- the DOM element associated. Can not be null.artifacts
- artifacts used to construct the component. May be null.createItsNatModalLayer(Element,boolean,int,float,String,NameValue[])
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.