Title: Clipboard
1implements
Clipboard Item retrieve () Item retrieveNth
(int n) Item retrieve (DataType type) Item
retrieveNth (int n, DataType type) void clear
() void insert (Item item) Enumeration types
() Stack contents
1
1
1
1
1
2Critical Evaluation of Version 1.0
- Components that use IClipboard must know about
the Item and DataType class. Specifically, the
constructor for Item and DataType must be
available - The behavior of the clipboard is actually quite a
bit different from a Stack! First, it can be
cleared. Second, one can retrieve an item from
deep within the stack. Third, when a paste
operation occurs, the stack is not changed.
3Clipboard implements IBlock IItem retrieve ()
IItem retrieveNth (int n) IItem retrieve
(IDataType type) IItem retrieveNth (int n,
IDataType type) void clear () void insert
(IItem item) Enumeration types () Item
newItemInstance (IDataType type, Object obj)
IDataType newDataTypeInstance (String s)
Clipboard () activate () boolean connect
(IBlock ib, String interfaceName) deactivate
() Enumeration getProvided() Enumeration
getRequired() Stack contents Vector
providedV, requiredV
implements
1
implements
1
implements
1
1 1
4Critical Evaluation of Version 1.1
- Should we be worried about the unbounded nature
of the clipboard? What if very-large depth is
reached? - Can we provide a standard GUI interface to the
clipboard much like Microsoft-office does with
its latest Office Clipboard
5implements
implements
extends
3
implements
1
1
implements
1
1 1
1
1
1
6Critical Evaluation of Version 1.2
- Ensure backward compatibility with earlier
versions because IClipboard was not altered - GUI usage will be inferred when setAccessor() or
showClipboard() is invoked.