Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jaxe
Class JaxeTextPane  view JaxeTextPane download JaxeTextPane.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.text.JTextComponent
                  extended byjavax.swing.JEditorPane
                      extended byjavax.swing.JTextPane
                          extended byjaxe.JaxeTextPane
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.datatransfer.ClipboardOwner, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.Scrollable, java.io.Serializable

public class JaxeTextPane
extends javax.swing.JTextPane
implements java.awt.datatransfer.ClipboardOwner

Zone de texte éditable correspondant à un document XML. Peut être utilisée indépendamment de JaxeFrame et JaxeMenuBar.


Nested Class Summary
protected  class JaxeTextPane.ActionColler
           
protected  class JaxeTextPane.ActionCopier
           
protected  class JaxeTextPane.ActionCouper
           
(package private)  class JaxeTextPane.EditSpecial
           
protected  class JaxeTextPane.MyCaretListener
           
protected  class JaxeTextPane.MyUndoableEditListener
           
 
Nested classes inherited from class javax.swing.JEditorPane
javax.swing.JEditorPane.AccessibleJEditorPane, javax.swing.JEditorPane.AccessibleJEditorPaneHTML, javax.swing.JEditorPane.JEditorPaneAccessibleHypertextSupport
 
Nested classes inherited from class javax.swing.text.JTextComponent
javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.KeyBinding
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private) static int cmdMenu
           
private  JaxeDocument doc
           
private  java.util.ArrayList ecouteursAnnulation
           
private  java.util.ArrayList ecouteursArbre
           
private  boolean editionSpeciale
           
private  javax.swing.undo.CompoundEdit editSpecial
           
private  boolean ignorerEdition
           
private  java.util.Stack ignorerEditionStack
           
 javax.swing.JFrame jframe
           
private  int niveauEditionSpeciale
           
private static java.lang.String ppTexte
           
private static java.lang.Object pressePapier
           
private  java.lang.String texteRecherche
           
private  javax.swing.undo.UndoManager undo
           
 
Fields inherited from class javax.swing.JEditorPane
 
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.Container
 
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
JaxeTextPane(JaxeDocument doc, javax.swing.JFrame jframe)
           
 
Method Summary
 void addEdit(javax.swing.undo.UndoableEdit edit)
           
 void ajouterEcouteurAnnulation(EcouteurMAJ ec)
           
 void ajouterEcouteurArbre(EcouteurMAJ ec)
           
 void allerLigne(int ligne)
          Positionne le document à la ligne indiquée (la première ligne a le numéro 1)
 void coller()
           
 void copier()
           
 void couper()
           
 void debutEditionSpeciale(java.lang.String titre, boolean ignorerEdition)
          Edition spéciale: combinaison d'un ensemble de JaxeUndoableEdit.
 void debutIgnorerEdition()
           
 void finEditionSpeciale()
           
 void finIgnorerEdition()
           
 boolean getEditionSpeciale()
           
 boolean getIgnorerEdition()
           
 javax.swing.undo.UndoManager getUndo()
           
 void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
          This method is called to notify this object that it no longer has ownership of the specified Clipboard.
 void miseAJourAnnulation()
           
 void miseAJourArbre()
           
 void processMouseEvent(java.awt.event.MouseEvent e)
          Called when a regular mouse event is dispatched and component events are enabled.
 void rechercher()
           
 void rechercher(java.lang.String s)
           
 void retirerEcouteurAnnulation(EcouteurMAJ ec)
           
 void retirerEcouteurArbre(EcouteurMAJ ec)
           
 void selectZone(int debut, int fin, boolean select)
           
 void setTabs(int charactersPerTab)
           
private  void showPopup(java.awt.event.MouseEvent e)
           
 void suivant()
           
 void toutSelectionner()
           
 void undo()
           
 
Methods inherited from class javax.swing.JTextPane
addStyle, createDefaultEditorKit, getCharacterAttributes, getInputAttributes, getLogicalStyle, getParagraphAttributes, getStyle, getStyledDocument, getStyledEditorKit, getUIClassID, insertComponent, insertIcon, paramString, removeStyle, replaceSelection, setCharacterAttributes, setDocument, setEditorKit, setLogicalStyle, setParagraphAttributes, setStyledDocument
 
Methods inherited from class javax.swing.JEditorPane
addHyperlinkListener, createEditorKitForContentType, fireHyperlinkUpdate, getAccessibleContext, getContentType, getEditorKit, getEditorKitClassNameForContentType, getEditorKitForContentType, getHyperlinkListeners, getPage, getPreferredSize, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getStream, getText, isFocusCycleRoot, read, registerEditorKitForContentType, registerEditorKitForContentType, removeHyperlinkListener, scrollToReference, setContentType, setEditorKitForContentType, setPage, setPage, setText
 
Methods inherited from class javax.swing.text.JTextComponent
addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getActions, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getFocusAccelerator, getHighlighter, getInputMethodListeners, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, read, removeCaretListener, removeInputMethodListener, removeKeymap, select, selectAll, setCaret, setCaretColor, setCaretPosition, setDisabledTextColor, setDragEnabled, setEditable, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setUI, updateUI, viewToModel, write
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, swapComponents, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cmdMenu

static int cmdMenu

undo

private javax.swing.undo.UndoManager undo

ignorerEdition

private boolean ignorerEdition

editionSpeciale

private boolean editionSpeciale

editSpecial

private javax.swing.undo.CompoundEdit editSpecial

niveauEditionSpeciale

private int niveauEditionSpeciale

ignorerEditionStack

private java.util.Stack ignorerEditionStack

pressePapier

private static java.lang.Object pressePapier

ppTexte

private static java.lang.String ppTexte

texteRecherche

private java.lang.String texteRecherche

ecouteursArbre

private java.util.ArrayList ecouteursArbre

ecouteursAnnulation

private java.util.ArrayList ecouteursAnnulation

doc

private JaxeDocument doc

jframe

public javax.swing.JFrame jframe
Constructor Detail

JaxeTextPane

public JaxeTextPane(JaxeDocument doc,
                    javax.swing.JFrame jframe)
Method Detail

getUndo

public javax.swing.undo.UndoManager getUndo()

undo

public void undo()

getEditionSpeciale

public boolean getEditionSpeciale()

getIgnorerEdition

public boolean getIgnorerEdition()

processMouseEvent

public void processMouseEvent(java.awt.event.MouseEvent e)
Description copied from class: java.awt.Component
Called when a regular mouse event is dispatched and component events are enabled. This method passes the event along to any listeners that are attached.


showPopup

private void showPopup(java.awt.event.MouseEvent e)

selectZone

public void selectZone(int debut,
                       int fin,
                       boolean select)

allerLigne

public void allerLigne(int ligne)
Positionne le document à la ligne indiquée (la première ligne a le numéro 1)


debutIgnorerEdition

public void debutIgnorerEdition()

finIgnorerEdition

public void finIgnorerEdition()

debutEditionSpeciale

public void debutEditionSpeciale(java.lang.String titre,
                                 boolean ignorerEdition)
Edition spéciale: combinaison d'un ensemble de JaxeUndoableEdit.


finEditionSpeciale

public void finEditionSpeciale()

addEdit

public void addEdit(javax.swing.undo.UndoableEdit edit)

couper

public void couper()

copier

public void copier()

coller

public void coller()

toutSelectionner

public void toutSelectionner()

rechercher

public void rechercher()

rechercher

public void rechercher(java.lang.String s)

suivant

public void suivant()

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                          java.awt.datatransfer.Transferable contents)
Description copied from interface: java.awt.datatransfer.ClipboardOwner
This method is called to notify this object that it no longer has ownership of the specified Clipboard.

Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner

ajouterEcouteurArbre

public void ajouterEcouteurArbre(EcouteurMAJ ec)

retirerEcouteurArbre

public void retirerEcouteurArbre(EcouteurMAJ ec)

miseAJourArbre

public void miseAJourArbre()

ajouterEcouteurAnnulation

public void ajouterEcouteurAnnulation(EcouteurMAJ ec)

retirerEcouteurAnnulation

public void retirerEcouteurAnnulation(EcouteurMAJ ec)

miseAJourAnnulation

public void miseAJourAnnulation()

setTabs

public void setTabs(int charactersPerTab)