Imported GNU Classpath 0.19 + gcj-import-20051115.
* sources.am: Regenerated. * Makefile.in: Likewise. * scripts/makemake.tcl: Use glob -nocomplain. From-SVN: r107049
This commit is contained in:
parent
02e549bfaa
commit
8f523f3a10
1241 changed files with 97711 additions and 25284 deletions
|
@ -43,8 +43,10 @@ import java.io.Reader;
|
|||
import java.io.Serializable;
|
||||
|
||||
import javax.swing.text.BadLocationException;
|
||||
import javax.swing.text.Document;
|
||||
import javax.swing.text.MutableAttributeSet;
|
||||
import javax.swing.text.StyledEditorKit;
|
||||
import javax.swing.text.html.parser.ParserDelegator;
|
||||
|
||||
/**
|
||||
* This class is NOT implemented. This file currently holds only
|
||||
|
@ -96,9 +98,9 @@ public class HTMLEditorKit
|
|||
/**
|
||||
* The parser calls this method after it finishes parsing the document.
|
||||
*/
|
||||
public void flush()
|
||||
throws BadLocationException
|
||||
public void flush() throws BadLocationException
|
||||
{
|
||||
// TODO: What to do here, if anything?
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -108,6 +110,7 @@ public class HTMLEditorKit
|
|||
*/
|
||||
public void handleComment(char[] comment, int position)
|
||||
{
|
||||
// TODO: What to do here, if anything?
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -118,6 +121,7 @@ public class HTMLEditorKit
|
|||
*/
|
||||
public void handleEndOfLineString(String end_of_line)
|
||||
{
|
||||
// TODO: What to do here, if anything?
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -129,6 +133,7 @@ public class HTMLEditorKit
|
|||
*/
|
||||
public void handleEndTag(HTML.Tag tag, int position)
|
||||
{
|
||||
// TODO: What to do here, if anything?
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -139,6 +144,7 @@ public class HTMLEditorKit
|
|||
*/
|
||||
public void handleError(String message, int position)
|
||||
{
|
||||
// TODO: What to do here, if anything?
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -149,9 +155,9 @@ public class HTMLEditorKit
|
|||
* @param position The tag position in the text being parsed.
|
||||
*/
|
||||
public void handleSimpleTag(HTML.Tag tag, MutableAttributeSet attributes,
|
||||
int position
|
||||
)
|
||||
int position)
|
||||
{
|
||||
// TODO: What to do here, if anything?
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -165,6 +171,7 @@ public class HTMLEditorKit
|
|||
int position
|
||||
)
|
||||
{
|
||||
// TODO: What to do here, if anything?
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -174,6 +181,7 @@ public class HTMLEditorKit
|
|||
*/
|
||||
public void handleText(char[] text, int position)
|
||||
{
|
||||
// TODO: What to do here, if anything?
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -247,4 +255,26 @@ public class HTMLEditorKit
|
|||
* The "ident paragraph right" action.
|
||||
*/
|
||||
public static final String PARA_INDENT_RIGHT = "html-para-indent-right";
|
||||
|
||||
/**
|
||||
* Create a text storage model for this type of editor.
|
||||
*
|
||||
* @return the model
|
||||
*/
|
||||
public Document createDefaultDocument()
|
||||
{
|
||||
HTMLDocument document = new HTMLDocument();
|
||||
return document;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the parser that this editor kit uses for reading HTML streams. This
|
||||
* method can be overridden to use the alternative parser.
|
||||
*
|
||||
* @return the HTML parser (by default, {@link ParserDelegator}).
|
||||
*/
|
||||
protected Parser getParser()
|
||||
{
|
||||
return new ParserDelegator();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue