public class InviteContactTransferHandler extends ExtendedTransferHandler
Modifier and Type | Class and Description |
---|---|
class |
InviteContactTransferHandler.UIContactTransferable
Transferable for TreeContactList that enables drag and drop of
ui contacts.
|
ExtendedTransferHandler.SelectedTextTransferable
Modifier and Type | Field and Description |
---|---|
static int |
DEST_TRANSFER_HANDLER
Indicates that this handler is of type destination transfer handler.
|
static int |
SOURCE_TRANSFER_HANDLER
Indicates that this handler is of type source transfer handler.
|
protected static java.awt.datatransfer.DataFlavor |
uiContactDataFlavor
The data flavor used when transferring UIContacts.
|
Constructor and Description |
---|
InviteContactTransferHandler(ContactList contactList,
int type,
boolean selected)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(javax.swing.JComponent comp,
java.awt.datatransfer.DataFlavor[] flavor)
Indicates whether a component will accept an import of the given
set of data flavors prior to actually attempting to import it.
|
protected java.awt.datatransfer.Transferable |
createTransferable(javax.swing.JComponent component)
Creates a transferable for text pane components in order to enable drag
and drop of text.
|
boolean |
importData(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t)
Handles transfers to the invite dialog.
|
void |
setBackupProvider(ProtocolProviderService backupProvider)
The backup provider to use if no provider has been specified.
|
exportAsDrag, exportToClipboard, getSelectedTextFromComponent, getSourceActions, getVisualRepresentation
protected static final java.awt.datatransfer.DataFlavor uiContactDataFlavor
public static final int SOURCE_TRANSFER_HANDLER
public static final int DEST_TRANSFER_HANDLER
public InviteContactTransferHandler(ContactList contactList, int type, boolean selected)
contactList
- the contact list, this transfer handler is abouttype
- the type of this transfer handler. Indicates if it's used for
dragging from the source contact list, or dropping in the destination
contact list. One of SOURCE_TRANSFER_HANDLER or DEST_TRANSFER_HANDLERselected
- if the column is the selected onesprotected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent component)
createTransferable
in class ExtendedTransferHandler
component
- the component for which to create a
Transferablepublic boolean canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] flavor)
canImport
in class ExtendedTransferHandler
comp
- componentflavor
- the data formats availablejava.lang.NullPointerException
- if support
is null
public boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable t)
importData
in class javax.swing.TransferHandler
comp
- the component to receive the transfer;t
- the data to importpublic void setBackupProvider(ProtocolProviderService backupProvider)
backupProvider
- the backup provider to use if no provider has been
specified
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.