wt.clients.util
Class JFileChooserApplet
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
wt.clients.util.JFileChooserApplet
- All Implemented Interfaces:
- Accessible, ImageObserver, MenuContainer, Serializable
- public class JFileChooserApplet
- extends Applet
Applet used to select files (actually, filepath strings),
requires Java plugin.
This applet is used in HTML pages to launch a Java file
dialog and return the the selected filepath(s) to
the HTML page.
Visible portion of applet is a button that typically says
"Browse..." When the applet button is clicked, a file chooser
dialog is launched.
The user uses the file dialog to selects file(s) and clicks "Save"
(or custom label) button. The filepath (or multiple concatenated
filepaths) string is provided to the page by the applet calling the
JavaScript method setPath() (or jsSetMethod-specified custom method).
Used in single-select mode for selecting primary content
files for FormatContentHolder objects (such as WTDocuments),
typically in conjunction with an HTML text field to emulate an
HTML file input (looks the same, but has much more intelligence).
Used in multi-select mode for selecting secondary content
of FormatContentHolder objects, and attachments for
ContentHolder objects (such as change objects).
- See Also:
FileChooserDropApplet
,
FileLocatorApplet
,
The following parameters are absolutely required:
,
Serialized Form
Fields inherited from class java.applet.Applet |
|
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
Methods inherited from class java.applet.Applet |
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
initSync
private static Object initSync
contextGroup
private ThreadGroup contextGroup
defaultPath
private String defaultPath
actionLabel
private String actionLabel
jsSetMethod
private String jsSetMethod
fileAccess
private FileAccess fileAccess
MULTI_SELECT_ENABLED
private boolean MULTI_SELECT_ENABLED
DELIM
private String DELIM
DEBUG
boolean DEBUG
browse
Button browse
JFileChooserApplet
public JFileChooserApplet()
init
public void init()
start
public void start()
stop
public void stop()
destroy
public void destroy()
getParentApplet
public Applet getParentApplet()
getParentFrame
public Frame getParentFrame()
getParameter
private String getParameter(String paramName,
String defaultParamValue)
showFileLocator
public void showFileLocator(String path)
doShowFileLocator
public String doShowFileLocator(String path)
isValidTarget
public boolean isValidTarget(String target)
confirm
private boolean confirm(String displayMessage)
setElement
protected void setElement(String value)
getFileAccess
private FileAccess getFileAccess()
EncodeHTMLPath
private String EncodeHTMLPath(String path)
createValidDefaultPath
public String createValidDefaultPath(String path)
isDirectory
public boolean isDirectory(String path)