Java Doc for ListItem.java in  » Portal » Open-Portal » ob » listbox » 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 » Portal » Open Portal » ob.listbox 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   ob.listbox.ListItem

ListItem
public class ListItem implements Serializable(Code)


Field Summary
protected  Vectorm_arrSubItems
    
protected  booleanm_bIsDisabled
    
protected  booleanm_bIsDropHiLited
    
protected  booleanm_bIsFocused
    
protected  booleanm_bIsMarked
    
protected  booleanm_bIsSelected
    
protected  Fontm_fonFont
    
protected  intm_nCY
    
protected  intm_nImage
    
protected  Objectm_objData
    
protected  Stringm_pszText
    
protected  Rectanglem_rcIcon
    
protected  Rectanglem_rcText
    


Method Summary
public  voidaddSubItem(ListSubItem subItem)
     appends a ListSubItem onto the ListItem.
public  voidaddSubItem(String subitem)
     creates a new subitem based on the String value passed in, and appends it to the current ListItem.
public  voidaddSubItem()
     appends a blank sub item to the end of the ListItem.
public  voidcopy(ListItem item)
    
public  booleandeleteSubItem(int iSubItem)
     deletes a subitem from the ListItem.
public  FontgetFont()
    
public  intgetHeight()
    
public  intgetImage()
    
public  RectanglegetImageBounds()
    
public  ObjectgetItemData()
     An individual item can store an additional data member with it which is independent to what is displayed.
public  ListSubItemgetSubItem(int iSubItem)
     A ListItem is a container of several other ListSubItem instances (which correspond to the individual columns of the row described by the ListItem).
public  intgetSubItemCount()
     retrieves the number of subitems in this ListItem.
public  StringgetText()
    
public  RectanglegetTextBounds()
    
public  voidsetFont(Font f)
    
public  voidsetHeight(int nNewHeight)
    
public  voidsetImage(int id)
    
public  voidsetImageBounds(Rectangle img)
     sets the boundaries of the image part of the ListItem.
public  voidsetImageYPos(int newY)
    
public  voidsetItemData(Object obj)
     A ListItem can store an additional piece of data (derived from Object) which is independent of the display.
public  voidsetSubItems(Vector subItems)
    
public  voidsetText(String s)
    
public  voidsetTextBounds(int x, int y, int width, int height)
    
public  voidsetTextBounds(Rectangle r)
    
public  voidsetTextHeight(int h)
    

Field Detail
m_arrSubItems
protected Vector m_arrSubItems(Code)



m_bIsDisabled
protected boolean m_bIsDisabled(Code)



m_bIsDropHiLited
protected boolean m_bIsDropHiLited(Code)



m_bIsFocused
protected boolean m_bIsFocused(Code)



m_bIsMarked
protected boolean m_bIsMarked(Code)



m_bIsSelected
protected boolean m_bIsSelected(Code)



m_fonFont
protected Font m_fonFont(Code)



m_nCY
protected int m_nCY(Code)



m_nImage
protected int m_nImage(Code)



m_objData
protected Object m_objData(Code)



m_pszText
protected String m_pszText(Code)



m_rcIcon
protected Rectangle m_rcIcon(Code)



m_rcText
protected Rectangle m_rcText(Code)





Method Detail
addSubItem
public void addSubItem(ListSubItem subItem)(Code)
appends a ListSubItem onto the ListItem.
Parameters:
  subItem - which ListSubItem to add on



addSubItem
public void addSubItem(String subitem)(Code)
creates a new subitem based on the String value passed in, and appends it to the current ListItem.
Parameters:
  subitem - the text for the new subitem as type String



addSubItem
public void addSubItem()(Code)
appends a blank sub item to the end of the ListItem.



copy
public void copy(ListItem item)(Code)
copies the data of another ListItem
Parameters:
  item - ListItem to copy from



deleteSubItem
public boolean deleteSubItem(int iSubItem)(Code)
deletes a subitem from the ListItem.
Parameters:
  iSubItem - which subitem to delete whether item was successfully deleted or not



getFont
public Font getFont()(Code)
retrieves the font of the ListItem font as type Font



getHeight
public int getHeight()(Code)
retrieves the pixel height of the ListItem height as type int



getImage
public int getImage()(Code)
retrieves the image reference for this ListItem image reference as type int



getImageBounds
public Rectangle getImageBounds()(Code)
retrieves the boundary for the image area for the ListItem image area as type Rectangle



getItemData
public Object getItemData()(Code)
An individual item can store an additional data member with it which is independent to what is displayed. This method will retrieve that data as type Object. data as type Object



getSubItem
public ListSubItem getSubItem(int iSubItem)(Code)
A ListItem is a container of several other ListSubItem instances (which correspond to the individual columns of the row described by the ListItem). This method will retrieve those elements of the ListSubItems.
Parameters:
  iSubItem - which column you wish to retrieve the ListSubItem for the ListSubItem retrieved



getSubItemCount
public int getSubItemCount()(Code)
retrieves the number of subitems in this ListItem. number of subitems as type int.



getText
public String getText()(Code)
retrieves the text of the ListItem text as type String



getTextBounds
public Rectangle getTextBounds()(Code)
retrieves the boundary of the text area for the ListItem text area as type Rectangle



setFont
public void setFont(Font f)(Code)
sets the font of the ListItem
Parameters:
  f - Font type



setHeight
public void setHeight(int nNewHeight)(Code)
sets the height of the ListItem
Parameters:
  nNewHeight - height in pixels



setImage
public void setImage(int id)(Code)
sets a reference image for the item
Parameters:
  id - reference to image list as type int



setImageBounds
public void setImageBounds(Rectangle img)(Code)
sets the boundaries of the image part of the ListItem.
Parameters:
  img - the boundary as type Rectangle



setImageYPos
public void setImageYPos(int newY)(Code)
sets the y coordinate of the image
Parameters:
  newY - the new y coordinate offset in pixels



setItemData
public void setItemData(Object obj)(Code)
A ListItem can store an additional piece of data (derived from Object) which is independent of the display.
Parameters:
  obj - data piece as type Object



setSubItems
public void setSubItems(Vector subItems)(Code)
sets up a vector of subitems for the ListItem
Parameters:
  subItems - stored in a Vector



setText
public void setText(String s)(Code)
set text for the ListItem's main column (usually column 0)
Parameters:
  s - text as type String



setTextBounds
public void setTextBounds(int x, int y, int width, int height)(Code)
set text bounds of the ListItem
Parameters:
  x - x coordinate
Parameters:
  y - y coordinate
Parameters:
  width - width
Parameters:
  height - height



setTextBounds
public void setTextBounds(Rectangle r)(Code)
sets the boundaries of the text region
Parameters:
  r - rectangle boundary



setTextHeight
public void setTextHeight(int h)(Code)
sets the space for the text height
Parameters:
  h - height as type int



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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