|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
net.java.sip.communicator.util.swing.FileDragLabel
public class FileDragLabel
The FileDragLabel extends JLabel and associates to it a file. The label is made draggable and it is possible to drag it directly to the file browser of the operating system.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FileDragLabel()
Creates a FileDragLabel. |
|
| Method Summary | |
|---|---|
void |
dragDropEnd(DragSourceDropEvent DragSourceDropEvent)
|
void |
dragEnter(DragSourceDragEvent DragSourceDragEvent)
|
void |
dragEnter(DropTargetDragEvent dropTargetDragEvent)
Called while a drag operation is ongoing, when the mouse pointer enters the operable part of the drop site for the DropTarget
registered with this listener. |
void |
dragExit(DragSourceEvent DragSourceEvent)
|
void |
dragExit(DropTargetEvent dropTargetEvent)
|
void |
dragGestureRecognized(DragGestureEvent dragGestureEvent)
A DragGestureRecognizer has detected
a platform-dependent drag initiating gesture and
is notifying this listener
in order for it to initiate the action for the user. |
void |
dragOver(DragSourceDragEvent DragSourceDragEvent)
|
void |
dragOver(DropTargetDragEvent dropTargetDragEvent)
|
void |
drop(DropTargetDropEvent event)
Called when the drag operation has terminated with a drop on the operable part of the drop site for the DropTarget
registered with this listener. |
void |
dropActionChanged(DragSourceDragEvent DragSourceDragEvent)
|
void |
dropActionChanged(DropTargetDragEvent dropTargetDragEvent)
|
void |
setFile(File file)
Sets the file associated with this file drag label. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileDragLabel()
| Method Detail |
|---|
public void setFile(File file)
file - the file associated with this file drag labelpublic void dragEnter(DropTargetDragEvent dropTargetDragEvent)
DropTarget
registered with this listener.
dragEnter in interface DropTargetListenerdropTargetDragEvent - the DropTargetDragEventpublic void drop(DropTargetDropEvent event)
DropTarget
registered with this listener.
drop in interface DropTargetListenerpublic void dragGestureRecognized(DragGestureEvent dragGestureEvent)
DragGestureRecognizer has detected
a platform-dependent drag initiating gesture and
is notifying this listener
in order for it to initiate the action for the user.
dragGestureRecognized in interface DragGestureListenerdragGestureEvent - the DragGestureEvent describing
the gesture that has just occurredpublic void dragDropEnd(DragSourceDropEvent DragSourceDropEvent)
dragDropEnd in interface DragSourceListenerpublic void dragEnter(DragSourceDragEvent DragSourceDragEvent)
dragEnter in interface DragSourceListenerpublic void dragExit(DragSourceEvent DragSourceEvent)
dragExit in interface DragSourceListenerpublic void dragOver(DragSourceDragEvent DragSourceDragEvent)
dragOver in interface DragSourceListenerpublic void dropActionChanged(DragSourceDragEvent DragSourceDragEvent)
dropActionChanged in interface DragSourceListenerpublic void dragExit(DropTargetEvent dropTargetEvent)
dragExit in interface DropTargetListenerpublic void dragOver(DropTargetDragEvent dropTargetDragEvent)
dragOver in interface DropTargetListenerpublic void dropActionChanged(DropTargetDragEvent dropTargetDragEvent)
dropActionChanged in interface DropTargetListener
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||