protected void addComponent(Vector<ElementSpec> parseBuffer, Component comp) {
SimpleAttributeSet sas = new SimpleAttributeSet();
sas.addAttribute(StyleConstants.ComponentAttribute, comp);
sas.addAttribute(StyleConstants.NameAttribute, StyleConstants.ComponentElementName);
ElementSpec es = new ElementSpec(sas.copyAttributes(),
ElementSpec.ContentType, new char[] { ' ' },
0, 1);
parseBuffer.addElement(es);
}