|
|||||||||||
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
The main program for the FilterBuilder programming system.
ToDo:
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
protected java.awt.Point |
mBasePoint
The relative position of the mouse while dragging. |
protected java.awt.Component |
mCurrentComponent
Kludge: Used by actionPerformed/filterAction to remember the filter menu item. |
protected java.awt.dnd.DragSource |
mDragSource
Enables this component to be a Drag Source. |
protected java.awt.dnd.DropTarget |
mDropTarget
This component is a drop target. |
protected javax.swing.JPanel |
mMainPanel
The main panel GUI component. |
protected javax.swing.JScrollPane |
mMainScroller
The main panel scrolling GUI component. |
protected boolean |
mMoved
If true selection moved. |
protected javax.swing.JDesktopPane |
mOutput
The output panel GUI component. |
protected java.util.Vector |
mSelection
Selected commands. |
protected javax.swing.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(java.lang.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(java.awt.event.ActionEvent event)
Handles menu and toolbar item choices. |
void |
addFilter(javax.swing.JMenu menu,
javax.swing.JToolBar toolbar,
java.lang.String class_name)
Add a filter to the GUI. |
protected void |
addSelection(Filter filter)
Add a filter to the current selection set. |
protected java.lang.String |
classFromFile(java.lang.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(java.awt.dnd.DragSourceDropEvent event)
This message goes to DragSourceListener, informing it that the dragging has ended. |
void |
dragEnter(java.awt.dnd.DragSourceDragEvent event)
This message goes to DragSourceListener, informing it that the dragging has entered the DropSite. |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent event)
This is invoked when you are dragging over the DropSite. |
void |
dragExit(java.awt.dnd.DragSourceEvent event)
This message goes to DragSourceListener, informing it that the dragging has exited the DropSite. |
void |
dragExit(java.awt.dnd.DropTargetEvent event)
Thi ss invoked when you are exit the DropSite without dropping. |
void |
dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
A DragGestureRecognizer has detected a platform-dependent drag initiating gesture. |
void |
dragOver(java.awt.dnd.DragSourceDragEvent event)
This message goes to DragSourceListener, informing it that the dragging is currently ocurring over the DropSite. |
void |
dragOver(java.awt.dnd.DropTargetDragEvent event)
This is invoked when a drag operation is going on. |
void |
drop(java.awt.dnd.DropTargetDropEvent event)
This is invoked when a drop has occurred. |
void |
dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
This is invoked when the user changes the dropAction. |
void |
dropActionChanged(java.awt.dnd.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 java.awt.Point |
getBasePoint()
Gets the current base point of the mouse pointer. |
protected SubFilterList |
getEnclosed(java.awt.Component component)
Get the enclosed sub filter list if any. |
protected SubFilterList |
getEnclosing(java.awt.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 java.net.URL |
getURL(java.lang.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,
java.awt.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(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard. |
static void |
main(java.lang.String[] args)
The entry point for this application. |
javax.swing.JButton |
makeFilterButton(java.lang.String class_name)
Creates a new button for the given class. |
protected void |
makeMenuButton(java.lang.String name,
java.lang.String description,
java.lang.String text,
int mnemonic,
javax.swing.KeyStroke key,
javax.swing.JToolBar toolbar,
javax.swing.JMenu menu)
Makes menu and toolbar items for commands. |
protected void |
makeProgram(java.lang.String name,
java.lang.StringBuffer out,
FilterBean bean)
Makes a program like: |
void |
mouseClicked(java.awt.event.MouseEvent event)
Invoked when the mouse has been clicked on a component. |
void |
mouseDragged(java.awt.event.MouseEvent event)
Mouse drag notification. |
void |
mouseEntered(java.awt.event.MouseEvent event)
Invoked when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent event)
Invoked when the mouse exits a component. |
void |
mouseMoved(java.awt.event.MouseEvent event)
Mouse move notification. |
void |
mousePressed(java.awt.event.MouseEvent event)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent event)
Invoked when a mouse button has been released on a component. |
protected void |
moveSelection(java.awt.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(java.lang.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(java.lang.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. |
java.lang.String |
serializeSelection()
Serialize the current selection set. |
protected void |
setBasePoint(java.awt.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(java.awt.event.MouseEvent event)
Show a pop up context menu. |
protected void |
tutorialAction()
The action to take when "Tutorial" menu pressed. |
void |
windowActivated(java.awt.event.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(java.awt.event.WindowEvent event)
Invoked when a window has been closed as the result of calling dispose on the window. |
void |
windowClosing(java.awt.event.WindowEvent event)
Handles window closing event. |
void |
windowDeactivated(java.awt.event.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(java.awt.event.WindowEvent event)
Invoked when a window is changed from a minimized to a normal state. |
void |
windowIconified(java.awt.event.WindowEvent event)
Invoked when a window is changed from a normal to a minimized state. |
void |
windowOpened(java.awt.event.WindowEvent event)
Invoked the first time a window is made visible. |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
protected java.awt.Point mBasePoint
protected java.util.Vector mSelection
protected boolean mMoved
protected java.awt.dnd.DropTarget mDropTarget
protected java.awt.dnd.DragSource mDragSource
protected java.awt.Component mCurrentComponent
protected javax.swing.JPanel mMainPanel
protected javax.swing.JScrollPane mMainScroller
protected javax.swing.JTextField mURLField
protected javax.swing.JDesktopPane mOutput
Constructor Detail |
public FilterBuilder()
public FilterBuilder(java.lang.String title)
title
- the title for the new frame.FilterBuilder()
Method Detail |
protected void makeMenuButton(java.lang.String name, java.lang.String description, java.lang.String text, int mnemonic, javax.swing.KeyStroke key, javax.swing.JToolBar toolbar, javax.swing.JMenu menu)
name
- The name of the command.description
- A description for the tooltip.text
- The text for the menu.mnemonic
- The navigation mnemonic.key
- Accelerator key.toolbar
- The toolbar to add the button to.menu
- The menu to add the menu item to.protected java.net.URL getURL(java.lang.String spec) throws java.net.MalformedURLException
spec
- The name of the resource.
java.net.MalformedURLException
- In the case that the document base
or name of the resource cannot be turned into a URL.public javax.swing.JButton makeFilterButton(java.lang.String class_name)
class_name
- The name of the Filter class.
public void addFilter(javax.swing.JMenu menu, javax.swing.JToolBar toolbar, java.lang.String class_name)
menu
- The menu to add the filter to.toolbar
- The toolbar to add the filter to.class_name
- The class name for the filter wrapper.
From the wrapper, the NodeFilter, description and icon can be obtained.protected void insertFilters(Filter[] filters, java.awt.Point point, SubFilterList list)
filters
- The filter wrappers to add.point
- The point at which to start adding (list == null).list
- The list to add to (point not used), or null
for the main panel.protected void setBasePoint(java.awt.Point point)
point
- The point where the mouse position is.protected java.awt.Point getBasePoint()
protected SubFilterList getEnclosing(java.awt.Component component)
component
- The component that's supposedly enclosed.
null
otherwise.protected SubFilterList getEnclosed(java.awt.Component component)
component
- The component that's supposedly enclosing the list.
null
otherwise.protected void makeProgram(java.lang.String name, java.lang.StringBuffer out, FilterBean bean)
// Generated by FilterBuilder. http://htmlparser.org // [aced0005737200206f72672e68746d6c7061727365722e66696c746572732e416e6446696c74657224c30516b2b7b2120200015b000b6d5072656469636174657374001c5b4c6f72672f68746d6c7061727365722f4e6f646546696c7465723b78707572001c5b4c6f72672e68746d6c7061727365722e4e6f646546696c7465723b8f17479b1d5f7992020000787000000002737200246f72672e68746d6c7061727365722e66696c746572732e5461674e616d6546696c746572b28b2601a614890f0200014c00056d4e616d657400124c6a6176612f6c616e672f537472696e673b78707400044d455441737200296f72672e68746d6c7061727365722e66696c746572732e48617341747472696275746546696c74657296abdfb3b0714cda0200024c000a6d41747472696275746571007e00064c00066d56616c756571007e000678707400046e616d6570] import org.htmlparser.*; import org.htmlparser.filters.*; import org.htmlparser.beans.*; import org.htmlparser.util.*; public class Test { public static void main (String args[]) { TagNameFilter filter0 = new TagNameFilter (); filter0.setName ("META"); HasAttributeFilter filter1 = new HasAttributeFilter (); filter1.setAttributeName ("name"); NodeFilter[] array0 = new NodeFilter[2]; array0[0] = filter0; array0[1] = filter1; AndFilter filter2 = new AndFilter (); filter2.setPredicates (array0); NodeFilter[] array1 = new NodeFilter[1]; array1[0] = filter2; FilterBean bean = new FilterBean (); bean.setFilters (array1); if (0 != args.length) { bean.setURL (args[0]); System.out.println (bean.getNodes ().toHtml ()); } else System.out.println ("Usage: java -classpath .:htmlparser.jar Test"); } }
name
- The name of the class.out
- The buffer to append to.bean
- The bean to extract the filters from to make the program.protected java.lang.String classFromFile(java.lang.String file)
file
- The name of the file.
public void save(java.lang.String name)
name
- The name of the file to save it under.protected void newAction()
protected void openAction()
protected void saveAction()
protected void saveasAction()
protected void exitAction()
protected void cutAction()
protected void copyAction()
protected void pasteAction()
protected void deleteAction()
protected void filterAction()
protected void fetchAction()
protected void executeAction()
protected void instructionsAction()
protected void filteringAction()
protected void tutorialAction()
protected void hintsAction()
protected void aboutAction()
public void expandAction()
public void collapseAction()
public void expandAllAction()
public void collapseAllAction()
public void setupMouseListeners(Filter[] filters)
this
up to listen to each command
in the list as a MouseListener.
Recursively descends the tree adding to all contained elements also.
filters
- The container with commands in it.public void setupDropTargets(Filter[] filters)
filters
- The container with filters in it.public void setExpanded(Filter[] filters, boolean expanded, boolean recursive)
filters
- The list of filters to expand or collapse.expanded
- If true
the filters are expanded,
otherwise they are collapsed.recursive
- If true
the filters are processed
recursively.public Filter[] getFilters()
public void relayout()
public void open(java.lang.String name)
name
- The name of the file to open.public void showContextMenu(java.awt.event.MouseEvent event)
event
- The mouse event that initiates the popup.protected void addSelection(Filter filter)
filter
- The filter to add.protected void removeSelection(Filter filter)
filter
- The filter to remove.protected void selectSelection(boolean select)
select
- If true
turn on highlighting,
turn it off otherwise.protected void clearSelection()
protected void moveSelection(java.awt.Point translation)
translation
- The displacement to move them all by.protected boolean selectionContains(Filter filter)
filter
- The filter to check.
true
if the filter is a member,
false
otherwise.protected Filter lastSelected()
null
if the current
selection set is empty.protected Filter[] getSelection()
public java.lang.String serializeSelection()
public void deleteSelection()
public boolean isSingleSelection()
true
if only one filter is selected,
false
otherwise.public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
event
- The mouse clicked event.public void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
event
- The mouse released event.public void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered
in interface java.awt.event.MouseListener
event
- The mouse entered event.public void mouseExited(java.awt.event.MouseEvent event)
mouseExited
in interface java.awt.event.MouseListener
event
- The mouse exited event.public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
event
- The mouse pressed event.public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
event
- The mouse drag event.public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
event
- The mouse moved event.public void windowOpened(java.awt.event.WindowEvent event)
windowOpened
in interface java.awt.event.WindowListener
event
- The window event.public void windowClosing(java.awt.event.WindowEvent event)
exitApplication()
.
windowClosing
in interface java.awt.event.WindowListener
event
- The window event.public void windowClosed(java.awt.event.WindowEvent event)
windowClosed
in interface java.awt.event.WindowListener
event
- The window event.public void windowIconified(java.awt.event.WindowEvent event)
windowIconified
in interface java.awt.event.WindowListener
event
- The window event.public void windowDeiconified(java.awt.event.WindowEvent event)
windowDeiconified
in interface java.awt.event.WindowListener
event
- The window event.public void windowActivated(java.awt.event.WindowEvent event)
windowActivated
in interface java.awt.event.WindowListener
event
- The window event.public void windowDeactivated(java.awt.event.WindowEvent event)
windowDeactivated
in interface java.awt.event.WindowListener
event
- The window event.public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- The action even that triggers this function.public void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner
clipboard
- The clipboard that is no longer owned.contents
- The contents which this owner had placed on the clipboard.public void dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
dragGestureRecognized
in interface java.awt.dnd.DragGestureListener
event
- The DragGestureEvent describing the gesture that has just occurred.public void dragDropEnd(java.awt.dnd.DragSourceDropEvent event)
dragDropEnd
in interface java.awt.dnd.DragSourceListener
event
- Details about the drop event.public void dragEnter(java.awt.dnd.DragSourceDragEvent event)
dragEnter
in interface java.awt.dnd.DragSourceListener
event
- Details about the drag event.public void dragExit(java.awt.dnd.DragSourceEvent event)
dragExit
in interface java.awt.dnd.DragSourceListener
event
- Details about the drag event.public void dragOver(java.awt.dnd.DragSourceDragEvent event)
dragOver
in interface java.awt.dnd.DragSourceListener
event
- Details about the drag event.public void dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
dropActionChanged
in interface java.awt.dnd.DragSourceListener
event
- Details about the drop action event.public void dragEnter(java.awt.dnd.DropTargetDragEvent event)
dragEnter
in interface java.awt.dnd.DropTargetListener
event
- Details about the drag event.public void dragExit(java.awt.dnd.DropTargetEvent event)
dragExit
in interface java.awt.dnd.DropTargetListener
event
- Details about the drag event.public void dragOver(java.awt.dnd.DropTargetDragEvent event)
dragOver
in interface java.awt.dnd.DropTargetListener
event
- Details about the drag event.public void drop(java.awt.dnd.DropTargetDropEvent event)
drop
in interface java.awt.dnd.DropTargetListener
event
- The drop event.public void dropActionChanged(java.awt.dnd.DropTargetDragEvent event)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
event
- Details about the drop action change event.public static void main(java.lang.String[] args)
args
- [0] optional URL to operate on.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |