Exemplo n.º 1
0
  /**
   * Appends specified {@code value} to the attribute
   *
   * @param key The key
   * @param value The value
   * @param separator The separator used to append the value
   */
  public final void append(String key, CharSequence value, String separator) {
    String current = getAttribute(key);
    if (Strings.isEmpty(current)) {
      xmlTag.put(key, value);
    } else {
      xmlTag.put(key, current + separator + value);
    }

    setModified(true);
  }
Exemplo n.º 2
0
 /**
  * @see org.apache.wicket.markup.parser.XmlTag#put(String, StringValue)
  * @param key The key
  * @param value The value
  */
 public final void put(String key, StringValue value) {
   xmlTag.put(key, value);
   setModified(true);
 }
Exemplo n.º 3
0
 /**
  * THIS METHOD IS NOT PART OF THE PUBLIC API, DO NOT CALL IT
  *
  * @see org.apache.wicket.markup.parser.XmlTag#put(String, CharSequence)
  * @param key The key
  * @param value The value
  */
 public final void putInternal(String key, CharSequence value) {
   xmlTag.put(key, value);
   setModified(true);
 }
Exemplo n.º 4
0
 /**
  * @see org.apache.wicket.markup.parser.XmlTag#put(String, int)
  * @param key The key
  * @param value The value
  */
 public final void put(final String key, final int value) {
   xmlTag.put(key, value);
   setModified(true);
 }