Author: pete.muir(a)jboss.org
Date: 2008-04-07 18:14:40 -0400 (Mon, 07 Apr 2008)
New Revision: 7842
Added:
branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Animal.java
Log:
JBSEAM-2856
Added: branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Animal.java
===================================================================
--- branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Animal.java
(rev 0)
+++ branches/Seam_2_0/examples/ui/src/org/jboss/seam/example/ui/Animal.java 2008-04-07
22:14:40 UTC (rev 7842)
@@ -0,0 +1,32 @@
+package org.jboss.seam.example.ui;
+
+public class Animal
+{
+
+ public static Animal DOG = new Animal("Needs lots of exercise",
"Dog");
+ public static Animal CAT = new Animal("Looks after itself",
"Cat");
+ public static Animal GOLDFISH = new Animal("Needs a fishtank!",
"Goldfish");
+ public static Animal RABBIT = new Animal("Often has floppy ears",
"Rabbit");
+ public static Animal SNAKE = new Animal("Better make sure it doesn't bite
you", "Snake");
+ public static Animal PARROT = new Animal("Peices of Eight",
"Parrot");
+
+ private String notes;
+ private String name;
+
+ public Animal(String notes, String name)
+ {
+ this.notes = notes;
+ this.name = name;
+ }
+
+ public String getNotes()
+ {
+ return notes;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+}
Show replies by date