|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.bridge.jsp.taglib.editor.Editor
org.mmbase.bridge.jsp.taglib.editor.YAMMEditor
This is an example implementation of the EditTag. It extends the implementation
class Editor of EditTag. To create your own editor with the edittag you could
or rather should also extend Editor.
EditTagYAMMe works together with the editor yammeditor.jsp. It creates an URL
that looks something like this:
yammeditor.jsp?nrs=76&fields=76_number;76_title;76_subtitle;76_intro;80_gui();
EditTag,
BasicEditor| Field Summary |
| Fields inherited from class org.mmbase.bridge.jsp.taglib.editor.Editor |
fieldList, nodenrList, parameters, queryList |
| Constructor Summary | |
YAMMEditor()
|
|
| Method Summary | |
protected List |
fillPathList(List ql)
Generates pathList with the needed paths for the editor from an list with queries. |
void |
getEditorHTML(PageContext context)
Create a string containing all the needed html to find the editor. |
protected List |
getNodesFromQuery(Query query,
String nr)
|
protected Parameter[] |
getParameterDefinition()
|
protected String |
getPathFromQuery(Query query)
Get the path from this query where the field originated from. |
String |
makeHTML(String url,
String icon)
Creates a string with the link (and icon) to the editor |
protected String |
makeList4Url(List al)
Creates a ; seperated String from a List to create the url to yammeditor with paths, fields, startnodes or whatnot |
protected String |
makeRelative(String url,
PageContext pageContext)
Copied this method from the UrlTag. |
protected void |
processField(Query query,
String nodenr,
String fieldName)
Processes a field with nodenr and query into several lists |
void |
registerFields(List queryList,
List nodenrList,
List fieldList)
Values passed by the EditTag from the FieldTags. |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.editor.Editor |
getFieldList, getNodenrList, getParameters, getQueryList |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public YAMMEditor()
| Method Detail |
protected Parameter[] getParameterDefinition()
getParameterDefinition in class Editor
public void getEditorHTML(PageContext context)
throws IOException
getEditorHTML in class Editorcontext - PageContext used to write a string with a link and an icon to access yammeditor.jsp
IOException
public void registerFields(List queryList,
List nodenrList,
List fieldList)
queryList - List with SearchQuery objects from fieldsnodenrList - List with nodenumbersfieldList - List with fieldnames
protected void processField(Query query,
String nodenr,
String fieldName)
query - SearchQuery that delivered the fieldnodenr - Nodenumber of the node the field belongs tofieldName - Name of the field
protected List getNodesFromQuery(Query query,
String nr)
protected List fillPathList(List ql)
ql - List with queries
protected String getPathFromQuery(Query query)
query - The query
protected String makeList4Url(List al)
al - One of the Lists to use
public String makeHTML(String url,
String icon)
url - An url to an editoricon - An url to a graphic file
protected String makeRelative(String url,
PageContext pageContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||