public class FilePane extends javax.swing.JPanel implements DiffAlgorithm
Modifier and Type | Class and Description |
---|---|
class |
FilePane.TextFile
The text file associated with the file pane.
|
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected static CodeEditorDefaults |
defaults |
protected JEditor |
ed |
protected FilePane.TextFile |
fromfile |
protected java.lang.String |
name |
protected JAppEditor |
parent |
protected JDiffTextPanel |
textco |
protected FilePane.TextFile |
tofile |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
TYPE_FULL_LINES, TYPE_WITHIN_LINES_BASIC, TYPE_WITHIN_LINES_DIFF
Constructor and Description |
---|
FilePane(JAppEditor parent,
java.io.File file)
Constructor for files comparison.
|
FilePane(JAppEditor parent,
java.io.File from,
java.io.File to)
Constructor for files comparison.
|
FilePane(JAppEditor parent,
java.io.File from,
java.io.File to,
short diffAlgorithm)
Constructor for files comparison.
|
FilePane(JAppEditor parent,
FilePane.TextFile from,
FilePane.TextFile to)
Constructor for files comparison.
|
FilePane(JAppEditor parent,
FilePane.TextFile from,
FilePane.TextFile to,
short diffAlgorithm)
Constructor for files comparison.
|
FilePane(JAppEditor parent,
java.lang.String name,
java.lang.String filetype)
Default private constructor.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile()
Return the associated file.
|
java.lang.String |
getFileType()
Return the associated file type.
|
JEditor |
getFromEditor() |
FilePane.TextFile |
getFromFile() |
java.lang.String |
getName() |
FilePane.TextFile |
getToFile() |
void |
setFile(java.io.File file)
Set the file of the FilePane.
|
void |
setFileType(java.lang.String filetype) |
protected void |
setPanel(FilePane.TextFile text,
boolean isEditable,
SearchEngine searchEngine) |
protected void |
setPanel(FilePane.TextFile fromfile,
FilePane.TextFile tofile) |
static void |
setTabSize(int tabSize) |
void |
setTokenMarker(TokenMarker marker) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, 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, update
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, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, 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, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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
protected java.lang.String name
protected FilePane.TextFile fromfile
protected FilePane.TextFile tofile
protected JAppEditor parent
protected JEditor ed
protected JDiffTextPanel textco
protected static CodeEditorDefaults defaults
public FilePane(JAppEditor parent, java.lang.String name, java.lang.String filetype)
parent
- the parent editorname
- the pane namefiletype
- the file typepublic FilePane(JAppEditor parent, java.io.File file)
parent
- the parent editorfile
- the filepublic FilePane(JAppEditor parent, java.io.File from, java.io.File to)
parent
- the parent editorfrom
- the from fileto
- the to filepublic FilePane(JAppEditor parent, java.io.File from, java.io.File to, short diffAlgorithm)
parent
- the parent editorfrom
- the from fileto
- the to filediffAlgorithm
- the diff algorithm used to specify how differences within lines are shownpublic FilePane(JAppEditor parent, FilePane.TextFile from, FilePane.TextFile to)
parent
- the parent editorfrom
- the from text fileto
- the to text filepublic FilePane(JAppEditor parent, FilePane.TextFile from, FilePane.TextFile to, short diffAlgorithm)
parent
- the parent editorfrom
- the from text fileto
- the to text filediffAlgorithm
- the diff algorithm used to specify how differences within lines are shownpublic static void setTabSize(int tabSize)
public void setFile(java.io.File file)
file
- the filepublic java.io.File getFile()
public java.lang.String getFileType()
protected void setPanel(FilePane.TextFile text, boolean isEditable, SearchEngine searchEngine)
public JEditor getFromEditor()
protected void setPanel(FilePane.TextFile fromfile, FilePane.TextFile tofile)
public void setFileType(java.lang.String filetype)
public void setTokenMarker(TokenMarker marker)
public FilePane.TextFile getFromFile()
public FilePane.TextFile getToFile()
public java.lang.String getName()
getName
in class java.awt.Component
Copyright © 2016, 2017, 2018, 2019, 2023 Herve Girod. All Rights Reserved. Documentation and source under the MIT licence