sferyx.administration.renderers
Class CustomEditorPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.text.JTextComponent
                  extended by javax.swing.JEditorPane
                      extended by sferyx.administration.renderers.CustomEditorPane
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.Scrollable

public class CustomEditorPane
extends javax.swing.JEditorPane

Implementation of JEditorPane for the HTMLEditor requirements

See Also:
Serialized Form

Nested Class Summary
protected  class CustomEditorPane.AccessibleHTMLEditor
           
 
Nested classes/interfaces inherited from class javax.swing.JEditorPane
javax.swing.JEditorPane.AccessibleJEditorPane, javax.swing.JEditorPane.AccessibleJEditorPaneHTML, javax.swing.JEditorPane.JEditorPaneAccessibleHypertextSupport
 
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent
javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.DropLocation, javax.swing.text.JTextComponent.KeyBinding
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 double scale
           
 
Fields inherited from class javax.swing.JEditorPane
HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITS
 
Fields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CustomEditorPane()
          Creates a new instance of CustomEditorPane
 
Method Summary
 javax.accessibility.AccessibleContext getAccessibleContext()
           
 int getCaretPosition()
           
 ElementEditabilityEvaluator getElementEditabilityEvaluator()
           
 java.awt.print.PageFormat getPageLayoutView()
           
 java.awt.Dimension getPreferredSize()
           
 boolean getScrollableTracksViewportHeight()
           
 boolean getScrollableTracksViewportWidth()
           
 boolean isDontPaintInvisibleCells()
           
 boolean isEditable()
           
 boolean isWrapParagraphLinesAlwaysOnBodySize()
           
 boolean isWrapParagraphLinesAlwaysOnEditorSize()
           
 void layout()
           
 void moveCaretPosition(int caretPos)
           
 void paint(java.awt.Graphics g)
           
 void processMouseEvent(java.awt.event.MouseEvent e)
           
 void processMouseMotionEvent(java.awt.event.MouseEvent e)
           
 void requestFocus()
           
 void scrollRectToVisible(java.awt.Rectangle aRect)
           
 void setCaretPosition(int caretPos)
           
 void setComponentOrientation(java.awt.ComponentOrientation orientation)
           
 void setDisableFocusRequests(boolean disable)
           
 void setDocument(javax.swing.text.Document document)
           
 void setDontPaintInvisibleCells(boolean paint)
           
 void setEditable(boolean editable)
           
 void setElementEditabilityEvaluator(ElementEditabilityEvaluator eee)
           
 void setPageLayoutView(java.awt.print.PageFormat pageFormat)
           
 void setSelectedTextColor(java.awt.Color color)
           
 void setSelectionEnd(int pos)
           
 void setSelectionStart(int pos)
           
 void setTempSelectedTextColor(java.awt.Color color)
           
 void setText(java.lang.String t)
           
 void setText1(java.lang.String documentContent)
           
 void setWrapParagraphLinesAlwaysOnBodySize(boolean wrapAlways)
           
 void setWrapParagraphLinesAlwaysOnEditorSize(boolean wrapAlways)
           
 void update(java.awt.Graphics g)
           
 
Methods inherited from class javax.swing.JEditorPane
addHyperlinkListener, createDefaultEditorKit, createEditorKitForContentType, fireHyperlinkUpdate, getContentType, getEditorKit, getEditorKitClassNameForContentType, getEditorKitForContentType, getHyperlinkListeners, getPage, getStream, getText, getUIClassID, paramString, read, registerEditorKitForContentType, registerEditorKitForContentType, removeHyperlinkListener, replaceSelection, scrollToReference, setContentType, setEditorKit, setEditorKitForContentType, setPage, setPage
 
Methods inherited from class javax.swing.text.JTextComponent
addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getActions, getCaret, getCaretColor, getCaretListeners, getDisabledTextColor, getDocument, getDragEnabled, getDropLocation, getDropMode, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getPrintable, getScrollableBlockIncrement, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getToolTipText, getUI, loadKeymap, modelToView, paste, print, print, print, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, select, selectAll, setCaret, setCaretColor, setDisabledTextColor, setDragEnabled, setDropMode, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectionColor, setUI, updateUI, viewToModel, write
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

scale

public double scale
Constructor Detail

CustomEditorPane

public CustomEditorPane()
Creates a new instance of CustomEditorPane

Method Detail

setDontPaintInvisibleCells

