|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.gjt.sp.jedit.browser.VFSBrowser
The main class of the VFS browser.
Field Summary | |
static int |
BROWSER
Stand-alone browser mode. |
static int |
BROWSER_DIALOG
Choose directory dialog mode. |
static int |
CHOOSE_DIRECTORY_DIALOG
Choose directory dialog mode. |
static java.lang.String |
NAME
|
static int |
OPEN_DIALOG
Open file dialog mode. |
static int |
SAVE_DIALOG
Save file dialog mode. |
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 | |
VFSBrowser(View view)
Creates a new VFS browser. |
|
VFSBrowser(View view,
java.lang.String path,
int mode,
boolean multipleSelection,
boolean floating)
Creates a new VFS browser. |
Method Summary | |
void |
addBrowserListener(BrowserListener l)
|
void |
addNotify()
|
static void |
browseDirectory(View view,
java.lang.String path)
Opens the specified directory in a file system browser. |
static void |
browseDirectoryInNewWindow(View view,
java.lang.String path)
Opens the specified directory in a new, floating, file system browser. |
void |
delete(VFS.DirectoryEntry[] files)
Note that all files must be on the same VFS. |
org.gjt.sp.jedit.browser.BrowserView |
getBrowserView()
|
java.lang.String |
getDirectory()
|
HistoryTextField |
getDirectoryField()
|
java.lang.String |
getFilenameFilter()
Returns the file name filter glob. |
int |
getMode()
|
VFS.DirectoryEntry[] |
getSelectedFiles()
|
boolean |
getShowHiddenFiles()
|
View |
getView()
|
void |
handleMessage(EBMessage msg)
Handles a message sent on the EditBus. |
boolean |
isMultipleSelectionEnabled()
|
void |
mkdir()
|
void |
newFile()
Creates a new file in the current directory. |
void |
reloadDirectory()
|
void |
removeBrowserListener(BrowserListener l)
|
void |
removeNotify()
|
void |
rename(java.lang.String from)
|
boolean |
requestDefaultFocus()
|
void |
rootDirectory()
Goes to the local drives directory. |
void |
searchInDirectory()
Opens a directory search in the current directory. |
void |
setDirectory(java.lang.String path)
|
void |
setFilenameFilter(java.lang.String filter)
|
void |
setShowHiddenFiles(boolean showHiddenFiles)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, 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, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, 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, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, 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, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String NAME
public static final int OPEN_DIALOG
public static final int SAVE_DIALOG
public static final int BROWSER_DIALOG
public static final int CHOOSE_DIRECTORY_DIALOG
public static final int BROWSER
Constructor Detail |
public VFSBrowser(View view)
view
- The view to open buffers in by defaultpublic VFSBrowser(View view, java.lang.String path, int mode, boolean multipleSelection, boolean floating)
view
- The view to open buffers in by defaultpath
- The path to displaymode
- The browser modemultipleSelection
- True if multiple selection should be allowedfloating
- True if this browser instance is floatingMethod Detail |
public static void browseDirectoryInNewWindow(View view, java.lang.String path)
view
- The viewpath
- The directory's pathpublic static void browseDirectory(View view, java.lang.String path)
view
- The viewpath
- The directory's pathpublic boolean requestDefaultFocus()
requestDefaultFocus
in class javax.swing.JComponent
public void addNotify()
addNotify
in class javax.swing.JComponent
public void removeNotify()
removeNotify
in class javax.swing.JComponent
public void handleMessage(EBMessage msg)
EBComponent
EBMessage
class. Typically
this is done with one or more if
blocks that test
whether the message is an instance of a derived message class in
which the component has an interest. For example:
if(msg instanceof BufferUpdate) { // a buffer's state has changed! } else if(msg instanceof ViewUpdate) { // a view's state has changed! } // ... and so on
handleMessage
in interface EBComponent
msg
- The messagepublic View getView()
public int getMode()
public boolean isMultipleSelectionEnabled()
public boolean getShowHiddenFiles()
public void setShowHiddenFiles(boolean showHiddenFiles)
public java.lang.String getFilenameFilter()
public void setFilenameFilter(java.lang.String filter)
public HistoryTextField getDirectoryField()
public java.lang.String getDirectory()
public void setDirectory(java.lang.String path)
public void rootDirectory()
public void reloadDirectory()
public void delete(VFS.DirectoryEntry[] files)
public void rename(java.lang.String from)
public void mkdir()
public void newFile()
public void searchInDirectory()
public org.gjt.sp.jedit.browser.BrowserView getBrowserView()
public VFS.DirectoryEntry[] getSelectedFiles()
public void addBrowserListener(BrowserListener l)
public void removeBrowserListener(BrowserListener l)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |