com.stratelia.webactiv.beans.admin
Class ComponentSelection

java.lang.Object
  extended by com.silverpeas.util.clipboard.ClipboardSelection
      extended by com.stratelia.webactiv.beans.admin.ComponentSelection
All Implemented Interfaces:
ClipboardOwner, Transferable, Serializable

public class ComponentSelection
extends ClipboardSelection
implements Serializable

See Also:
Serialized Form

Field Summary
static DataFlavor ComponentDetailFlavor
           
 
Fields inherited from class com.silverpeas.util.clipboard.ClipboardSelection
IndexFlavor, selected, SilverpeasKeyDataFlavor, supportedFlavorsList
 
Constructor Summary
ComponentSelection(ComponentInst component)
           
 
Method Summary
 IndexEntry getIndexEntry()
          Returns the IndexEntry for the component being copeid.
 SilverpeasKeyData getKeyData()
          Tranforms the dat into a SilverpeasKeyData.
 Object getTransferData(DataFlavor parFlavor)
          Returns the data transfered.
 
Methods inherited from class com.silverpeas.util.clipboard.ClipboardSelection
addFlavor, getTransferDataFlavors, isCutted, isDataFlavorSupported, isSelected, lostOwnership, setCutted, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ComponentDetailFlavor

public static final DataFlavor ComponentDetailFlavor
Constructor Detail

ComponentSelection

public ComponentSelection(ComponentInst component)
Parameters:
component - the component selected.
Method Detail

getTransferData

public Object getTransferData(DataFlavor parFlavor)
                       throws UnsupportedFlavorException
Returns the data transfered.

Specified by:
getTransferData in interface Transferable
Overrides:
getTransferData in class ClipboardSelection
Parameters:
parFlavor - the DataFlavor.
Returns:
the dta copied.
Throws:
UnsupportedFlavorException

getIndexEntry

public IndexEntry getIndexEntry()
Returns the IndexEntry for the component being copeid.

Specified by:
getIndexEntry in class ClipboardSelection
Returns:
an IndexEntry for this component

getKeyData

public SilverpeasKeyData getKeyData()
Tranforms the dat into a SilverpeasKeyData.

Specified by:
getKeyData in class ClipboardSelection
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.