APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.text.html

pack-priv Class IsindexView

extends ComponentView
implements ActionListener
Class Inheritance
All Implemented Interfaces
java.awt.event.ActionListener, java.util.EventListener
Imports
java.awt.*, java.awt.event.*, java.net.URLEncoder, .URL, java.io.IOException, javax.swing.text.*, javax.swing.*

A view that supports the <ISINDEX< tag. This is implemented as a JPanel that contains
Author
Sunita Mani

Field Summary

Modifier and TypeField and Description
pack-priv JTextField

Constructor Summary

AccessConstructor and Description
public
IsindexView(Element elem)

Creates an IsindexView

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent evt)

Implements java.awt.event.ActionListener.actionPerformed.

Responsible for processing the ActionEvent.

public Component
createComponent()

Overrides javax.swing.text.ComponentView.createComponent.

Creates the components necessary to implement this view.

Inherited from javax.swing.text.ComponentView:
getAlignmentgetComponentgetMaximumSpangetMinimumSpangetPreferredSpanmodelToViewpaintsetParentviewToModel

Field Detail

textFieldback to summary
pack-priv JTextField textField

Constructor Detail

IsindexViewback to summary
public IsindexView(Element elem)

Creates an IsindexView

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent evt)

Implements java.awt.event.ActionListener.actionPerformed.

Responsible for processing the ActionEvent. In this case this is hitting enter/return in the text field. This will construct the URL from the base URL of the document. To the URL is appended a '?' followed by the contents of the JTextField. The search contents are URLEncoded.

Annotations
@SuppressWarnings:deprecation
createComponentback to summary
public Component createComponent()

Overrides javax.swing.text.ComponentView.createComponent.

Creates the components necessary to implement this view. The component returned is a JPanel, that contains the PROMPT to the left and JTextField to the right.