01: /**
02: * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
03: * @version $Id: TagBean.java 6385 2007-10-25 14:02:26Z wehrens $
04: */package org.gridsphere.provider.portletui.beans;
05:
06: import java.util.Locale;
07:
08: /**
09: * The <code>TagBean</code> interface describes the base methods provided by all visual ui beans
10: */
11: public interface TagBean {
12:
13: public static final String CALENDAR_NAME = "ca";
14:
15: public static final String CHECKBOX_NAME = "cb";
16:
17: public static final String FILEINPUT_NAME = "fi";
18:
19: public static final String HIDDENFIELD_NAME = "hf";
20:
21: public static final String LISTBOXITEM_NAME = "li";
22:
23: public static final String TEXTFIELD_NAME = "tf";
24:
25: public static final String TEXTAREA_NAME = "ta";
26:
27: public static final String TEXTEDITOR_NAME = "te";
28:
29: public static final String PASSWORD_NAME = "pb";
30:
31: public static final String RADIOBUTTON_NAME = "rb";
32:
33: public static final String RICHTEXTEDITOR_NAME = "rt";
34:
35: /**
36: * Returns the bean identifier
37: *
38: * @return the bean identifier
39: */
40: public String getBeanId();
41:
42: public void addParam(String name, String value);
43:
44: public void removeParam(String name);
45:
46: /**
47: * Sets the bean identifier
48: *
49: * @param beanId the bean identifier
50: */
51: public void setBeanId(String beanId);
52:
53: public void setLocale(Locale locale);
54:
55: /**
56: * Returns the HTML representation of the bean
57: *
58: * @return html string representing the object
59: */
60: public String toStartString();
61:
62: /**
63: * Returns the HTML representation of the bean
64: *
65: * @return html string representing the object
66: */
67: public String toEndString();
68:
69: }
|