swingwtx.swing
Class JEditorPane

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.Container
          extended byswingwtx.swing.JComponent
              extended byswingwtx.swing.text.JTextComponent
                  extended byswingwtx.swing.JEditorPane
All Implemented Interfaces:
ImageObserver, MenuContainer
Direct Known Subclasses:
JTextPane

public class JEditorPane
extends JTextComponent


Nested Class Summary
 
Nested classes inherited from class swingwtx.swing.text.JTextComponent
JTextComponent.TextEventHandler
 
Nested classes inherited from class swingwtx.swing.JComponent
JComponent.InternalFrameSelectionListener
 
Field Summary
protected  EditorPane editorPaneImpl
          The EditorPane implementation we are using
 
Fields inherited from class swingwtx.swing.text.JTextComponent
caret, doc, iRetVal, pCols, pEditable, ppeer, pRows, pText, pWordWrap, retVal, selEnd, selStart, view
 
Fields inherited from class swingwtx.swing.JComponent
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, opaque, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap
 
Fields inherited from class swingwt.awt.Container
composite, comps, containerListeners, layout, queuedValidateRequest
 
Fields inherited from class swingwt.awt.Component
actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, graphicsConfig, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, peer, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JEditorPane()
           
JEditorPane(java.lang.String url)
           
JEditorPane(java.lang.String type, java.lang.String text)
           
JEditorPane(java.net.URL url)
           
 
Method Summary
 void addHyperlinkListener(HyperlinkListener l)
           
protected  Dimension calculatePreferredSize()
          Overriden to calculate non-realised preferred size.
 int getCaretPosition()
           
 java.lang.String getContentType()
           
 Document getDocument()
           
 EditorKit getEditorKit()
           
 Color getSelectionColor()
           
 int getSelectionEnd()
           
 int getSelectionStart()
           
 java.lang.String getText()
           
 boolean isEditable()
           
 void removeHyperlinkListener(HyperlinkListener l)
           
 void setCaretPosition(int pos)
           
 void setContentType(java.lang.String contentType)
           
 void setDocument(Document newdoc)
           
 void setEditable(boolean b)
           
 void setEditorKit(EditorKit k)
           
 void setPage(java.lang.String url)
           
 void setPage(java.net.URL url)
           
 void setSelectionColor(Color color)
          NOT IMPLEMENTED - Has no meaning in native plaf
 void setSwingWTParent(Container parent)
          Once a parent component receives an "add" call for a child, this being the child, this should be called to tell us to instantiate the peer and load in any cached properties.
 void setText(java.lang.String text)
           
 
Methods inherited from class swingwtx.swing.text.JTextComponent
addInputMethodListener, copy, cut, getCaret, paste, replaceSelection, select, selectAll, setCaret, setSelectedTextColor, setSelectionEnd, setSelectionStart
 
Methods inherited from class swingwtx.swing.JComponent
add, add, add, add, add, addPropertyChangeListener, addPropertyChangeListener, checkInternalFrameChild, dispose, getAccessibleContext, getActionMap, getAutoscrolls, getBorder, getClientProperty, getInputMap, getInsets, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVisibleRect, isDoubleBuffered, isOpaque, isOptimizedDrawingEnabled, isValidateRoot, paint, paintBackground, paintChildren, paintComponent, paintImmediately, paintImmediately, putClientProperty, remove, remove, removePropertyChangeListener, removePropertyChangeListener, repaint, revalidate, scrollRectToVisible, setActionMap, setAutoscrolls, setBorder, setDoubleBuffered, setInputMap, setMargin, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled
 
Methods inherited from class swingwt.awt.Container
addComponentToLayout, addContainerListener, debug_showContainmentTree, doAdd, doLayout, getComponent, getComponentCount, getComponentOrientation, getComponents, getComposite, getLayout, getMaximumSize, getMinimumSize, getParent, getPreferredSize, invalidate, minimumSize, preferredSize, processContainerEvent, processEvent, queuedValidate, removeAll, removeComponentFromCache, removeContainerListener, setLayout, setLayoutImpl, validate
 
Methods inherited from class swingwt.awt.Component
add, addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, componentOnlyDispose, computePreferredSize, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getListeners, getLocation, getLocationOnScreen, getName, getPeer, getPeerSize, getSize, getSize, getSWTPeer, getToolkit, getToolTipText, getTreeLock, getWidth, getX, getY, grabFocus, hasFocus, hasSetFont, hide, imageUpdate, inside, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setBounds, setBounds, setCachedProperties, setComponentOrientation, setComponentRemoved, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setSize, setSize, setToolTipText, setVisible, setWidth, show, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editorPaneImpl

protected EditorPane editorPaneImpl
The EditorPane implementation we are using

Constructor Detail

JEditorPane

public JEditorPane()

JEditorPane

public JEditorPane(java.lang.String url)
            throws java.io.IOException

JEditorPane

public JEditorPane(java.lang.String type,
                   java.lang.String text)

JEditorPane

public JEditorPane(java.net.URL url)
            throws java.io.IOException
Method Detail

calculatePreferredSize

protected Dimension calculatePreferredSize()
Overriden to calculate non-realised preferred size.

Overrides:
calculatePreferredSize in class Component

setSwingWTParent

public void setSwingWTParent(Container parent)
                      throws java.lang.Exception
Once a parent component receives an "add" call for a child, this being the child, this should be called to tell us to instantiate the peer and load in any cached properties.

Overrides:
setSwingWTParent in class JTextComponent
Throws:
java.lang.Exception

getText

public java.lang.String getText()
Overrides:
getText in class JTextComponent

setText

public void setText(java.lang.String text)
Overrides:
setText in class JTextComponent

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

isEditable

public boolean isEditable()
Overrides:
isEditable in class JTextComponent

setEditable

public void setEditable(boolean b)
Overrides:
setEditable in class JTextComponent

setDocument

public void setDocument(Document newdoc)
Overrides:
setDocument in class JTextComponent

getDocument

public Document getDocument()
Overrides:
getDocument in class JTextComponent

setPage

public void setPage(java.net.URL url)
             throws java.io.IOException
Throws:
java.io.IOException

setPage

public void setPage(java.lang.String url)
             throws java.io.IOException
Throws:
java.io.IOException

addHyperlinkListener

public void addHyperlinkListener(HyperlinkListener l)

removeHyperlinkListener

public void removeHyperlinkListener(HyperlinkListener l)

setCaretPosition

public void setCaretPosition(int pos)
Overrides:
setCaretPosition in class JTextComponent

getCaretPosition

public int getCaretPosition()
Overrides:
getCaretPosition in class JTextComponent

getSelectionStart

public int getSelectionStart()
Overrides:
getSelectionStart in class JTextComponent

getSelectionEnd

public int getSelectionEnd()
Overrides:
getSelectionEnd in class JTextComponent

getEditorKit

public EditorKit getEditorKit()

setEditorKit

public void setEditorKit(EditorKit k)

setSelectionColor

public void setSelectionColor(Color color)
Description copied from class: JTextComponent
NOT IMPLEMENTED - Has no meaning in native plaf

Overrides:
setSelectionColor in class JTextComponent

getSelectionColor

public Color getSelectionColor()