Exemplo n.º 1
0
 public Reference(StringMap params) {
   super();
   this.type = params.get(TYPE);
   this.key = params.get(KEY);
   this.label = "";
   full = params;
 }
 public void updateContext(DrawContext ctx) {
   Coloring c =
       (Coloring) stringMap.get(ctx.getBuffer(), ctx.getTokenOffset(), ctx.getTokenLength());
   if (c != null) {
     c.apply(ctx);
   }
 }
Exemplo n.º 3
0
 public String getQuery() {
   StringBuffer ref = new StringBuffer();
   ref.append(KEY).append("=").append(key);
   if (full != null) {
     for (String k : full.keySet()) {
       ref.append("&").append(k).append("=").append(full.get(k));
     }
   }
   if (!type.equals(CALL)) {
     ref.append("&").append(TYPE).append("=").append(type);
   }
   return ref.toString();
 }