Save This Page
Home » apache-harmony-6.0-src-r917296-snapshot » javax » swing » [javadoc | source]
javax.swing
public class: JTextPane [javadoc | source]
java.lang.Object
   java.awt.Component
      java.awt.Container
         javax.swing.JComponent
            javax.swing.text.JTextComponent
               javax.swing.JEditorPane
                  javax.swing.JTextPane

All Implemented Interfaces:
    Scrollable, MenuContainer, Accessible, Serializable, ImageObserver

Fields inherited from javax.swing.JEditorPane:
HONOR_DISPLAY_PROPERTIES,  W3C_LENGTH_UNITS
Fields inherited from javax.swing.text.JTextComponent:
FOCUS_ACCELERATOR_KEY,  DEFAULT_KEYMAP
Fields inherited from javax.swing.JComponent:
WHEN_FOCUSED,  WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,  WHEN_IN_FOCUSED_WINDOW,  UNDEFINED_CONDITION,  TOOL_TIP_TEXT_KEY,  INHERITS_POPUP_MENU_PROPERTY_NAME,  COMPONENT_POPUP_MENU_PROPERTY_NAME,  UI_PROPERTY_NAME,  AUTOSCROLLS_PROPERTY_NAME,  VERIFY_INPUT_PROPERTY_NAME,  NEXT_FOCUSABLE_PROPERTY_NAME,  accessibleContext,  ui,  listenerList,  installablePropertiesExcluded
Fields inherited from java.awt.Container:
layoutData,  focusCycleRoot,  isRemoved
Fields inherited from java.awt.Component:
TOP_ALIGNMENT,  CENTER_ALIGNMENT,  BOTTOM_ALIGNMENT,  LEFT_ALIGNMENT,  RIGHT_ALIGNMENT,  toolkit,  behaviour,  parent,  deprecatedEventHandler,  x,  y,  w,  h,  dispatchToIM,  visible,  traversalIDs,  cursor,  dropTarget,  repaintRegion,  redrawManager
Constructor:
 public JTextPane() 
 public JTextPane(StyledDocument doc) 
Method from javax.swing.JTextPane Summary:
addStyle,   createDefaultEditorKit,   getCharacterAttributes,   getInputAttributes,   getLogicalStyle,   getParagraphAttributes,   getStyle,   getStyledDocument,   getStyledEditorKit,   getUIClassID,   insertComponent,   insertIcon,   removeStyle,   replaceSelection,   setCharacterAttributes,   setDocument,   setEditorKit,   setLogicalStyle,   setParagraphAttributes,   setStyledDocument
Methods from javax.swing.JEditorPane:
addHyperlinkListener,   createDefaultEditorKit,   createEditorKitForContentType,   fireHyperlinkUpdate,   getAccessibleContext,   getContentType,   getEditorKit,   getEditorKitClassNameForContentType,   getEditorKitForContentType,   getHyperlinkListeners,   getPage,   getPreferredSize,   getScrollableTracksViewportHeight,   getScrollableTracksViewportWidth,   getStream,   getText,   getUIClassID,   paramString,   read,   registerEditorKitForContentType,   registerEditorKitForContentType,   removeHyperlinkListener,   replaceSelection,   scrollToReference,   setContentType,   setEditorKit,   setEditorKitForContentType,   setPage,   setPage,   setText
Methods from javax.swing.text.JTextComponent:
addCaretListener,   addKeymap,   copy,   cut,   fireCaretUpdate,   getAccessibleContext,   getActions,   getCaret,   getCaretColor,   getCaretListeners,   getCaretPosition,   getDisabledTextColor,   getDocument,   getDragEnabled,   getFocusAccelerator,   getHighlighter,   getInputMethodRequests,   getKeymap,   getKeymap,   getLastFocusedTextComponent,   getMargin,   getNavigationFilter,   getPreferredScrollableViewportSize,   getScrollableBlockIncrement,   getScrollableTracksViewportHeight,   getScrollableTracksViewportWidth,   getScrollableUnitIncrement,   getSelectedText,   getSelectedTextColor,   getSelectionColor,   getSelectionEnd,   getSelectionStart,   getText,   getText,   getToolTipText,   getUI,   isEditable,   loadKeymap,   modelToView,   moveCaretPosition,   paramString,   paste,   processInputMethodEvent,   read,   removeCaretListener,   removeKeymap,   removeNotify,   replaceSelection,   select,   selectAll,   setCaret,   setCaretColor,   setCaretPosition,   setComponentOrientation,   setDisabledTextColor,   setDocument,   setDragEnabled,   setEditable,   setFocusAccelerator,   setHighlighter,   setKeymap,   setMargin,   setNavigationFilter,   setSelectedTextColor,   setSelectionColor,   setSelectionEnd,   setSelectionStart,   setText,   setUI,   updateUI,   viewToModel,   write
Methods from javax.swing.JComponent:
addAncestorListener,   addNotify,   addVetoableChangeListener,   componentInputMapChanged,   computeVisibleRect,   contains,   createToolTip,   firePropertyChange,   firePropertyChange,   fireVetoableChange,   getActionForKeyStroke,   getActionMap,   getActionMap,   getAlignmentX,   getAlignmentY,   getAncestorListeners,   getAutoscrolls,   getBorder,   getBounds,   getClientProperty,   getComponentGraphics,   getComponentPopupMenu,   getConditionForKeyStroke,   getDebugGraphicsOptions,   getDefaultLocale,   getGraphics,   getInheritsPopupMenu,   getInputMap,   getInputMap,   getInputMap,   getInputVerifier,   getInsets,   getInsets,   getListeners,   getLocation,   getMaximumSize,   getMinimumSize,   getNextFocusableComponent,   getPopupLocation,   getPreferredSize,   getRegisteredKeyStrokes,   getRootPane,   getSize,   getToolTipLocation,   getToolTipText,   getToolTipText,   getTopLevelAncestor,   getTransferHandler,   getUIClassID,   getVerifyInputWhenFocusTarget,   getVetoableChangeListeners,   getVisibleRect,   grabFocus,   hasListener,   insideDoubleBuffering,   isDoubleBuffered,   isLightweightComponent,   isManagingFocus,   isOpaque,   isOptimizedDrawingEnabled,   isPaintingTile,   isRequestFocusEnabled,   isValidateRoot,   paint,   paintBorder,   paintChildren,   paintComponent,   paintDoubleBuffered,   paintImmediately,   paintImmediately,   paramString,   print,   printAll,   printBorder,   printChildren,   printComponent,   processComponentKeyEvent,   processKeyBinding,   processKeyBindings,   processKeyEvent,   putClientProperty,   registerKeyboardAction,   registerKeyboardAction,   removeAncestorListener,   removeNotify,   removeVetoableChangeListener,   repaint,   repaint,   requestDefaultFocus,   requestFocus,   requestFocus,   requestFocusInWindow,   requestFocusInWindow,   resetKeyboardActions,   revalidate,   scrollRectToVisible,   setActionMap,   setAlignmentX,   setAlignmentY,   setAutoscrolls,   setBorder,   setComponentPopupMenu,   setDebugGraphicsOptions,   setDefaultLocale,   setDoubleBuffered,   setEnabled,   setInheritsPopupMenu,   setInputMap,   setInputVerifier,   setNextFocusableComponent,   setOpaque,   setRequestFocusEnabled,   setToolTipText,   setTransferHandler,   setUI,   setVerifyInputWhenFocusTarget,   unregisterKeyboardAction,   update,   updateUI
Methods from java.awt.Container:
add,   add,   add,   add,   add,   addContainerListener,   addImpl,   addInsets,   addNotify,   addObscuredRegions,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   countComponents,   deliverEvent,   doLayout,   findComponentAt,   findComponentAt,   finishChildrenHierarchyChange,   getAlignmentX,   getAlignmentY,   getClient,   getComponent,   getComponentAt,   getComponentAt,   getComponentCount,   getComponentIndex,   getComponentZOrder,   getComponents,   getContainerListeners,   getDefaultMinimumSize,   getDefaultPreferredSize,   getFocusTraversalKeys,   getFocusTraversalPolicy,   getFocusTraversalRoot,   getInsets,   getLayout,   getListeners,   getMaximumSize,   getMinimumSize,   getMousePosition,   getPreferredSize,   insets,   invalidate,   isAncestorOf,   isComponentAt,   isFocusCycleRoot,   isFocusCycleRoot,   isFocusTraversalPolicyProvider,   isFocusTraversalPolicySet,   layout,   list,   list,   locate,   locateImpl,   mapToDisplay,   minimumSize,   moveFocusOnHide,   paint,   paintComponents,   paramString,   postHierarchyBoundsEvents,   preferredSize,   prepareChildren4HierarchyChange,   print,   printComponents,   processContainerEvent,   processEvent,   propagateFont,   propagateRepaint,   remove,   remove,   removeAll,   removeContainerListener,   removeNotify,   resetDefaultSize,   setComponentZOrder,   setFocusCycleRoot,   setFocusTraversalKeys,   setFocusTraversalPolicy,   setFocusTraversalPolicyProvider,   setFont,   setFontImpl,   setLayout,   setRedrawManager,   spreadHierarchyBoundsEvents,   transferFocusBackward,   transferFocusDownCycle,   update,   validate,   validateTree
Methods from java.awt.Component:
action,   add,   addAWTComponentListener,   addAWTFocusListener,   addAWTInputMethodListener,   addAWTKeyListener,   addAWTMouseListener,   addAWTMouseMotionListener,   addAWTMouseWheelListener,   addComponentListener,   addFocusListener,   addHierarchyBoundsListener,   addHierarchyListener,   addInputMethodListener,   addKeyListener,   addMouseListener,   addMouseMotionListener,   addMouseWheelListener,   addNewEvent,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   autoName,   bounds,   checkImage,   checkImage,   coalesceEvents,   contains,   contains,   createAccessibleContext,   createBehavior,   createImage,   createImage,   createVolatileImage,   createVolatileImage,   deliverEvent,   disable,   disableEvents,   dispatchEvent,   doLayout,   enable,   enable,   enableEvents,   enableInputMethods,   finishChildrenHierarchyChange,   finishHierarchyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   getAccessibleContext,   getAlignmentX,   getAlignmentY,   getBackground,   getBounds,   getBounds,   getColorModel,   getComponentAt,   getComponentAt,   getComponentListeners,   getComponentOrientation,   getCursor,   getCursorAncestor,   getDefaultBackground,   getDefaultForeground,   getDefaultMinimumSize,   getDefaultPreferredSize,   getDropTarget,   getFocusCycleRootAncestor,   getFocusListeners,   getFocusTraversalKeys,   getFocusTraversalKeysEnabled,   getFont,   getFontMetrics,   getForeground,   getGraphics,   getGraphicsConfiguration,   getHWAncestor,   getHWSurface,   getHeight,   getHierarchyBoundsListeners,   getHierarchyListeners,   getIgnoreRepaint,   getIndentStr,   getInputContext,   getInputMethodListeners,   getInputMethodRequests,   getInsets,   getKeyListeners,   getListeners,   getLocale,   getLocation,   getLocation,   getLocationOnScreen,   getMaximumSize,   getMinimumSize,   getMouseListeners,   getMouseMotionListeners,   getMousePosition,   getMouseWheelListeners,   getName,   getNativeInsets,   getNativeWindow,   getObscuredRegion,   getParent,   getPeer,   getPreferredSize,   getPropertyChangeListeners,   getPropertyChangeListeners,   getRealCursor,   getRealParent,   getRedrawManager,   getRelativeEvent,   getSize,   getSize,   getTextFieldKit,   getTextKit,   getToolkit,   getTreeLock,   getWidth,   getWindowAncestor,   getX,   getY,   gotFocus,   handleEvent,   hasFocus,   hide,   imageUpdate,   initGraphics,   inside,   invalidate,   isBackgroundSet,   isCoalescer,   isCursorSet,   isDisplayable,   isDoubleBuffered,   isEnabled,   isEventEnabled,   isFocusCycleRoot,   isFocusOwner,   isFocusTraversable,   isFocusabilityExplicitlySet,   isFocusable,   isFontSet,   isForegroundSet,   isIndirectlyEnabled,   isKeyEnabled,   isLightweight,   isMaximumSizeSet,   isMinimumSizeSet,   isMouseEventEnabled,   isMouseExitedExpected,   isOpaque,   isPeerFocusable,   isPreferredSizeSet,   isPrepainter,   isShowing,   isValid,   isVisible,   keyDown,   keyUp,   layout,   list,   list,   list,   list,   list,   locate,   location,   lostFocus,   mapToDisplay,   minimumSize,   mouseDown,   mouseDrag,   mouseEnter,   mouseExit,   mouseMove,   mouseUp,   move,   moveFocus,   moveFocusOnHide,   nativeWindowCreated,   nextFocus,   notifyInputMethod,   onDrawImage,   paint,   paintAll,   paramString,   postEvent,   postEvent,   postHierarchyBoundsEvents,   postprocessEvent,   preferredSize,   prepaint,   prepare4HierarchyChange,   prepareChildren4HierarchyChange,   prepareImage,   prepareImage,   preprocessFocusEvent,   preprocessKeyEvent,   preprocessMouseEvent,   preprocessMouseMotionEvent,   print,   printAll,   processComponentEvent,   processEvent,   processFocusEvent,   processHierarchyBoundsEvent,   processHierarchyEvent,   processInputMethodEvent,   processKeyEvent,   processMouseEvent,   processMouseMotionEvent,   processMouseWheelEvent,   propagateFont,   remove,   removeComponentListener,   removeFocusListener,   removeHierarchyBoundsListener,   removeHierarchyListener,   removeInputMethodListener,   removeKeyListener,   removeMouseListener,   removeMouseMotionListener,   removeMouseWheelListener,   removeNextEvent,   removeNotify,   removePropertyChangeListener,   removePropertyChangeListener,   removeRelativeEvent,   repaint,   repaint,   repaint,   repaint,   requestFocus,   requestFocus,   requestFocusImpl,   requestFocusInWindow,   requestFocusInWindow,   resetDefaultSize,   reshape,   resize,   resize,   setBackground,   setBounds,   setBounds,   setBounds,   setCaretPos,   setCaretPosImpl,   setComponentOrientation,   setCursor,   setCursor,   setDropTarget,   setEnabled,   setEnabledImpl,   setFocusTraversalKeys,   setFocusTraversalKeysEnabled,   setFocusable,   setFont,   setFontImpl,   setForeground,   setIgnoreRepaint,   setLocale,   setLocation,   setLocation,   setMaximumSize,   setMinimumSize,   setMouseExitedExpected,   setName,   setParent,   setPreferredSize,   setRedrawManager,   setSize,   setSize,   setTextFieldKit,   setTextKit,   setVisible,   show,   show,   size,   spreadHierarchyBoundsEvents,   toString,   transferFocus,   transferFocus,   transferFocusBackward,   transferFocusUpCycle,   update,   validate,   validateImpl
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.JTextPane Detail:
 public Style addStyle(String styleName,
    Style parent) 
 protected EditorKit createDefaultEditorKit() 
 public AttributeSet getCharacterAttributes() 
 public MutableAttributeSet getInputAttributes() 
 public Style getLogicalStyle() 
 public AttributeSet getParagraphAttributes() 
 public Style getStyle(String styleName) 
 public StyledDocument getStyledDocument() 
 protected final StyledEditorKit getStyledEditorKit() 
 public String getUIClassID() 
 public synchronized  void insertComponent(Component c) 
    To insert component we should insert in the document whitespace with special attribute StyleConstants.ComponentAttribute
 public synchronized  void insertIcon(Icon g) 
    To insert icon we should insert in the document whitespace with special attribute StyleConstants.IconAttribute
 public  void removeStyle(String styleName) 
 public  void replaceSelection(String content) 
    This method differs from JEditorPane.replaceSelection only in one case. If there is selection the replacement text should have not the attributes currently defined for input, but the attributes of the first selected symbol.
 public synchronized  void setCharacterAttributes(AttributeSet attr,
    boolean replace) 
 public  void setDocument(Document doc) 
 public final  void setEditorKit(EditorKit kit) 
 public  void setLogicalStyle(Style s) 
 public synchronized  void setParagraphAttributes(AttributeSet attr,
    boolean replace) 
 public  void setStyledDocument(StyledDocument doc)