Package org.silverpeas.core.admin.space
Class SpaceSelection
- java.lang.Object
-
- org.silverpeas.core.clipboard.ClipboardSelection
-
- org.silverpeas.core.admin.space.SpaceSelection
-
- All Implemented Interfaces:
ClipboardOwner
,Transferable
,Serializable
public class SpaceSelection extends ClipboardSelection implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DataFlavor
SpaceFlavor
-
Fields inherited from class org.silverpeas.core.clipboard.ClipboardSelection
IndexFlavor, selected, SilverpeasKeyDataFlavor, supportedFlavorsList
-
-
Constructor Summary
Constructors Constructor Description SpaceSelection(SpaceInst space)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexEntry
getIndexEntry()
Returns the IndexEntry for the space being copiedSilverpeasKeyData
getKeyData()
Tranforms the dat into a SilverpeasKeyData.Object
getTransferData(DataFlavor parFlavor)
Returns the data transferred.-
Methods inherited from class org.silverpeas.core.clipboard.ClipboardSelection
addFlavor, getTransferDataFlavors, isCutted, isDataFlavorSupported, isSelected, lostOwnership, setCutted, setSelected
-
-
-
-
Field Detail
-
SpaceFlavor
public static final DataFlavor SpaceFlavor
-
-
Constructor Detail
-
SpaceSelection
public SpaceSelection(SpaceInst space)
- Parameters:
space
- the selected space
-
-
Method Detail
-
getTransferData
@Nonnull public Object getTransferData(DataFlavor parFlavor) throws UnsupportedFlavorException
Returns the data transferred.- Specified by:
getTransferData
in interfaceTransferable
- Overrides:
getTransferData
in classClipboardSelection
- Parameters:
parFlavor
- the DataFlavor.- Returns:
- the dta copied.
- Throws:
UnsupportedFlavorException
- if an error occurs
-
getIndexEntry
public IndexEntry getIndexEntry()
Returns the IndexEntry for the space being copied- Specified by:
getIndexEntry
in classClipboardSelection
- Returns:
- an IndexEntry for this space
-
getKeyData
public SilverpeasKeyData getKeyData()
Tranforms the dat into a SilverpeasKeyData.- Specified by:
getKeyData
in classClipboardSelection
- Returns:
-
-