samples/privilegedcreator/test/accessprotectedmethod/MyDocument.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:58:05 +0200
changeset 152 eb6f29070331
parent 71 a9bd40166b60
child 153 b5cbb797ec0a
permissions -rw-r--r--
Checking that all examples pair the opening and closing brackets
jtulach@71
     1
package accessprotectedmethod;
jtulach@71
     2
jtulach@71
     3
import javax.swing.text.AbstractDocument;
jtulach@71
     4
import javax.swing.text.Element;
jtulach@71
     5
import javax.swing.text.StringContent;
jtulach@71
     6
jtulach@71
     7
// BEGIN: public.accessor
jtulach@71
     8
public class MyDocument  extends AbstractDocument {
jtulach@71
     9
    public MyDocument() {super(new StringContent());}
jtulach@71
    10
    
jtulach@71
    11
    final void writeLockAccess() {
jtulach@71
    12
        writeLock();
jtulach@71
    13
    }
jtulach@152
    14
// FINISH: public.accessor
jtulach@71
    15
jtulach@71
    16
    @Override
jtulach@71
    17
    public Element getDefaultRootElement() {
jtulach@71
    18
        throw new UnsupportedOperationException("Not supported yet.");
jtulach@71
    19
    }
jtulach@71
    20
jtulach@71
    21
    @Override
jtulach@71
    22
    public Element getParagraphElement(int pos) {
jtulach@71
    23
        throw new UnsupportedOperationException("Not supported yet.");
jtulach@71
    24
    }
jtulach@71
    25
}