com.japisoft.xmlpad
Interface Accessibility


public interface Accessibility

Interface for interacting easily with JXMLPad. Call getAccessibility from the XMLContainer for the implantation.

Version:
1.0
Author:
(c) 2004 JAPISoft / Alexandre Brillant
See Also:
XMLContainer

Method Summary
 java.lang.String getText()
           
 boolean invokeAction(java.lang.String actionName)
          Call an XML action.
 void read(java.io.Reader reader)
          Reset the editing content using this reader
 void setText(java.lang.String text)
          Reset the editing content.
 void write(java.io.Writer writer)
          Reset this writer with the editing content
 

Method Detail

setText

public void setText(java.lang.String text)
Reset the editing content. It should be a full XML document


getText

public java.lang.String getText()
Returns:
the current editing content

read

public void read(java.io.Reader reader)
          throws java.io.IOException
Reset the editing content using this reader

Throws:
java.io.IOException

write

public void write(java.io.Writer writer)
           throws java.io.IOException
Reset this writer with the editing content

Throws:
java.io.IOException

invokeAction

public boolean invokeAction(java.lang.String actionName)
Call an XML action. Look at the ActionModel for action name

Returns:
XMLAction.VALID_ACTION when the action has been done without error