/** * The name spaced id of the widget. * * @return The widget id * @see #getJavaScriptId() */ public final String getJavaScriptWidgetId() { return "YAHOO.wicket." + getJavaScriptId(); }
/** * Gets the id of the javascript widget. Note that this is the non-namespaced id, so depending * on what you want to do with it, you may need to prepend 'YAHOO.wicket.' to it. Or you can * call {@link #getJavaScriptWidgetId()}. * * @return The javascript id * @see #getJavaScriptWidgetId() */ public final String getJavaScriptId() { return getMarkupId() + "Js"; }
contributeDependencies(response); String markupId = AbstractCalendar.this.getMarkupId(); String javascriptId = getJavaScriptId(); String javascriptWidgetId = getJavaScriptWidgetId(); StringBuilder b = new StringBuilder(); configureWidgetProperties(p); b.append("\", { "); for (Iterator<Entry<Object, Object>> i = p.entrySet().iterator(); i.hasNext();) appendToInit(markupId, javascriptId, javascriptWidgetId, b);
/** * Construct. * * @param id * The component id * @param contributeDependencies * Whether to contribute the packaged dependencies. Pass false in case you want to * include the dependencies manually in your own page, e.g. when you want to keep * them in your web application dir. To contribute yourself (in case you want to pass * false), your page header should look like: * * <pre> * <script type="text/javascript" src="yahoo.js"></script> * <script type="text/javascript" src="dom.js"></script> * <script type="text/javascript" src="event.js"></script> * <script type="text/javascript" src="calendar.js"></script> * <link rel="stylesheet" type="text/css" href="calendar.css" /> * </pre> */ public AbstractCalendar(String id, boolean contributeDependencies) { super(id); setOutputMarkupId(true); this.contributeDependencies = contributeDependencies; }
contributeDependencies(response); String markupId = AbstractCalendar.this.getMarkupId(); String javascriptId = getJavaScriptId(); String javascriptWidgetId = getJavaScriptWidgetId(); StringBuilder b = new StringBuilder(); configureWidgetProperties(p); b.append("\", { "); for (Iterator<Entry<Object, Object>> i = p.entrySet().iterator(); i.hasNext();) appendToInit(markupId, javascriptId, javascriptWidgetId, b);
/** * Construct. * * @param id * The component id * @param contributeDependencies * Whether to contribute the packaged dependencies. Pass false in case you want to * include the dependencies manually in your own page, e.g. when you want to keep * them in your web application dir. To contribute yourself (in case you want to pass * false), your page header should look like: * * <pre> * <script type="text/javascript" src="yahoo.js"></script> * <script type="text/javascript" src="dom.js"></script> * <script type="text/javascript" src="event.js"></script> * <script type="text/javascript" src="calendar.js"></script> * <link rel="stylesheet" type="text/css" href="calendar.css" /> * </pre> */ public AbstractCalendar(String id, boolean contributeDependencies) { super(id); setOutputMarkupId(true); this.contributeDependencies = contributeDependencies; }
/** * Gets the id of the javascript widget. Note that this is the non-namespaced id, so depending * on what you want to do with it, you may need to prepend 'YAHOO.wicket.' to it. Or you can * call {@link #getJavaScriptWidgetId()}. * * @return The javascript id * @see #getJavaScriptWidgetId() */ public final String getJavaScriptId() { return getMarkupId() + "Js"; }
/** * The name spaced id of the widget. * * @return The widget id * @see #getJavaScriptId() */ public final String getJavaScriptWidgetId() { return "YAHOO.wicket." + getJavaScriptId(); }