public void setDontPaintInvisibleCells(boolean paint)

isDontPaintInvisibleCells

public boolean isDontPaintInvisibleCells()

setWrapParagraphLinesAlwaysOnEditorSize

public void setWrapParagraphLinesAlwaysOnEditorSize(boolean wrapAlways)

isWrapParagraphLinesAlwaysOnEditorSize

public boolean isWrapParagraphLinesAlwaysOnEditorSize()

setWrapParagraphLinesAlwaysOnBodySize

public void setWrapParagraphLinesAlwaysOnBodySize(boolean wrapAlways)

isWrapParagraphLinesAlwaysOnBodySize

public boolean isWrapParagraphLinesAlwaysOnBodySize()

setPageLayoutView

public void setPageLayoutView(java.awt.print.PageFormat pageFormat)

getPageLayoutView

public java.awt.print.PageFormat getPageLayoutView()

setDisableFocusRequests

public void setDisableFocusRequests(boolean disable)

requestFocus

public void requestFocus()
Overrides:
requestFocus in class javax.swing.JComponent

setEditable

public void setEditable(boolean editable)
Overrides:
setEditable in class javax.swing.text.JTextComponent

isEditable

public boolean isEditable()
Overrides:
isEditable in class javax.swing.text.JTextComponent

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JEditorPane

scrollRectToVisible

public void scrollRectToVisible(java.awt.Rectangle aRect)
Overrides:
scrollRectToVisible in class javax.swing.JComponent

getScrollableTracksViewportWidth

public boolean getScrollableTracksViewportWidth()
Specified by:
getScrollableTracksViewportWidth in interface javax.swing.Scrollable
Overrides:
getScrollableTracksViewportWidth in class javax.swing.JEditorPane

getScrollableTracksViewportHeight

public boolean getScrollableTracksViewportHeight()
Specified by:
getScrollableTracksViewportHeight in interface javax.swing.Scrollable
Overrides:
getScrollableTracksViewportHeight in class javax.swing.JEditorPane

processMouseEvent

public void processMouseEvent(java.awt.event.MouseEvent e)
Overrides:
processMouseEvent in class javax.swing.JComponent

processMouseMotionEvent

public void processMouseMotionEvent(java.awt.event.MouseEvent e)
Overrides:
processMouseMotionEvent in class javax.swing.JComponent

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class javax.swing.JComponent

update

public void update(java.awt.Graphics g)
Overrides:
update in class javax.swing.JComponent

layout

public void layout()
Overrides:
layout in class java.awt.Container

getCaretPosition

public int getCaretPosition()
Overrides:
getCaretPosition in class javax.swing.text.JTextComponent

setSelectionStart

public void setSelectionStart(int pos)
Overrides:
setSelectionStart in class javax.swing.text.JTextComponent

setTempSelectedTextColor

public void setTempSelectedTextColor(java.awt.Color color)

setSelectedTextColor

public void setSelectedTextColor(java.awt.Color color)
Overrides:
setSelectedTextColor in class javax.swing.text.JTextComponent

setSelectionEnd

public void setSelectionEnd(int pos)
Overrides:
setSelectionEnd in class javax.swing.text.JTextComponent

moveCaretPosition

public void moveCaretPosition(int caretPos)
Overrides:
moveCaretPosition in class javax.swing.text.JTextComponent

setComponentOrientation

public void setComponentOrientation(java.awt.ComponentOrientation orientation)
Overrides:
setComponentOrientation in class javax.swing.text.JTextComponent

setText1

public void setText1(java.lang.String documentContent)

setText

public void setText(java.lang.String t)
Overrides:
setText in class javax.swing.JEditorPane

setCaretPosition

public void setCaretPosition(int caretPos)
Overrides:
setCaretPosition in class javax.swing.text.JTextComponent

setElementEditabilityEvaluator

public void setElementEditabilityEvaluator(ElementEditabilityEvaluator eee)

getElementEditabilityEvaluator

public ElementEditabilityEvaluator getElementEditabilityEvaluator()

setDocument

public void setDocument(javax.swing.text.Document document)
Overrides:
setDocument in class javax.swing.text.JTextComponent

getAccessibleContext

public javax.accessibility.AccessibleContext getAccessibleContext()
Specified by:
getAccessibleContext in interface javax.accessibility.Accessible
Overrides:
getAccessibleContext in class javax.swing.JEditorPane