01: package org.ztemplates.yui.dialog;
02:
03: import org.ztemplates.render.ZCss;
04: import org.ztemplates.render.ZExpose;
05: import org.ztemplates.render.ZJavaScript;
06: import org.ztemplates.render.ZRenderer;
07: import org.ztemplates.render.ZScript;
08: import org.ztemplates.render.velocity.ZVelocityRenderer;
09: import org.ztemplates.web.ZTemplates;
10: import org.ztemplates.yui.YWidget;
11:
12: @ZRenderer(ZVelocityRenderer.class)
13: @ZScript(javaScript={@ZJavaScript("/yuiloader/utilities/utilities.js"),@ZJavaScript("/yuiloader/yahoo-dom-event/yahoo-dom-event.js"),@ZJavaScript("/yuiloader/container/container.js")},css={@ZCss("/yuiloader/fonts/fonts-min.css"),@ZCss("/yuiloader/container/assets/skins/sam/container.css"),@ZCss("/yuiloader/button/assets/skins/sam/button.css")})
14: public class YDialog extends YWidget {
15: private final String id;
16:
17: private final String contextId;
18:
19: private final String text;
20:
21: public YDialog(String contextId, String text) {
22: this (ZTemplates.getRenderService().createJavaScriptId(),
23: contextId, text);
24: }
25:
26: public YDialog(String id, String contextId, String text) {
27: super ();
28: this .id = id;
29: this .contextId = contextId;
30: this .text = text;
31: }
32:
33: @ZExpose
34: public String getId() {
35: return id;
36: }
37:
38: @ZExpose
39: public String getContextId() {
40: return contextId;
41: }
42:
43: @ZExpose
44: public String getText() {
45: return text;
46: }
47: }
|