Java Doc for TableItem.java in  » IDE-Netbeans » vmd.analyzer » org » netbeans » microedition » lcdui » 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 » IDE Netbeans » vmd.analyzer » org.netbeans.microedition.lcdui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.microedition.lcdui.TableItem

TableItem
public class TableItem extends CustomItem implements TableModelListener(Code)
An item that visualizes a table from TableModel.

The table can be larger than a screen in both directions - user can use a cursor to scroll in all directions.
author:
   breh




Constructor Summary
public  TableItem(Display display, String label)
     Creates a new instance of TableItem without any model.
public  TableItem(Display display, String label, TableModel model)
     Creates a new instance of TableItem with a model.
public  TableItem(Display display, String label, TableModel model, ColorSchema colorSchema)
     Creates a new instance of TableItem with a model.
Parameters:
  display - non-null display parameter.
Parameters:
  label - label for the item
Parameters:
  model - a TableModel to be visualized by this item
Parameters:
  colorSchema - a color schema to be used.

Method Summary
public  ColorSchemagetColorSchema()
    
public  FontgetHeadersFont()
    
protected  intgetMinContentHeight()
    
protected  intgetMinContentWidth()
    
protected  intgetPrefContentHeight(int width)
    
protected  intgetPrefContentWidth(int height)
    
public  intgetSelectedCellColumn()
     Gets the column position of the cursor in the table.
public  intgetSelectedCellRow()
     Gets the row position of the cursor in the table.
public  StringgetTitle()
     Gets title of the table.
public  FontgetTitleFont()
    
public  FontgetValuesFont()
    
public  booleanisBorders()
     Should the table use borders true if the table will be painted with borders.
protected  voidpaint(Graphics g, int width, int height)
    
public  voidsetBorders(boolean showBorders)
     Sets state whether the table should be visualized with or without borders.
public  voidsetColorSchema(ColorSchema colorSchema)
     Sets color schema to be used with this component.
public  voidsetHeadersFont(Font headersFont)
     Sets the font to be used to paint title.
public  voidsetModel(TableModel model)
     Sets a new model to the table.
public  voidsetTitle(String tableTitle)
     Sets title of the table.
public  voidsetTitleFont(Font titleFont)
     Sets the font to be used to paint title.
public  voidsetValuesFont(Font valuesFont)
     Sets the font to be used to paint title.
protected  voidsizeChanged(int w, int h)
    
public  voidtableModelChanged(TableModel changedModel)
     Listener for changes of the model.
protected  booleantraverse(int dir, int viewportWidth, int viewportHeight, int[] visRect_inout)
    
protected  voidtraverseOut()
    


Constructor Detail
TableItem
public TableItem(Display display, String label) throws IllegalArgumentException(Code)
Creates a new instance of TableItem without any model.
Parameters:
  display - non-null display parameter.
Parameters:
  label - label for the item
throws:
  java.lang.IllegalArgumentException - if the display parameter is null



TableItem
public TableItem(Display display, String label, TableModel model) throws IllegalArgumentException(Code)
Creates a new instance of TableItem with a model.
Parameters:
  display - non-null display parameter.
Parameters:
  label - label for the item
Parameters:
  model - a TableModel to be visualized by this item
throws:
  java.lang.IllegalArgumentException - if the display parameter is null



TableItem
public TableItem(Display display, String label, TableModel model, ColorSchema colorSchema) throws IllegalArgumentException(Code)
Creates a new instance of TableItem with a model.
Parameters:
  display - non-null display parameter.
Parameters:
  label - label for the item
Parameters:
  model - a TableModel to be visualized by this item
Parameters:
  colorSchema - a color schema to be used. If set to null, SystemCOlorSchema will be used
throws:
  java.lang.IllegalArgumentException - if the display parameter is null




Method Detail
getColorSchema
public ColorSchema getColorSchema()(Code)
Gets color schema currently in use



getHeadersFont
public Font getHeadersFont()(Code)
Gets font used to paint the column names (headers) of the table headers font



getMinContentHeight
protected int getMinContentHeight()(Code)
implementation of the abstract method minimal content height



getMinContentWidth
protected int getMinContentWidth()(Code)



getPrefContentHeight
protected int getPrefContentHeight(int width)(Code)
implementation of the abstract method
Parameters:
  width - preferred contnent height



getPrefContentWidth
protected int getPrefContentWidth(int height)(Code)
implementation of the abstract method
Parameters:
  height - preferred content width



getSelectedCellColumn
public int getSelectedCellColumn()(Code)
Gets the column position of the cursor in the table. selected cell column



getSelectedCellRow
public int getSelectedCellRow()(Code)
Gets the row position of the cursor in the table. selected cell row



getTitle
public String getTitle()(Code)
Gets title of the table. title string or null if there is no title defined



getTitleFont
public Font getTitleFont()(Code)
Gets font used to paint the table title title font



getValuesFont
public Font getValuesFont()(Code)
Gets font used to paint the table cell values values font



isBorders
public boolean isBorders()(Code)
Should the table use borders true if the table will be painted with borders. False if it will beborderless.



paint
protected void paint(Graphics g, int width, int height)(Code)
implementation of the abstract method
Parameters:
  g -
Parameters:
  width -
Parameters:
  height -



setBorders
public void setBorders(boolean showBorders)(Code)
Sets state whether the table should be visualized with or without borders.

The table is automatically repainted when the state is changed.
Parameters:
  showBorders - true if the borders should be painted, false otherwise




setColorSchema
public void setColorSchema(ColorSchema colorSchema)(Code)
Sets color schema to be used with this component. If set to null SystemColorSchema will be used



setHeadersFont
public void setHeadersFont(Font headersFont)(Code)
Sets the font to be used to paint title. If null is specified, the default font (bold static text font) will be used.

When the font changes, the table gets automatically repainted.
Parameters:
  headersFont - font used for painting column names (headers), might be null




setModel
public void setModel(TableModel model) throws IllegalArgumentException(Code)
Sets a new model to the table. The table gets automatically repainted accordingly to a new model.
Parameters:
  model - a new model to be visualized - cannot be null
throws:
  java.lang.IllegalArgumentException - if the model parameter is null



setTitle
public void setTitle(String tableTitle)(Code)
Sets title of the table. The difference between title and label specified in the constructor is, that the title appears in the table (it is surrounded by the borders). Title can be null if no title should be shown.

The table is automatically repainted when a new title is set.
Parameters:
  tableTitle - title for the table. Can be null




setTitleFont
public void setTitleFont(Font titleFont)(Code)
Sets the font to be used to paint title. If null is specified, the default font (bold version of static text font) will be used.

When the font changes, the table gets automatically repainted.
Parameters:
  titleFont - font to be used for painting table title, might be null.




setValuesFont
public void setValuesFont(Font valuesFont)(Code)
Sets the font to be used to paint title. If null is specified, the default font (static text font) will be used.

When the font changes, the table gets automatically repainted.
Parameters:
  valuesFont - font used for painting values, might be null




sizeChanged
protected void sizeChanged(int w, int h)(Code)
implementation of the abstract method - if the item size has changed, simply repaint the table
Parameters:
  w -
Parameters:
  h -



tableModelChanged
public void tableModelChanged(TableModel changedModel)(Code)
Listener for changes of the model. Just repaints the table when any change happened to the table model of this table.
Parameters:
  changedModel -



traverse
protected boolean traverse(int dir, int viewportWidth, int viewportHeight, int[] visRect_inout)(Code)
implementation of the abstract method



traverseOut
protected void traverseOut()(Code)
implementation of the abstract method



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