Java Doc for ItsNatListUI.java in  » Ajax » ItsNat » org » itsnat » comp » ui » 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.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.itsnat.comp.ui.ItsNatListUI

All known Subclasses:   org.itsnat.impl.comp.ui.ItsNatListUIImpl,
ItsNatListUI
public interface ItsNatListUI extends ItsNatElementComponentUI(Code)
Is the base interface of the User Interface of a list component.

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 org.itsnat.core.domutil.ElementList .

Indexes are 0 based.


author:
   Jose Maria Arranz Santamaria
See Also:   ItsNatList.getItsNatListUI
See Also:   ItsNatList.getItsNatListCellRenderer
See Also:   ItsNatList.getItsNatListStructure
See Also:   




Method Summary
public  ElementgetContentElementAt(int index)
     Returns the "content" element, this element is used to render below the associated value of the child element.
public  ElementgetElementAt(int index)
     Returns the child element at the specified index.
Parameters:
  index - index of the child element to search.
public  ItsNatListgetItsNatList()
     Returns the associated component object.
public  ItsNatListCellUIgetItsNatListCellUIAt(int index)
     Returns an object info of the child element at the specified position.
Parameters:
  index - index of the element to search for.
public  ItsNatListCellUIgetItsNatListCellUIFromNode(Node node)
     Returns an object info of the child element containing the specified node (or the node is itself an element of the list).
Parameters:
  node - the node to search for.
public  intgetLength()
     Returns the number of child elements.
public  ElementinsertElementAt(int index, Object value)
     Inserts a new child element at the specified position rendering the specified item value.
Parameters:
  index - index of the new child element.
Parameters:
  value - the item value to render as markup.
public  booleanisEmpty()
     Informs whether the list is empty (no elements).
public  booleanisUsePatternMarkupToRender()
     Informs whether the original (saved as pattern) markup is used to render.
public  voidremoveAllElements()
     Removes all child elements.
public  ElementremoveElementAt(int index)
     Removes the specified child element.
Parameters:
  index - index of the element to remove.
public  voidremoveElementRange(int fromIndex, int toIndex)
     Removes the child elements between the specified indexes.
public  voidsetElementValueAt(int index, Object value, boolean isSelected, boolean hasFocus)
     Renders the specified value into the child element with the given position.
Parameters:
  index - index of the element.
public  voidsetLength(int len)
     Increases or shrinks the list to fit the new size.
public  voidsetUsePatternMarkupToRender(boolean value)
     Sets whether the original (saved as pattern) markup is used to render.



Method Detail
getContentElementAt
public Element getContentElementAt(int index)(Code)
Returns the "content" element, this element is used to render below the associated value of the child element. This element is obtained using the current structure.
Parameters:
  index - index of the element. the content element.
See Also:   org.itsnat.comp.ItsNatListStructure.getContentElement(org.itsnat.comp.ItsNatListintElement)
See Also:   org.itsnat.core.domutil.ElementList.getContentElementAt(int)
See Also:   



getElementAt
public Element getElementAt(int index)(Code)
Returns the child element at the specified index.
Parameters:
  index - index of the child element to search. the element in this position or null if index is out of range.
See Also:   org.itsnat.core.domutil.ElementListBase.getElementAt(int)
See Also:   



getItsNatList
public ItsNatList getItsNatList()(Code)
Returns the associated component object. the component object.



getItsNatListCellUIAt
public ItsNatListCellUI getItsNatListCellUIAt(int index)(Code)
Returns an object info of the child element at the specified position.
Parameters:
  index - index of the element to search for. the object info of the matched child element. Null if index is out of range.This object is ever the same per list item and may be used to save any context data.
See Also:   ItsNatListUI.getItsNatListCellUIFromNode(Node)
See Also:   org.itsnat.core.domutil.ElementListBase.getListElementInfoAt(int)



getItsNatListCellUIFromNode
public ItsNatListCellUI getItsNatListCellUIFromNode(Node node)(Code)
Returns an object info of the child element containing the specified node (or the node is itself an element of the list).
Parameters:
  node - the node to search for. the object info of the matched child element. Null if this node is not contained by the list.This object is ever the same per list item and may be used to save any context data.
See Also:   ItsNatListUI.getItsNatListCellUIAt(int)
See Also:   org.itsnat.core.domutil.ElementListBase.getListElementInfoFromNode(Node)



getLength
public int getLength()(Code)
Returns the number of child elements. the number of child elements.
See Also:   org.itsnat.core.domutil.ElementList.getLength



insertElementAt
public Element insertElementAt(int index, Object value)(Code)
Inserts a new child element at the specified position rendering the specified item value.
Parameters:
  index - index of the new child element.
Parameters:
  value - the item value to render as markup. the new element.
See Also:   org.itsnat.core.domutil.ElementList.insertElementAt(intObject)



isEmpty
public boolean isEmpty()(Code)
Informs whether the list is empty (no elements). true if the list is empty.
See Also:   org.itsnat.core.domutil.ElementListBase.isEmpty
See Also:   



isUsePatternMarkupToRender
public boolean isUsePatternMarkupToRender()(Code)
Informs whether the original (saved as pattern) markup is used to render.

The default value is defined by org.itsnat.core.ItsNatDocument.isUsePatternMarkupToRender

true if the original markup is used.
See Also:   ItsNatListUI.setUsePatternMarkupToRender(boolean)



removeAllElements
public void removeAllElements()(Code)
Removes all child elements. The list is now empty.
See Also:   org.itsnat.core.domutil.ElementListBase.removeAllElements
See Also:   



removeElementAt
public Element removeElementAt(int index)(Code)
Removes the specified child element.
Parameters:
  index - index of the element to remove. the removed element or null if index is out of bounds.
See Also:   org.itsnat.core.domutil.ElementListBase.removeElementAt(int)
See Also:   



removeElementRange
public void removeElementRange(int fromIndex, int toIndex)(Code)
Removes the child elements between the specified indexes.
Parameters:
  fromIndex - low index (inclusive).
Parameters:
  toIndex - high index (inclusive).
See Also:   org.itsnat.core.domutil.ElementListBase.removeElementRange(intint)
See Also:   



setElementValueAt
public void setElementValueAt(int index, Object value, boolean isSelected, boolean hasFocus)(Code)
Renders the specified value into the child element with the given position.
Parameters:
  index - index of the element.
Parameters:
  value - the value to render.
Parameters:
  isSelected - if this child element is selected.
Parameters:
  hasFocus - if this child element has the focus. Current ItsNat implementation ever passes false.
See Also:   org.itsnat.core.domutil.ElementList.setElementValueAt(intObject)
See Also:   



setLength
public void setLength(int len)(Code)
Increases or shrinks the list to fit the new size.

If the new size is bigger new elements are added at the end, if the size is lower tail elements are removed.


Parameters:
  len - the new number of child elements.
See Also:   org.itsnat.core.domutil.ElementList.setLength(int)
See Also:   



setUsePatternMarkupToRender
public void setUsePatternMarkupToRender(boolean value)(Code)
Sets whether the original (saved as pattern) markup is used to render.
Parameters:
  value - true to enable the use of original markup to render.
See Also:   ItsNatListUI.isUsePatternMarkupToRender()



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