GNU Classpath (0.17) | ||
Frames | No Frames |
1: /* JTextPane.java -- 2: Copyright (C) 2002, 2004 Free Software Foundation, Inc. 3: 4: This file is part of GNU Classpath. 5: 6: GNU Classpath is free software; you can redistribute it and/or modify 7: it under the terms of the GNU General Public License as published by 8: the Free Software Foundation; either version 2, or (at your option) 9: any later version. 10: 11: GNU Classpath is distributed in the hope that it will be useful, but 12: WITHOUT ANY WARRANTY; without even the implied warranty of 13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14: General Public License for more details. 15: 16: You should have received a copy of the GNU General Public License 17: along with GNU Classpath; see the file COPYING. If not, write to the 18: Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19: 02110-1301 USA. 20: 21: Linking this library statically or dynamically with other modules is 22: making a combined work based on this library. Thus, the terms and 23: conditions of the GNU General Public License cover the whole 24: combination. 25: 26: As a special exception, the copyright holders of this library give you 27: permission to link this library with independent modules to produce an 28: executable, regardless of the license terms of these independent 29: modules, and to copy and distribute the resulting executable under 30: terms of your choice, provided that you also meet, for each linked 31: independent module, the terms and conditions of the license of that 32: module. An independent module is a module which is not derived from 33: or based on this library. If you modify this library, you may extend 34: this exception to your version of the library, but you are not 35: obligated to do so. If you do not wish to do so, delete this 36: exception statement from your version. */ 37: 38: 39: package javax.swing; 40: 41: import java.awt.Component; 42: import java.io.IOException; 43: import java.io.ObjectOutputStream; 44: 45: import javax.swing.text.AttributeSet; 46: import javax.swing.text.Document; 47: import javax.swing.text.EditorKit; 48: import javax.swing.text.MutableAttributeSet; 49: import javax.swing.text.Style; 50: import javax.swing.text.StyledDocument; 51: import javax.swing.text.StyledEditorKit; 52: 53: /** 54: * JTextPane 55: * @author Andrew Selkirk 56: * @version 1.0 57: */ 58: public class JTextPane extends JEditorPane { 59: 60: //------------------------------------------------------------- 61: // Variables -------------------------------------------------- 62: //------------------------------------------------------------- 63: 64: /** 65: * uiClassID 66: */ 67: private static final String uiClassID = "TextPaneUI"; 68: 69: 70: //------------------------------------------------------------- 71: // Initialization --------------------------------------------- 72: //------------------------------------------------------------- 73: 74: /** 75: * Constructor JTextPane 76: */ 77: public JTextPane() { 78: // TODO 79: } // JTextPane() 80: 81: /** 82: * Constructor JTextPane 83: * @param document TODO 84: */ 85: public JTextPane(StyledDocument document) { 86: // TODO 87: } // JTextPane() 88: 89: 90: //------------------------------------------------------------- 91: // Methods ---------------------------------------------------- 92: //------------------------------------------------------------- 93: 94: /** 95: * getUIClassID 96: * @returns String 97: */ 98: public String getUIClassID() { 99: return uiClassID; 100: } // getUIClassID() 101: 102: /** 103: * setDocument 104: * @param document TODO 105: */ 106: public void setDocument(Document document) { 107: super.setDocument(document); // TODO 108: } // setDocument() 109: 110: /** 111: * getStyledDocument 112: * @returns StyledDocument 113: */ 114: public StyledDocument getStyledDocument() { 115: return null; // TODO 116: } // getStyledDocument() 117: 118: /** 119: * setStyledDocument 120: * @param document TODO 121: */ 122: public void setStyledDocument(StyledDocument document) { 123: // TODO 124: } // setStyledDocument() 125: 126: /** 127: * replaceSelection 128: * @param content TODO 129: */ 130: public void replaceSelection(String content) { 131: super.replaceSelection(content); // TODO 132: } // replaceSelection() 133: 134: /** 135: * insertComponent 136: * @param component TODO 137: */ 138: public void insertComponent(Component component) { 139: // TODO 140: } // insertComponent() 141: 142: /** 143: * insertIcon 144: * @param icon TODO 145: */ 146: public void insertIcon(Icon icon) { 147: // TODO 148: } // insertIcon() 149: 150: /** 151: * addStyle 152: * @param nm TODO 153: * @param parent TODO 154: * @returns Style 155: */ 156: public Style addStyle(String nm, Style parent) { 157: return null; // TODO 158: } // addStyle() 159: 160: /** 161: * removeStyle 162: * @param nm TODO 163: */ 164: public void removeStyle(String nm) { 165: // TODO 166: } // removeStyle() 167: 168: /** 169: * getStyle 170: * @param nm TODO 171: * @returns Style 172: */ 173: public Style getStyle(String nm) { 174: return null; // TODO 175: } // getStyle() 176: 177: /** 178: * getLogicalStyle 179: * @returns Style 180: */ 181: public Style getLogicalStyle() { 182: return null; // TODO 183: } // getLogicalStyle() 184: 185: /** 186: * setLogicalStyle 187: * @param style TODO 188: */ 189: public void setLogicalStyle(Style style) { 190: // TODO 191: } // setLogicalStyle() 192: 193: /** 194: * getCharacterAttributes 195: * @returns AttributeSet 196: */ 197: public AttributeSet getCharacterAttributes() { 198: return null; // TODO 199: } // getCharacterAttributes() 200: 201: /** 202: * setCharacterAttributes 203: * @param attribute TODO 204: * @param replace TODO 205: */ 206: public void setCharacterAttributes(AttributeSet attribute, 207: boolean replace) { 208: // TODO 209: } // setCharacterAttributes() 210: 211: /** 212: * getParagraphAttributes 213: * @returns AttributeSet 214: */ 215: public AttributeSet getParagraphAttributes() { 216: return null; // TODO 217: } // getParagraphAttributes() 218: 219: /** 220: * setParagraphAttributes 221: * @param attribute TODO 222: * @param replace TODO 223: */ 224: public void setParagraphAttributes(AttributeSet attribute, 225: boolean replace) { 226: // TODO 227: } // setParagraphAttributes() 228: 229: /** 230: * getInputAttributes 231: * @returns MutableAttributeSet 232: */ 233: public MutableAttributeSet getInputAttributes() { 234: return null; // TODO 235: } // getInputAttributes() 236: 237: /** 238: * getStyledEditorKit 239: * @returns StyledEditorKit 240: */ 241: protected final StyledEditorKit getStyledEditorKit() { 242: return null; // TODO 243: } // getStyledEditorKit() 244: 245: /** 246: * createDefaultEditorKit 247: * @returns EditorKit 248: */ 249: protected EditorKit createDefaultEditorKit() { 250: return super.createDefaultEditorKit(); // TODO 251: } // createDefaultEditorKit() 252: 253: /** 254: * setEditorKit 255: * @param editor TODO 256: */ 257: public final void setEditorKit(EditorKit editor) { 258: super.setEditorKit(editor); // TODO 259: } // setEditorKit() 260: 261: /** 262: * paramString 263: * @returns String 264: */ 265: protected String paramString() { 266: return super.paramString(); // TODO 267: } // paramString() 268: 269: 270: } // JTextPane
GNU Classpath (0.17) |