org.xwiki.gwt.wysiwyg.client.plugin.link
Class LinkConfigDOMWriter

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.link.LinkConfigDOMWriter
All Implemented Interfaces:
AbstractInsertElementExecutable.ConfigDOMWriter<LinkConfig,com.google.gwt.dom.client.AnchorElement>

public final class LinkConfigDOMWriter
extends Object
implements AbstractInsertElementExecutable.ConfigDOMWriter<LinkConfig,com.google.gwt.dom.client.AnchorElement>

Serializes a LinkConfig object to an HTML fragment that can be used to insert a link into the edited document.


Constructor Summary
LinkConfigDOMWriter()
           
 
Method Summary
 void write(LinkConfig config, com.google.gwt.dom.client.AnchorElement anchor)
          Writes the given configuration to the specified DOM element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkConfigDOMWriter

public LinkConfigDOMWriter()
Method Detail

write

public void write(LinkConfig config,
                  com.google.gwt.dom.client.AnchorElement anchor)
Writes the given configuration to the specified DOM element.

Specified by:
write in interface AbstractInsertElementExecutable.ConfigDOMWriter<LinkConfig,com.google.gwt.dom.client.AnchorElement>
Parameters:
config - the configuration object used to update the DOM element
anchor - the DOM element being updated
See Also:
AbstractInsertElementExecutable.ConfigDOMWriter.write(Object, com.google.gwt.dom.client.Element)