Java Doc for XTable.java in  » XML-UI » XUI » net » xoetrope » awt » 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 » XUI » net.xoetrope.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.xoetrope.awt.XScrollPane
   net.xoetrope.awt.XTable

XTable
public class XTable extends XScrollPane implements XAttributedComponent,XModelHolder,ItemSelectable,XStyleComponent,XHashCode,XRowSelector(Code)

Provides a simple read-only tables/grid component.

Copyright (c) Xoetrope Ltd., 1998-2004
License: see license.txt $Revision: 1.21 $




Constructor Summary
public  XTable()
    

Method Summary
public synchronized  voidaddItemListener(ItemListener l)
     Adds the specified item listener to receive item events from this list.
public  voidaddMouseListener(MouseListener l)
    
public  voidaddNotify()
     Creates the scroll pane's peer and sizes the child element.
public  voidcheckSize()
    
public  voidfirst()
    
public  longgetComponentHashCode()
    
public  ContainergetComponentPanel()
    
public  StringgetContent()
    
public  StringgetFieldValue(int fieldIdx)
    
public  StringgetFieldValue(int rowIdx, int fieldIdx)
    
public  XModelgetModel()
     Get the underlying model.
public  Object[]getSelectedObjects()
     Returns the selected items on the list in an array of objects.
public  intgetSelectedRow()
    
public  ObjectgetValue(int fieldIdx)
    
public  ObjectgetValue(int rowIdx, int fieldIdx)
    
public  booleanisInteractiveTable()
    
public  voidlast()
    
public  voidnext()
    
public  voidpaint(Graphics g)
    
public  voidprev()
    
public synchronized  voidremoveItemListener(ItemListener l)
     Removes the specified item listener so that it no longer receives item events from this list.
public  voidrepaint()
    
public  voidscrollToBottom()
    
public  voidsetAttribute(String attribName, String attribValue)
     Set one or more attributes of the component.
public  voidsetBorderStyle(String style)
    
public  voidsetBounds(int x, int y, int w, int h)
    
public  voidsetBounds()
    
public  voidsetColWidth(int fieldIdx, int w)
    
public  voidsetComponentAt(int col, String className)
    
public  voidsetHeaderStyle(String style)
    
public  voidsetInteractiveTable(boolean state)
    
public  voidsetModel(XModel xmodel)
    
public  voidsetSelectedRow(int idx)
    
public  voidsetSelectedStyle(String style)
    
public  voidsetStyle(String style)
    
public  voidsetUpdateModelSelection(boolean doUpdate)
    


Constructor Detail
XTable
public XTable()(Code)




Method Detail
addItemListener
public synchronized void addItemListener(ItemListener l)(Code)
Adds the specified item listener to receive item events from this list. Item events are sent in response to user input, but not in response to calls to select or deselect. If listener l is null, no exception is thrown and no action is performed.
Parameters:
  l - the item listener
See Also:   XTable.removeItemListener(ItemListener)
See Also:   java.awt.event.ItemEvent
See Also:   java.awt.event.ItemListener
since:
   JDK1.1



addMouseListener
public void addMouseListener(MouseListener l)(Code)
Add a mouse listener
Parameters:
  l - the new mouse listener



addNotify
public void addNotify()(Code)
Creates the scroll pane's peer and sizes the child element.



checkSize
public void checkSize()(Code)
Recalculate and check the size of the content



first
public void first()(Code)
Move to the first row



getComponentHashCode
public long getComponentHashCode()(Code)
Get the hash code to be used by the event handler for this component the hash code



getComponentPanel
public Container getComponentPanel()(Code)



getContent
public String getContent()(Code)
Set the model's name the name



getFieldValue
public String getFieldValue(int fieldIdx)(Code)
Gets a field value as a string from the currently selected row
Parameters:
  fieldIdx - the field offset the value



getFieldValue
public String getFieldValue(int rowIdx, int fieldIdx)(Code)
Gets a field value as a string from the specified row
Parameters:
  rowIdx - the row offset
Parameters:
  fieldIdx - the field offset the value



getModel
public XModel getModel()(Code)
Get the underlying model. the model



getSelectedObjects
public Object[] getSelectedObjects()(Code)
Returns the selected items on the list in an array of objects.
See Also:   ItemSelectable



getSelectedRow
public int getSelectedRow()(Code)
Get the index of the selected row the index of the selected row



getValue
public Object getValue(int fieldIdx)(Code)
Gets a field value object from the currently selected row
Parameters:
  fieldIdx - the field offset the value



getValue
public Object getValue(int rowIdx, int fieldIdx)(Code)
Gets a field value object from the specified row
Parameters:
  rowIdx - the row offset
Parameters:
  fieldIdx - the field offset the value



isInteractiveTable
public boolean isInteractiveTable()(Code)
Check the if the table is interactive true if the table supports user interaction



last
public void last()(Code)
Move to the last row



next
public void next()(Code)
Move to the next row



paint
public void paint(Graphics g)(Code)



prev
public void prev()(Code)
Move to the previous row



removeItemListener
public synchronized void removeItemListener(ItemListener l)(Code)
Removes the specified item listener so that it no longer receives item events from this list. If listener l is null, no exception is thrown and no action is performed.
Parameters:
  l - the item listener
See Also:   XTable.addItemListener
See Also:   java.awt.event.ItemEvent
See Also:   java.awt.event.ItemListener
since:
   JDK1.1



repaint
public void repaint()(Code)



scrollToBottom
public void scrollToBottom()(Code)
recalculates the size of the scroll area for dynamic table;



setAttribute
public void setAttribute(String attribName, String 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



setBorderStyle
public void setBorderStyle(String style)(Code)
Set the style of the border
Parameters:
  style - XStyle



setBounds
public void setBounds(int x, int y, int w, int h)(Code)
Sets the bounds for this component
Parameters:
  x -
Parameters:
  y -
Parameters:
  w -
Parameters:
  h -



setBounds
public void setBounds()(Code)
recalculates the size of the scroll area for dynamic table;



setColWidth
public void setColWidth(int fieldIdx, int w)(Code)
Set the table column width;
Parameters:
  fieldIdx - the field index
Parameters:
  w - the new column width



setComponentAt
public void setComponentAt(int col, String className)(Code)
Set the type of component for a column
Parameters:
  col - the field index
Parameters:
  className - the class name



setHeaderStyle
public void setHeaderStyle(String style)(Code)
Set the style of the header data
Parameters:
  style - XStyle



setInteractiveTable
public void setInteractiveTable(boolean state)(Code)
Set the user interaction state
Parameters:
  state - true for an user interactive table.



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



setSelectedRow
public void setSelectedRow(int idx)(Code)
Sets the indexof the selected row
Parameters:
  idx - the new selected row



setSelectedStyle
public void setSelectedStyle(String style)(Code)
Set the style of the selected row
Parameters:
  style - XStyle



setStyle
public void setStyle(String style)(Code)
Set the general style of the XTable
Parameters:
  style - XStyle



setUpdateModelSelection
public void setUpdateModelSelection(boolean doUpdate)(Code)
Tie the model selection to this table's selection
Parameters:
  doUpdate - true to tie the selections together, false to ignore



Methods inherited from net.xoetrope.awt.XScrollPane
public Component add(Component c)(Code)(Java Doc)
public void setAttribute(String attribName, String attribValue)(Code)(Java Doc)
public static void setNextScrollPanePolicy(int scrollBarPolicy)(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.