|
HTML Parser Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.htmlparser.parserapplications.filterbuilder.FilterBuilder
public class FilterBuilder
The main program for the FilterBuilder programming system.
ToDo:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Point |
mBasePoint
The relative position of the mouse while dragging. |
protected Component |
mCurrentComponent
Kludge: Used by actionPerformed/filterAction to remember the filter menu item. |
protected DragSource |
mDragSource
Enables this component to be a Drag Source. |
protected DropTarget |
mDropTarget
This component is a drop target. |
protected JPanel |
mMainPanel
The main panel GUI component. |
protected JScrollPane |
mMainScroller
The main panel scrolling GUI component. |
protected boolean |
mMoved
If true selection moved. |
protected JDesktopPane |
mOutput
The output panel GUI component. |
protected Vector |
mSelection
Selected commands. |
protected JTextField |
mURLField
The URL input GUI component. |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FilterBuilder()
Create an FilterBuilder programming environment. |
|
FilterBuilder(String title)
Creates a new instance of an FilterBuilder environment with the given title. |
|
| Method Summary | |
|---|---|
protected void |
aboutAction()
The action to take when "About" menu or button pressed. |
void |
actionPerformed(ActionEvent event)
Handles menu and toolbar item choices. |
void |
addFilter(JMenu menu,
JToolBar toolbar,
String class_name)
Add a filter to the GUI. |
protected void |
addSelection(Filter filter)
Add a filter to the current selection set. |
protected String |
classFromFile(String file)
Extracts a java class name from a file name. |
protected void |
clearSelection()
Clear (empty) the current selection set. |
void |
collapseAction()
The action to take when "Collapse" menu chosen. |
void |
collapseAllAction()
The action to take when "Collapse" menu chosen. |
protected void |
copyAction()
The action to take when "Copy" menu or button pressed. |
protected void |
cutAction()
The action to take when "Cut" menu or button pressed. |
protected void |
deleteAction()
The action to take when "Delete" menu or button pressed. |
void |
deleteSelection()
Delete the current selection set from the filters in the GUI. |
void |
dragDropEnd(DragSourceDropEvent event)
This message goes to DragSourceListener, informing it that the dragging has ended. |
void |
dragEnter(DragSourceDragEvent event)
This message goes to DragSourceListener, informing it that the dragging has entered the DropSite. |
void |
dragEnter(DropTargetDragEvent event)
This is invoked when you are dragging over the DropSite. |
void |
dragExit(DragSourceEvent event)
This message goes to DragSourceListener, informing it that the dragging has exited the DropSite. |
void |
dragExit(DropTargetEvent event)
Thi ss invoked when you are exit the DropSite without dropping. |
void |
dragGestureRecognized(DragGestureEvent event)
A DragGestureRecognizer has detected a platform-dependent drag initiating gesture. |
void |
dragOver(DragSourceDragEvent event)
This message goes to DragSourceListener, informing it that the dragging is currently ocurring over the DropSite. |
void |
dragOver(DropTargetDragEvent event)
This is invoked when a drag operation is going on. |
void |
drop(DropTargetDropEvent event)
This is invoked when a drop has occurred. |
void |
dropActionChanged(DragSourceDragEvent event)
This is invoked when the user changes the dropAction. |
void |
dropActionChanged(DropTargetDragEvent event)
This is invoked if the user modifies the current drop gesture. |
protected void |
executeAction()
The action to take when "Execute" menu or button pressed. |
protected void |
exitAction()
The action to take when "Exit" menu or button pressed. |
void |
expandAction()
The action to take when "Expand" menu chosen. |
void |
expandAllAction()
The action to take when "Expand All" menu chosen. |
protected void |
fetchAction()
The action to take when "Fetch" menu pressed. |
protected void |
filterAction()
The action to take when a filter menu or button pressed. |
protected void |
filteringAction()
The action to take when "Filtering" menu pressed. |
protected Point |
getBasePoint()
Gets the current base point of the mouse pointer. |
protected SubFilterList |
getEnclosed(Component component)
Get the enclosed sub filter list if any. |
protected SubFilterList |
getEnclosing(Component component)
Get the enclosing sub filter list if any. |
Filter[] |
getFilters()
Retrieve the top level filters in the main window. |
protected Filter[] |
getSelection()
Return the current selection set as an array. |
protected URL |
getURL(String spec)
Get a url for the given resource specification. |
protected void |
hintsAction()
The action to take when "Hints" menu pressed. |
protected void |
insertFilters(Filter[] filters,
Point point,
SubFilterList list)
Adds a set of filters to the main panel or a sublist. |
protected void |
instructionsAction()
The action to take when "Instructions" menu pressed. |
boolean |
isSingleSelection()
Check if there is more than one filter selected. |
protected Filter |
lastSelected()
Return the last filter added to the selection set. |
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard. |
static void |
main(String[] args)
The entry point for this application. |
JButton |
makeFilterButton(String class_name)
Creates a new button for the given class. |
protected void |
makeMenuButton(String name,
String description,
String text,
int mnemonic,
KeyStroke key,
JToolBar toolbar,
JMenu menu)
Makes menu and toolbar items for commands. |
protected void |
makeProgram(String name,
StringBuffer out,
FilterBean bean)
Makes a program like: |
void |
mouseClicked(MouseEvent event)
Invoked when the mouse has been clicked on a component. |
void |
mouseDragged(MouseEvent event)
Mouse drag notification. |
void |
mouseEntered(MouseEvent event)
Invoked when the mouse enters a component. |
void |
mouseExited(MouseEvent event)
Invoked when the mouse exits a component. |
void |
mouseMoved(MouseEvent event)
Mouse move notification. |
void |
mousePressed(MouseEvent event)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(MouseEvent event)
Invoked when a mouse button has been released on a component. |
protected void |
moveSelection(Point translation)
Move the current selection set as a group. |
protected void |
newAction()
The action to take when "New" menu or button pressed. |
void |
open(String name)
Read a workspace from file. |
protected void |
openAction()
The action to take when "Open" menu or button pressed. |
protected void |
pasteAction()
The action to take when "Paste" menu or button pressed. |
void |
relayout()
Redo the layout. |
protected void |
removeSelection(Filter filter)
Remove a filter from the current selection set. |
void |
save(String name)
Save the workspace contents to file. |
protected void |
saveAction()
The action to take when "Save" menu or button pressed. |
protected void |
saveasAction()
The action to take when "Save As" menu or button pressed. |
protected boolean |
selectionContains(Filter filter)
Check if the current selection set contains the given filter. |
protected void |
selectSelection(boolean select)
Select(highlight)/deselect the current selection set. |
String |
serializeSelection()
Serialize the current selection set. |
protected void |
setBasePoint(Point point)
Sets the position of the mouse in the component. |
void |
setExpanded(Filter[] filters,
boolean expanded,
boolean recursive)
Expand or collapse filters, possibly recursively. |
void |
setupDropTargets(Filter[] filters)
Set up drop targets. |
void |
setupMouseListeners(Filter[] filters)
Set up mouse listeners. |
void |
showContextMenu(MouseEvent event)
Show a pop up context menu. |
protected void |
tutorialAction()
The action to take when "Tutorial" menu pressed. |
void |
windowActivated(WindowEvent event)
Invoked when the window is set to be the user's active window, which means the window (or one of its subcomponents) will receive keyboard events. |
void |
windowClosed(WindowEvent event)
Invoked when a window has been closed as the result of calling dispose on the window. |
void |
windowClosing(WindowEvent event)
Handles window closing event. |
void |
windowDeactivated(WindowEvent event)
Invoked when a window is no longer the user's active window, which means that keyboard events will no longer be delivered to the window or its subcomponents. |
void |
windowDeiconified(WindowEvent event)
Invoked when a window is changed from a minimized to a normal state. |
void |
windowIconified(WindowEvent event)
Invoked when a window is changed from a normal to a minimized state. |
void |
windowOpened(WindowEvent event)
Invoked the first time a window is made visible. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |