public interface ItsNatListUI extends ItsNatElementComponentUI
List items are managed as a DOM element list, using the current list structure and renderer.
Current implementation does not use the data model and relays heavily on
ElementList
.
Indexes are 0 based.
ItsNatList.getItsNatListUI()
,
ItsNatList.getItsNatListCellRenderer()
,
ItsNatList.getItsNatListStructure()
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
getContentElementAt(int index)
Returns the "content" element, this element is used to render below
the associated value of the child element.
|
org.w3c.dom.Element |
getElementAt(int index)
Returns the child element at the specified index.
|
ItsNatList |
getItsNatList()
Returns the associated component object.
|
ItsNatListCellUI |
getItsNatListCellUIAt(int index)
Returns an object info of the child element at the specified position.
|
ItsNatListCellUI |
getItsNatListCellUIFromNode(org.w3c.dom.Node node)
Returns an object info of the child element containing the specified node (or the node
is itself an element of the list).
|
int |
getLength()
Returns the number of child elements.
|
boolean |
isEmpty()
Informs whether the list is empty (no elements).
|
boolean |
isUsePatternMarkupToRender()
Informs whether the original (saved as pattern) markup is used to render.
|
void |
setUsePatternMarkupToRender(boolean value)
Sets whether the original (saved as pattern) markup is used to render.
|
getItsNatElementComponent
getItsNatComponent
ItsNatList getItsNatList()
int getLength()
NodeList.getLength()
boolean isEmpty()
ElementListBase.isEmpty()
org.w3c.dom.Element getElementAt(int index)
index
- index of the child element to search.ElementListBase.getElementAt(int)
org.w3c.dom.Element getContentElementAt(int index)
index
- index of the element.ItsNatListStructure.getContentElement(ItsNatList,int,Element)
,
ElementList.getContentElementAt(int)
ItsNatListCellUI getItsNatListCellUIAt(int index)
index
- index of the element to search for.getItsNatListCellUIFromNode(Node)
,
ElementListBase.getListElementInfoAt(int)
ItsNatListCellUI getItsNatListCellUIFromNode(org.w3c.dom.Node node)
node
- the node to search for.getItsNatListCellUIAt(int)
,
ElementListBase.getListElementInfoFromNode(Node)
boolean isUsePatternMarkupToRender()
The default value is defined by ItsNatDocument.isUsePatternMarkupToRender()
setUsePatternMarkupToRender(boolean)
void setUsePatternMarkupToRender(boolean value)
value
- true to enable the use of original markup to render.isUsePatternMarkupToRender()
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.