xml
Class XmlActions

java.lang.Object
  extended byxml.XmlActions

public class XmlActions
extends java.lang.Object


Constructor Summary
XmlActions()
           
 
Method Summary
static java.lang.String charactersToEntities(java.lang.String s, java.util.Map hash)
           
static void charactersToEntities(View view)
           
static void completeClosingTag(View view, boolean insertSlash)
           
static java.lang.String entitiesToCharacters(java.lang.String s, java.util.Map hash)
           
static void entitiesToCharacters(View view)
           
static java.lang.String getStandaloneEnd()
           
static void insertClosingTag(View view)
           
static void insertClosingTagKeyTyped(View view)
           
static void matchTag(JEditTextArea textArea)
           
static void removeTags(Buffer buffer)
           
static void showEditTagDialog(View view)
           
static void showEditTagDialog(View view, ElementDecl elementDecl, int offsetStart, int offsetEnd)
           
static void split(View view)
          If the DTD allows this tag to be split, split at the cursor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlActions

public XmlActions()
Method Detail

showEditTagDialog

public static void showEditTagDialog(View view)

showEditTagDialog

public static void showEditTagDialog(View view,
                                     ElementDecl elementDecl,
                                     int offsetStart,
                                     int offsetEnd)

insertClosingTag

public static void insertClosingTag(View view)

split

public static void split(View view)
If the DTD allows this tag to be split, split at the cursor. Note that this can be used to do a kind of 'fast-editing', eg when editing an HTML <p> this will insert an end tag (if necessary) and then place the cursor inside a new <p>. TODO: Syntax Checking


removeTags

public static void removeTags(Buffer buffer)

matchTag

public static void matchTag(JEditTextArea textArea)

insertClosingTagKeyTyped

public static void insertClosingTagKeyTyped(View view)

completeClosingTag

public static void completeClosingTag(View view,
                                      boolean insertSlash)

charactersToEntities

public static java.lang.String charactersToEntities(java.lang.String s,
                                                    java.util.Map hash)

entitiesToCharacters

public static java.lang.String entitiesToCharacters(java.lang.String s,
                                                    java.util.Map hash)

charactersToEntities

public static void charactersToEntities(View view)

entitiesToCharacters

public static void entitiesToCharacters(View view)

getStandaloneEnd

public static java.lang.String getStandaloneEnd()