Xoetrope
HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Most recent edit on 2007-12-12 10:39:04 by LuanO

Additions:
XuiPro Components
See here


Deletions:
Carousel Components
See [[http://www.xoetrope.com/zone/articles/article.php?zone=XUI




Edited on 2007-06-27 16:16:40 by RciGgx

Additions:
See [[http://www.xoetrope.com/zone/articles/article.php?zone=XUI

Deletions:
See Carousel Components a demo of some of Carousel's advanced components
Soduku with XUI
See Soduku with XUI an example showing how to build a Soduku application
Localization
See Translate.zip
Binding an XTable2 to an XModel for display and update
This article will show you how to create a basic XModelTableModel adapter which uses an XModel as its data source. The data in the model is displayed upon starting the application and user changes are set in the same model and saved back to the same file for the next run. It's important to bear in mind that the TableModel is accessing data within the XModel in a specific hierarchy and this can be changed either by changing the TableModel or by subclassing it.
We start by creating the Welcome page with an XTable2 component within a scrollpane and a save button which will be used to store changes back to the dataset file.
Next we include a dataset file in the datasources file. The file we include is the statics.xml file which contains some basic data to be displayed in the table.
Now the Welcomeclass can be created. There is a header array which sets the titles of the columns in the table and a tableMdl XModel variable which refers to the data model for the table. In the pageCreated method, a reference to the XTable2 is retrieved as is a reference to the tableMdl which is defined in the statics.xml file. Now an instance of the XModelTableModel class is created and the tabldMld variable is passed to the constructor. The headers for the XModelTableModel are set and the model is set as the table model in the setModel call.
The save method simply outputs the contents of the table to the source data file so that user changes are recorded in it.
The Application Running
Some old examples (using tables and trees)
Synth Support
See The SwingSet application from the JDK running XUI's Synth look and feel with SVG artwork
SourceForge Logo




Edited on 2007-01-02 09:40:37 by LuanO

Additions:
Soduku with XUI
See Soduku with XUI an example showing how to build a Soduku application
Synth Support
See The SwingSet application from the JDK running XUI's Synth look and feel with SVG artwork




Edited on 2007-01-02 09:37:41 by LuanO

Additions:
Carousel Components
See Carousel Components a demo of some of Carousel's advanced components




Edited on 2006-11-30 05:01:22 by LuanO

Additions:

Feature Samples

These samples demonstrate particular features and focus on technical issues, not usability or completeness
Localization
See Translate.zip
Binding an XTable2 to an XModel for display and update


Deletions:

Binding an XTable2 to an XModel for display and update





Edited on 2006-11-29 00:15:07 by LuanO

Additions:
Some old examples (using tables and trees) SourceForge Logo

Deletions:
Some old examples



Edited on 2006-11-29 00:14:03 by LuanO

Additions:
Some old examples



Edited on 2006-10-13 07:00:44 by ValCassidy

Additions:
The Application Running



Edited on 2006-10-13 03:19:54 by ValCassidy

Additions:
The save method simply outputs the contents of the table to the source data file so that user changes are recorded in it.



Edited on 2006-10-13 03:18:30 by ValCassidy

Additions:
This article will show you how to create a basic XModelTableModel adapter which uses an XModel as its data source. The data in the model is displayed upon starting the application and user changes are set in the same model and saved back to the same file for the next run. It's important to bear in mind that the TableModel is accessing data within the XModel in a specific hierarchy and this can be changed either by changing the TableModel or by subclassing it.

Deletions:
This article will show you how to create a basic TableModel adapter which uses an XModel as its data source. The data in the model is displayed upon starting the application and user changes are set in the same model and saved back to the same file for the next run. It's important to bear in mind that the TableModel is accessing data within the XModel in a specific hierarchy and this can be changed either by changing the TableModel or by subclassing it.



Edited on 2006-10-13 03:17:37 by ValCassidy

Additions:
Now the Welcomeclass can be created. There is a header array which sets the titles of the columns in the table and a tableMdl XModel variable which refers to the data model for the table. In the pageCreated method, a reference to the XTable2 is retrieved as is a reference to the tableMdl which is defined in the statics.xml file. Now an instance of the XModelTableModel class is created and the tabldMld variable is passed to the constructor. The headers for the XModelTableModel are set and the model is set as the table model in the setModel call.

Deletions:
Now the Welcomeclass can be created.



Edited on 2006-10-13 03:13:28 by ValCassidy

Additions:
Now the Welcomeclass can be created.

Deletions:
Now the Welcome_class can be created.



Edited on 2006-10-13 03:13:08 by ValCassidy

Additions:
Now the Welcome_class can be created.

Deletions:
Now the class can be created.



Edited on 2006-10-13 03:11:45 by ValCassidy

Additions:
Now the class can be created.

Deletions:
Now the net.xoetrope.test.table.Welcome class can be created.



Edited on 2006-10-13 03:11:06 by ValCassidy

Additions:
Now the net.xoetrope.test.table.Welcome class can be created.

Deletions:
Now the net.xoetrope.test.table.Welcome class can be created.



Edited on 2006-10-13 03:10:31 by ValCassidy

Additions:
Now the net.xoetrope.test.table.Welcome class can be created.



Edited on 2006-10-13 03:08:46 by ValCassidy

Additions:
Next we include a dataset file in the datasources file. The file we include is the statics.xml file which contains some basic data to be displayed in the table.

Deletions:
Next we include a dataset file in the datasources file. The file we include is the statics.xml file which contains some basic data to be displayed in the table.



Edited on 2006-10-13 03:08:07 by ValCassidy

Additions:
Next we include a dataset file in the datasources file. The file we include is the statics.xml file which contains some basic data to be displayed in the table.

Deletions:
Next we include a dataset file in the datasources file.



Edited on 2006-10-13 03:06:40 by ValCassidy

Additions:
Next we include a dataset file in the datasources file.

Deletions:
Next we include a dataset file in the datasources.xml file.



Oldest known version of this page was edited on 2006-10-13 03:03:48 by ValCassidy []
Page view:

Binding an XTable2 to an XModel for display and update


This article will show you how to create a basic TableModel adapter which uses an XModel as its data source. The data in the model is displayed upon starting the application and user changes are set in the same model and saved back to the same file for the next run. It's important to bear in mind that the TableModel is accessing data within the XModel in a specific hierarchy and this can be changed either by changing the TableModel or by subclassing it.

We start by creating the Welcome page with an XTable2 component within a scrollpane and a save button which will be used to store changes back to the dataset file.

Next we include a dataset file in the datasources.xml file.
Page was generated in 0.4800 seconds