Skip to content

Examples

Ari Gesher edited this page Nov 28, 2011 · 15 revisions

Our tutorial has a good break-down of all the moving parts and an in-depth look at BoundJCheckBoxExample.java.

Simple Examples

CallOnUpdate Example

This is a small example used to illustrate the use of the @CallOnUpdate annotation.

See CallOnUpdate.java

BoundJCheckBoxExample

This examples illustrates using Cinch to effectively bind to a JCheckBox.

See BoundJCheckBoxExample.java

BoundJCheckBoxExample

This examples illustrates using Cinch to effectively bind to a JCheckBox.

See BoundJListExample.java

BoundExtentsExample

This example illustrates binding a the extents on JSlider to a model using the @BoundExtent annotation.

See BoundExtentsExample.java

FocusChangedExample

This example shows binding specific methods in the view to handle focus change events using the @OnFocusChange annotation.

See FocusChangedExample.java

OnChangeExample

This example shows how the @OnChange annotation can be used to call a method every time a ChangeEvent fires.

See OnChangeExample.java

More Complex Examples

SuperDemo

This examples shows off the interaction of inheritance with Cinch.

See the superdemo package, start looking at SuperDemo.java

The Cinch Demo

This is a fully-featured program that uses most of the features of Cinch in one place. A useful reference to consult when you're unsure exactly how something is to be used.

See the cinch demo package, start with DemoView.java

Clone this wiki locally