KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > richtext > builders > IdRel


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.richtext.builders;
11
12 import org.mmbase.module.corebuilders.InsRel;
13 import org.mmbase.module.core.MMObjectNode;
14
15 /**
16  * Like InsRel, only with a GUIIndicator tailored for a relation with an 'id' field.
17  *
18  * @author Michiel Meeuwissen.
19  * @version $Id: IdRel.java,v 1.1 2005/10/26 07:11:06 michiel Exp $
20  * @since MMBase-1.8
21  */

22 public class IdRel extends InsRel {
23
24     public String JavaDoc getGUIIndicator(MMObjectNode node) {
25         return super.getGUIIndicator(node) + ":" + node.getStringValue("id");
26     }
27
28
29 }
30
Popular Tags