コード例 #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);
  }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }