|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.util.datatransfer.RosterEntrySelection
public class RosterEntrySelection
Transfer roster entries either via drag-and-drop or via the clipboard.
Note that roster entries can only be transfered within a single JVM instance, and cannot be shared between programs via this mechanism.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Field Summary | |
|---|---|
(package private) static DataFlavor[] |
flavors
|
(package private) static org.slf4j.Logger |
log
|
static DataFlavor |
rosterEntryFlavor
|
| Constructor Summary | |
|---|---|
RosterEntrySelection(ArrayList<String> rosterEntries)
Create the transferable. |
|
| Method Summary | |
|---|---|
static RosterEntrySelection |
createRosterEntrySelection(ArrayList<RosterEntry> rosterEntries)
Create a transferable with a list of RosterEntries. |
static ArrayList<RosterEntry> |
getRosterEntries(Transferable t)
Get an ArrayList of RosterEntries from a RosterEntrySelection. |
Object |
getTransferData(DataFlavor df)
|
DataFlavor[] |
getTransferDataFlavors()
|
boolean |
isDataFlavorSupported(DataFlavor df)
|
void |
lostOwnership(Clipboard clpbrd,
Transferable t)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DataFlavor rosterEntryFlavor
static final DataFlavor[] flavors
static org.slf4j.Logger log
| Constructor Detail |
|---|
public RosterEntrySelection(ArrayList<String> rosterEntries)
Takes as a parameter an ArrayList containing Strings representing RosterEntry Ids.
rosterEntries - - an ArrayList of RosterEntry Ids| Method Detail |
|---|
public static RosterEntrySelection createRosterEntrySelection(ArrayList<RosterEntry> rosterEntries)
rosterEntries - - an ArrayList of RosterEntriespublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isDataFlavorSupported(DataFlavor df)
isDataFlavorSupported in interface Transferable
public Object getTransferData(DataFlavor df)
throws UnsupportedFlavorException,
IOException
getTransferData in interface TransferableUnsupportedFlavorException
IOException
public void lostOwnership(Clipboard clpbrd,
Transferable t)
lostOwnership in interface ClipboardOwner
public static ArrayList<RosterEntry> getRosterEntries(Transferable t)
throws UnsupportedFlavorException,
IOException
t - - a Transferable object. This should be a RosterEntrySelection,
but for simplicity, will accept any Transferable object.
UnsupportedFlavorException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||