Class MainClipboardService
- java.lang.Object
-
- org.silverpeas.core.clipboard.service.MainClipboardService
-
- All Implemented Interfaces:
Serializable
,Clipboard
@SessionScoped @MainClipboard public class MainClipboardService extends Object implements Clipboard, Serializable
Silverpeas Service to maintain the status of the main clipboard.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MainClipboardService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ClipboardSelection objectToCopy)
void
clear()
int
getCount()
Exception
getExceptionError()
String
getMessageError()
ClipboardSelection
getObject()
ClipboardSelection
getObject(int index)
Collection<ClipboardSelection>
getObjects()
Collection<ClipboardSelection>
getSelectedObjects()
void
PasteDone()
void
removeObject(int index)
void
setMessageError(String messageID, Exception e)
void
setMultiClipboard()
void
setSelected(int index, boolean setIt)
void
setSingleClipboard()
Switch the clipboard to single mode.void
setUp()
int
size()
-
-
-
Method Detail
-
add
public void add(ClipboardSelection objectToCopy) throws ClipboardException
- Specified by:
add
in interfaceClipboard
- Throws:
ClipboardException
-
getObject
public ClipboardSelection getObject()
-
getObjects
public Collection<ClipboardSelection> getObjects()
- Specified by:
getObjects
in interfaceClipboard
-
getSelectedObjects
public Collection<ClipboardSelection> getSelectedObjects() throws ClipboardException
- Specified by:
getSelectedObjects
in interfaceClipboard
- Throws:
ClipboardException
-
size
public int size() throws ClipboardException
- Specified by:
size
in interfaceClipboard
- Throws:
ClipboardException
-
getObject
public ClipboardSelection getObject(int index) throws ClipboardException
- Specified by:
getObject
in interfaceClipboard
- Throws:
ClipboardException
-
setSelected
public void setSelected(int index, boolean setIt) throws ClipboardException
- Specified by:
setSelected
in interfaceClipboard
- Throws:
ClipboardException
-
removeObject
public void removeObject(int index) throws ClipboardException
- Specified by:
removeObject
in interfaceClipboard
- Throws:
ClipboardException
-
setMultiClipboard
public void setMultiClipboard() throws ClipboardException
- Specified by:
setMultiClipboard
in interfaceClipboard
- Throws:
ClipboardException
-
setSingleClipboard
public void setSingleClipboard()
Switch the clipboard to single mode.- Specified by:
setSingleClipboard
in interfaceClipboard
-
getMessageError
public String getMessageError()
- Specified by:
getMessageError
in interfaceClipboard
-
getExceptionError
public Exception getExceptionError()
- Specified by:
getExceptionError
in interfaceClipboard
-
setMessageError
public void setMessageError(String messageID, Exception e)
- Specified by:
setMessageError
in interfaceClipboard
-
setUp
@PostConstruct public void setUp()
-
-