|
|||||||||
| Home >> All >> dr >> davmgr >> swingview >> internalframes >> [ views overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
dr.davmgr.swingview.internalframes.views
Class UrlsTableViewController

java.lang.Objectdr.davmgr.swingview.internalframes.views.DefaultView
dr.davmgr.swingview.internalframes.views.UrlsTableViewController
- All Implemented Interfaces:
- java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.awt.dnd.DropTargetListener, java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.datatransfer.Transferable, View
- public class UrlsTableViewController
- extends DefaultView
- implements java.awt.event.MouseListener, java.awt.dnd.DragGestureListener, java.awt.dnd.DropTargetListener, java.awt.dnd.DragSourceListener, java.awt.event.KeyListener
- extends DefaultView
| Nested Class Summary | |
(package private) class |
UrlsTableViewController.MyJTable
|
| Field Summary | |
private static java.awt.datatransfer.DataFlavor[] |
dataFlavors
|
private java.awt.dnd.DragSource |
dragSource
|
private java.util.EventListener |
eventListener
|
private javax.swing.JScrollPane |
scrollPane
|
private javax.swing.JTable |
table
|
private UrlsTableViewModel |
tableModel
|
private UrlsTransferData |
transferData
|
private dr.davmgr.protocol.Urls |
urls
|
| Fields inherited from interface dr.davmgr.swingview.internalframes.views.View |
ASCENDENT_ORDER, DESCENDENT_ORDER, P_USE_DND |
| Constructor Summary | |
UrlsTableViewController()
|
|
| Method Summary | |
void |
addEventListener(java.util.EventListener eventListener)
Adds a EventListener to a view. |
void |
dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
Called when the drag and drop operation is complete. |
void |
dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
Called when the cursor hotspot enters a drop site which will accept the drag. |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
Called when the cursor hotspot enters a drop site which will accept the drag. |
void |
dragExit(java.awt.dnd.DragSourceEvent dse)
Called when the cursor hotspot moves outside of a drop site which will accept the drag. |
void |
dragExit(java.awt.dnd.DropTargetEvent dte)
Called when the cursor hotspot moves outside of a drop site which will accept the drag. |
void |
dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
Called when the native platform notifies the virtual machine that a drag-and-drop has been initiated. |
void |
dragOver(java.awt.dnd.DragSourceDragEvent dsde)
Called when the cursor hotspot moves inside of a drop site which will accept the drag. |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde)
Called when the cursor hotspot moves inside of a drop site which will accept the drag. |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde)
Called when the drag operation has terminated with a drop. |
void |
dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
Called when the user modifies the drop gesture. |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
Called when the user modifies the drop gesture. |
void |
finalize()
Called on an object by the Virtual Machine at most once, at some point after the Object is determined unreachable but before it is destroyed. |
private void |
fireDropAction(int type,
UrlsTransferData data,
dr.davmgr.protocol.Urls target)
|
java.awt.Component |
getComponent()
Returns component of the view. |
java.util.List |
getSelectedUrls()
Returns selected Urls. |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor)
Returns the data in the specified DataFlavor. |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
This method returns a list of available data flavors for the data being transferred. |
dr.davmgr.protocol.Urls |
getUrls()
Returns actual Urls from model |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Tests whether or not this data can be delivered in the specified data flavor. |
void |
keyPressed(java.awt.event.KeyEvent e)
This method is called when a key is pressed. |
void |
keyReleased(java.awt.event.KeyEvent e)
This method is called when a key is released. |
void |
keyTyped(java.awt.event.KeyEvent e)
This method is called when a key is typed. |
void |
modelChanged()
Send model changed signal. |
void |
mouseClicked(java.awt.event.MouseEvent e)
This method is called when the mouse is clicked (pressed and released in short succession) on a component. |
void |
mouseEntered(java.awt.event.MouseEvent e)
This method is called when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent e)
This method is called when the mouse exits a component. |
void |
mousePressed(java.awt.event.MouseEvent e)
This method is called when the mouse is pressed over a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
This method is called when the mouse is released over a component. |
void |
removeEventListener(java.util.EventListener eventListener)
|
void |
setOrder(java.lang.String columnName,
int order)
Sets the sorting order. |
void |
setScrollPane(javax.swing.JScrollPane scrollPane)
Sets JScrollPane as view pane. |
void |
setSelection(boolean all)
Sets selections on view. |
void |
setSelection(int x,
int y)
Sets selection in the near of a point. |
void |
setUrls(dr.davmgr.protocol.Urls urls)
Sets Urls as a new model for view. |
| Methods inherited from class dr.davmgr.swingview.internalframes.views.DefaultView |
useDnD |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
tableModel
private UrlsTableViewModel tableModel
table
private javax.swing.JTable table
urls
private dr.davmgr.protocol.Urls urls
eventListener
private java.util.EventListener eventListener
scrollPane
private javax.swing.JScrollPane scrollPane
dragSource
private java.awt.dnd.DragSource dragSource
dataFlavors
private static java.awt.datatransfer.DataFlavor[] dataFlavors
transferData
private UrlsTransferData transferData
| Constructor Detail |
UrlsTableViewController
public UrlsTableViewController()
| Method Detail |
addEventListener
public void addEventListener(java.util.EventListener eventListener)
- Description copied from interface:
View - Adds a EventListener to a view. Events are View dependent
therefore only double clicks and selections on lists and tables
are listened.
- Specified by:
addEventListenerin interfaceView
removeEventListener
public void removeEventListener(java.util.EventListener eventListener)
- Specified by:
removeEventListenerin interfaceView
setScrollPane
public void setScrollPane(javax.swing.JScrollPane scrollPane)
- Description copied from interface:
View - Sets JScrollPane as view pane. It must be set.
- Specified by:
setScrollPanein interfaceView
modelChanged
public void modelChanged()
- Description copied from interface:
View - Send model changed signal.
- Specified by:
modelChangedin interfaceView
getUrls
public dr.davmgr.protocol.Urls getUrls()
- Description copied from interface:
View - Returns actual Urls from model
getComponent
public java.awt.Component getComponent()
- Description copied from interface:
View - Returns component of the view.
- Specified by:
getComponentin interfaceView
setUrls
public void setUrls(dr.davmgr.protocol.Urls urls)
- Description copied from interface:
View - Sets Urls as a new model for view.
getSelectedUrls
public java.util.List getSelectedUrls()
- Description copied from interface:
View - Returns selected Urls.
- Specified by:
getSelectedUrlsin interfaceView
setSelection
public void setSelection(boolean all)
- Description copied from interface:
View - Sets selections on view.
- Specified by:
setSelectionin interfaceView
setSelection
public void setSelection(int x,
int y)
- Description copied from interface:
View - Sets selection in the near of a point.
- Specified by:
setSelectionin interfaceView
setOrder
public void setOrder(java.lang.String columnName, int order)
- Description copied from interface:
View - Sets the sorting order.
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse is clicked (pressed and released
in short succession) on a component.
- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse enters a component.
- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse exits a component.
- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse is pressed over a component.
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse is released over a component.
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
dragGestureRecognized
public void dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
- Description copied from interface:
java.awt.dnd.DragGestureListener - Called when the native platform notifies the virtual machine that a
drag-and-drop has been initiated.
- Specified by:
dragGestureRecognizedin interfacejava.awt.dnd.DragGestureListener
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
- Description copied from interface:
java.awt.datatransfer.Transferable - Returns the data in the specified
DataFlavor.- Specified by:
getTransferDatain interfacejava.awt.datatransfer.Transferable
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
- Description copied from interface:
java.awt.datatransfer.Transferable - This method returns a list of available data flavors for the data being
transferred. The array returned will be sorted from most preferred
flavor at the beginning to least preferred at the end.
- Specified by:
getTransferDataFlavorsin interfacejava.awt.datatransfer.Transferable
isDataFlavorSupported
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
- Description copied from interface:
java.awt.datatransfer.Transferable - Tests whether or not this data can be delivered in the specified data
flavor.
- Specified by:
isDataFlavorSupportedin interfacejava.awt.datatransfer.Transferable
finalize
public void finalize()
- Description copied from class:
java.lang.Object - Called on an object by the Virtual Machine at most once,
at some point after the Object is determined unreachable
but before it is destroyed. You would think that this
means it eventually is called on every Object, but this is
not necessarily the case. If execution terminates
abnormally, garbage collection does not always happen.
Thus you cannot rely on this method to always work.
For finer control over garbage collection, use references
from the
java.lang.refpackage.Virtual Machines are free to not call this method if they can determine that it does nothing important; for example, if your class extends Object and overrides finalize to do simply
super.finalize().finalize() will be called by a java.lang.Thread that has no locks on any Objects, and may be called concurrently. There are no guarantees on the order in which multiple objects are finalized. This means that finalize() is usually unsuited for performing actions that must be thread-safe, and that your implementation must be use defensive programming if it is to always work.
If an Exception is thrown from finalize() during garbage collection, it will be patently ignored and the Object will still be destroyed.
It is allowed, although not typical, for user code to call finalize() directly. User invocation does not affect whether automatic invocation will occur. It is also permitted, although not recommended, for a finalize() method to "revive" an object by making it reachable from normal code again.
Unlike constructors, finalize() does not get called for an object's superclass unless the implementation specifically calls
super.finalize().The default implementation does nothing.
- Specified by:
finalizein interfaceView- Specified by:
finalizein classDefaultView
drop
public void drop(java.awt.dnd.DropTargetDropEvent dtde)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the drag operation has terminated with a drop.
- Specified by:
dropin interfacejava.awt.dnd.DropTargetListener
dragOver
public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the cursor hotspot moves inside of a drop site which will
accept the drag.
- Specified by:
dragOverin interfacejava.awt.dnd.DropTargetListener
dragEnter
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the cursor hotspot enters a drop site which will accept the
drag.
- Specified by:
dragEnterin interfacejava.awt.dnd.DropTargetListener
dragExit
public void dragExit(java.awt.dnd.DropTargetEvent dte)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the cursor hotspot moves outside of a drop site which will
accept the drag. This could also happen if the drop site is no longer
active, or no longer accepts the drag.
- Specified by:
dragExitin interfacejava.awt.dnd.DropTargetListener
dropActionChanged
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the user modifies the drop gesture. This is often the case
when additional mouse or key events are received during the drag.
- Specified by:
dropActionChangedin interfacejava.awt.dnd.DropTargetListener
dragDropEnd
public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
- Description copied from interface:
java.awt.dnd.DragSourceListener - Called when the drag and drop operation is complete. After this event,
getDropSuccessof the event is valid, andgetDropActionholds the action requested by the drop site. Furthermore, theDragSourceContextis invalidated.- Specified by:
dragDropEndin interfacejava.awt.dnd.DragSourceListener
dragEnter
public void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
- Description copied from interface:
java.awt.dnd.DragSourceListener - Called when the cursor hotspot enters a drop site which will accept the
drag.
- Specified by:
dragEnterin interfacejava.awt.dnd.DragSourceListener
dragExit
public void dragExit(java.awt.dnd.DragSourceEvent dse)
- Description copied from interface:
java.awt.dnd.DragSourceListener - Called when the cursor hotspot moves outside of a drop site which will
accept the drag. This could also happen if the drop site is no longer
active, or no longer accepts the drag.
- Specified by:
dragExitin interfacejava.awt.dnd.DragSourceListener
dragOver
public void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
- Description copied from interface:
java.awt.dnd.DragSourceListener - Called when the cursor hotspot moves inside of a drop site which will
accept the drag.
- Specified by:
dragOverin interfacejava.awt.dnd.DragSourceListener
dropActionChanged
public void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
- Description copied from interface:
java.awt.dnd.DragSourceListener - Called when the user modifies the drop gesture. This is often the case
when additional mouse or key events are received during the drag.
- Specified by:
dropActionChangedin interfacejava.awt.dnd.DragSourceListener
fireDropAction
private void fireDropAction(int type,
UrlsTransferData data,
dr.davmgr.protocol.Urls target)
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Description copied from interface:
java.awt.event.KeyListener - This method is called when a key is pressed.
- Specified by:
keyPressedin interfacejava.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Description copied from interface:
java.awt.event.KeyListener - This method is called when a key is released.
- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Description copied from interface:
java.awt.event.KeyListener - This method is called when a key is typed. A key is considered typed
when it and all modifiers have been pressed and released, mapping to
a single virtual key.
- Specified by:
keyTypedin interfacejava.awt.event.KeyListener
|
|||||||||
| Home >> All >> dr >> davmgr >> swingview >> internalframes >> [ views overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC