Java Doc for XBaseTable.java in  » XML-UI » xui32 » com » xoetrope » swing » 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 » XML UI » xui32 » com.xoetrope.swing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.xoetrope.swing.XBaseTable

XBaseTable
public class XBaseTable extends XTable (Code)

Title: XBaseTable

Description: JTable which uses the XTableModelAdapter object to store its model information. The XTableHeaderRenderer is used to render the header and uses styles defined in the XUI style file.

Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Xoetrope.

$Revision: 1.20 $



Field Summary
protected  ColoraltUnselectedBackground
    
protected  ColoraltUnselectedForeground
    
protected  XProjectcurrentProject
     The owner project and the context in which this object operates.
protected  booleandoTranslation
    
protected  Hashtablerenderers
    
protected  XTableModelAdaptertableModel
    

Constructor Summary
public  XBaseTable()
    

Method Summary
public  voidaddRenderer(int column, TableCellRenderer renderer)
    
public  voiddisplayAsColorField(int column, Hashtable colors)
    
public  voiddisplayAsNumericField(int column, Format format)
    
public  XBaseModelgetBaseModel()
     Retrieve the TableModel.
public  TableCellEditorgetCellEditor(int row, int column)
    
public  XBaseModelgetCellModel(String rowName)
    
public  TableCellRenderergetCellRenderer(int row, int column)
    
public  StringgetCellValue(String rowName)
    
public  doublegetCellValueAsDouble(String rowName)
    
public  XModelListenergetParentListener()
    
public  XBaseModelgetRow(int i)
    
public  booleangetTranslate()
    
public  voidsetAltStyle(String style)
    
public  voidsetAltUnselectedColors(Color frgd, Color bkgd)
    
public  intsetAttribute(String attribName, Object attribValue)
     Set one or more attributes of the component.
public  voidsetCellValue(XBaseModel templateModel, String col, String attrib, String value)
    
public  voidsetModel(XModel xModel)
    
public  voidsetTableModelAdapter(XTableModelAdapter model, XModelListener modelListener)
     Sets the tables TableModel object.
public  voidsetTranslate(boolean translate)
    
protected  voidtranslateTable(XTableModelAdapter model)
     Uses the Translator Singleton instance to translate the contents of the table.

Field Detail
altUnselectedBackground
protected Color altUnselectedBackground(Code)



altUnselectedForeground
protected Color altUnselectedForeground(Code)



currentProject
protected XProject currentProject(Code)
The owner project and the context in which this object operates.



doTranslation
protected boolean doTranslation(Code)



renderers
protected Hashtable renderers(Code)



tableModel
protected XTableModelAdapter tableModel(Code)




Constructor Detail
XBaseTable
public XBaseTable()(Code)




Method Detail
addRenderer
public void addRenderer(int column, TableCellRenderer renderer)(Code)
Add a cell renderer for the specified column
Parameters:
  column - the column or field index



displayAsColorField
public void displayAsColorField(int column, Hashtable colors)(Code)
Display the field formatted with a background color from the hashtable such that the field value acts as a key into the hashtable of colors
Parameters:
  column - the column or field index
Parameters:
  colors - the color hashtable



displayAsNumericField
public void displayAsNumericField(int column, Format format)(Code)
Display the field as a numeric value
Parameters:
  column - the column or field index
Parameters:
  format - format the number format to use in displaying the field



getBaseModel
public XBaseModel getBaseModel()(Code)
Retrieve the TableModel. XTableModelAdapter if it is of this type otherwise null



getCellEditor
public TableCellEditor getCellEditor(int row, int column)(Code)
Retrieves the TableCellEditor for a cell



getCellModel
public XBaseModel getCellModel(String rowName)(Code)



getCellRenderer
public TableCellRenderer getCellRenderer(int row, int column)(Code)
Get a render for this cell



getCellValue
public String getCellValue(String rowName)(Code)



getCellValueAsDouble
public double getCellValueAsDouble(String rowName)(Code)



getParentListener
public XModelListener getParentListener()(Code)



getRow
public XBaseModel getRow(int i)(Code)
Retrieve the row of the XTableModelAdapter which represents the passed index
Parameters:
  i - the row required the row as an XBaseModel



getTranslate
public boolean getTranslate()(Code)



setAltStyle
public void setAltStyle(String style)(Code)
Set the style of the alternate rows
Parameters:
  style - XStyle



setAltUnselectedColors
public void setAltUnselectedColors(Color frgd, Color bkgd)(Code)
Set the colors for alternate ( odd ) row colors
Parameters:
  frgd - the foreground color
Parameters:
  bkgd - the background color



setAttribute
public int setAttribute(String attribName, Object attribValue)(Code)
Set one or more attributes of the component. Currently this handles the attributes
  1. headingStyle, value=the table header style
  2. selectionStyle, value=the selected row style
  3. interactive, value=true|false
  4. updateModel, value=true|false update the underlying model selection (the selected row)

Parameters:
  attribName - the attribute name
Parameters:
  attribValue - the attribute value 0 for success, non zero for failure or to require some further action



setCellValue
public void setCellValue(XBaseModel templateModel, String col, String attrib, String value)(Code)



setModel
public void setModel(XModel xModel)(Code)
Set the XModel which we will be generating the table from
Parameters:
  xModel - The XModel of data



setTableModelAdapter
public void setTableModelAdapter(XTableModelAdapter model, XModelListener modelListener)(Code)
Sets the tables TableModel object. The XTableModelAdapter is based on the XModel.
Parameters:
  model - The XTableModelAdapter being set as the model
Parameters:
  modelListener - an XModelListener which be set to listed to the TableModel changes.



setTranslate
public void setTranslate(boolean translate)(Code)
Called when the table's contents need to be translated
Parameters:
  translate - Flag to indicate whether or not to translate the table.



translateTable
protected void translateTable(XTableModelAdapter model)(Code)
Uses the Translator Singleton instance to translate the contents of the table.
Parameters:
  model - The table model



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