|
|||||
PREV CLASS NEXT CLASS | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--swishej.SearchApplet
Class implementing the search applet for SWISH-E indices.
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
(package private) java.lang.String[] |
data
String array for passing arguments to JavaScript. |
(package private) java.awt.Button |
doClear
The "Clear" button. |
(package private) java.awt.Button |
doHelp
The "Help" button. |
(package private) java.awt.Button |
doSearch
The "Search" button. |
(package private) java.awt.Button |
doWords
The "Words" button. |
(package private) java.net.URL |
indexname
URL of the SWISH-E index file. |
(package private) IndexFile |
inf
Loaded index file representation. |
(package private) java.awt.Label |
label
The keywords label field. |
(package private) char[] |
map
Character mapping. |
(package private) java.awt.Panel |
p
Panel for the user interface elements. |
(package private) netscape.javascript.JSObject |
win
JavaScript window (= frame) object for displaying the search result. |
(package private) java.awt.TextField |
words
The keyword entry field. |
Fields inherited from class java.applet.Applet |
serialVersionUID,
stub |
Fields inherited from class java.awt.Panel |
base,
nameCounter,
serialVersionUID |
Fields inherited from class java.awt.Container |
component,
containerListener,
containerSerializedDataVersion,
dispatcher,
layoutMgr,
maxSize,
ncomponents,
serialVersionUID |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
assert,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
changeSupport,
componentListener,
componentListenerK,
componentOrientation,
componentSerializedDataVersion,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
name,
nameExplicitlySet,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
serialVersionUID,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
SearchApplet()
|
Method Summary | |
boolean |
action(java.awt.Event ev,
java.lang.Object obj)
Applet action method for starting a keyword search, clearing the result frame, or displaying the help page in the result frame. |
void |
addword(java.lang.String w)
Add word to word text input field |
void |
clrwords()
Clear text input field. |
void |
destroy()
Applet destruction. |
(package private) java.lang.String |
fmtallwords()
Format keywords as HTML |
(package private) java.lang.String |
fmtwords(java.lang.String first)
Format keywords as HTML |
java.lang.String |
getAppletInfo()
Applet info blurks. |
java.lang.String[][] |
getParameterInfo()
Return information about applet parameters. |
void |
init()
Applet initialization. |
java.awt.Insets |
insets()
Request additional space for 3D border. |
static void |
main(java.lang.String[] args)
If started as application, this method runs a search on the local file "index.swish-e" with the keywords taken from the command line. |
void |
paint(java.awt.Graphics g)
Paint method of applet panel, draws 3D border. |
(package private) int |
remap(char[] map,
int i)
Character mapping function. |
(package private) java.lang.String |
remap(char[] map,
java.lang.String s)
Character mapping function. |
void |
showwords(java.lang.String w)
Display word list given start character |
void |
start()
Applet startup. |
void |
stop()
Applet stop. |
Methods inherited from class java.applet.Applet |
getAppletContext,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus |
Methods inherited from class java.awt.Panel |
|
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventImpl,
dispatchEventToSelf,
doLayout,
eventEnabled,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getCursorTarget,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getMouseEventTarget,
getPreferredSize,
getWindow,
initIDs,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
nextFocus,
paintComponents,
paramString,
postProcessKeyEvent,
postsOldMouseEvents,
preferredSize,
preProcessKeyEvent,
print,
printComponents,
printHeavyweightComponents,
printOneComponent,
processContainerEvent,
processEvent,
proxyEnableEvents,
proxyRequestFocus,
readObject,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setCursor,
setFocusOwner,
setFont,
setLayout,
transferFocus,
update,
updateCursor,
validate,
validateTree,
writeObject |
Methods inherited from class java.awt.Component |
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getIntrinsicCursor,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getToolkitImpl,
getTreeLock,
getWidth,
getWindowForObject,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
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,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Field Detail |
java.awt.Button doSearch
java.awt.Button doWords
java.awt.Button doClear
java.awt.Button doHelp
java.awt.Label label
java.awt.TextField words
java.awt.Panel p
java.net.URL indexname
IndexFile inf
netscape.javascript.JSObject win
java.lang.String[] data
char[] map
Constructor Detail |
public SearchApplet()
Method Detail |
public void init()
public void start()
public void stop()
public void destroy()
public boolean action(java.awt.Event ev, java.lang.Object obj)
public void addword(java.lang.String w)
w
- word to be addedpublic void clrwords()
public void showwords(java.lang.String w)
w
- string whose first character is taken as start characterpublic java.awt.Insets insets()
public void paint(java.awt.Graphics g)
g
- Graphics objectjava.lang.String fmtallwords()
java.lang.String fmtwords(java.lang.String first)
String
- which first character determines sublist outputpublic java.lang.String[][] getParameterInfo()
public java.lang.String getAppletInfo()
int remap(char[] map, int i)
i
- integer to be mappedjava.lang.String remap(char[] map, java.lang.String s)
s
- String to be mappedpublic static void main(java.lang.String[] args)
args
- command line
|
|||||
PREV CLASS NEXT CLASS | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |