KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > projector > descriptor > StateDescriptor


1 package org.apache.slide.projector.descriptor;
2
3 import org.apache.slide.projector.i18n.DefaultMessage;
4 import org.apache.slide.projector.i18n.LocalizedMessage;
5
6 /**
7  * @version $Revision: 1.2 $
8  */

9
10 public class StateDescriptor extends Descriptor {
11     public final static String JavaDoc OK = "ok";
12     public final static StateDescriptor OK_DESCRIPTOR = new StateDescriptor(OK,
13             new DefaultMessage("state/ok"));
14
15     public StateDescriptor(String JavaDoc state, LocalizedMessage description) {
16         super(state, description);
17     }
18
19     public String JavaDoc getState() {
20         return getName();
21     }
22 }
Popular Tags