append bug fix.

This commit is contained in:
administrateur 2007-02-28 16:19:19 +01:00
parent 5fe91bd7dc
commit d1d23079b8
3 changed files with 28 additions and 9 deletions

View file

@ -308,6 +308,17 @@ public class Data
}
/**
*
*/
public void appendAttribute (String id, int line, String column, String label, String value)
{
IdData tag = this.getIdData (id, line, column);
tag.getAttributes ().appendAttribute (label, value);
}
/**
*
*/
@ -331,39 +342,39 @@ public class Data
/**
*
*/
public void appendContent (String id, int line, String label, String value)
public void appendContent (String id, int line, String value)
{
IdData tag = this.getIdData (id, line);
tag.getAttributes ().appendAttribute (label, value);
tag.appendContent (value);
}
/**
*
*/
public void appendContent (String id, int line, String label, int value)
public void appendContent (String id, int line, int value)
{
appendContent (id, line, label, (new Integer (value)).toString ());
appendContent (id, line, (new Integer (value)).toString ());
}
/**
*
*/
public void appendContent (String id, int line, String column, String label, String value)
public void appendContent (String id, int line, String column, String value)
{
IdData tag = this.getIdData (id, line, column);
tag.getAttributes ().appendAttribute (label, value);
tag.appendContent (value);
}
/**
*
*/
public void appendContent (String id, int line, String column, String label, int value)
public void appendContent (String id, int line, String column, int value)
{
appendContent (id, line, column, label, (new Integer (value)).toString ());
appendContent (id, line, column, (new Integer (value)).toString ());
}
}

View file

@ -85,6 +85,15 @@ public class IdData implements Serializable, IdDataCore
}
/*
*
*/
public void appendContent (String text)
{
this.content += text;
}
/*
*
*/

View file

@ -72,7 +72,6 @@ class Test
IdData tag;
String htmlSource;
StringBuffer html;
StringBuffer errorMessage;