examples.history
Class LimitedStyledDocument

java.lang.Object
  |
  +--javax.swing.text.AbstractDocument
        |
        +--javax.swing.text.DefaultStyledDocument
              |
              +--examples.history.LimitedStyledDocument

public class LimitedStyledDocument
extends DefaultStyledDocument

*******************************************************

Title: Vemaxs VML Editor


Description:


Copyright: Copyright (c) 2002


Company: 5Freunde(Tanja Bellaire, Carsten Fritz,
Nadja Schemmert, Lothar Schulz, Daniel Thöne)

Author:
$author$
Version: 1.0

Field Summary
 (package private) intmaxCharacters
           

Fields inherited from class javax.swing.text.DefaultStyledDocument
BUFFER_SIZE_DEFAULT, buffer

Fields inherited from class javax.swing.text.AbstractDocument
listenerList, BAD_LOCATION, ParagraphElementName, ContentElementName, SectionElementName, BidiElementName, ElementNameAttribute

Constructor Summary
LimitedStyledDocument(int maxChars)
           

Method Summary
 voidinsertString(int offs, String str, AttributeSet a)
          *****************************************************
BITTE DOKUMENTIEREN!

Methods inherited from class javax.swing.text.DefaultStyledDocument
getDefaultRootElement, create, insert, addStyle, removeStyle, getStyle, getStyleNames, setLogicalStyle, getLogicalStyle, setCharacterAttributes, setParagraphAttributes, getParagraphElement, getCharacterElement, insertUpdate, removeUpdate, createDefaultRoot, getForeground, getBackground, getFont, styleChanged, addDocumentListener, removeDocumentListener

Methods inherited from class javax.swing.text.AbstractDocument
getDocumentProperties, setDocumentProperties, fireInsertUpdate, fireChangedUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getListeners, getAsynchronousLoadPriority, setAsynchronousLoadPriority, render, getLength, addUndoableEditListener, removeUndoableEditListener, getProperty, putProperty, remove, getText, getText, createPosition, getStartPosition, getEndPosition, getRootElements, getBidiRootElement, getAttributeContext, postRemoveUpdate, dump, getContent, createLeafElement, createBranchElement, getCurrentWriter, writeLock, writeUnlock, readLock, readUnlock

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

maxCharacters

int maxCharacters
Constructor Detail

LimitedStyledDocument

public LimitedStyledDocument(int maxChars)
Method Detail

insertString

public void insertString(int offs, String str, AttributeSet a)
throws javax.swing.text.BadLocationException
*****************************************************
BITTE DOKUMENTIEREN!
Parameters:
offs BITTE DOKUMENTIEREN!
str BITTE DOKUMENTIEREN!
a BITTE DOKUMENTIEREN!
Throws:
BadLocationException BITTE DOKUMENTIEREN!