Clipboard - PowerPoint PPT Presentation

About This Presentation
Title:

Clipboard

Description:

Components that use IClipboard must know about the Item and DataType class. ... deactivate () Enumeration getProvided() Enumeration getRequired() # Stack contents ... – PowerPoint PPT presentation

Number of Views:71
Avg rating:3.0/5.0
Slides: 7
Provided by: georgeh1
Learn more at: http://web.cs.wpi.edu
Category:

less

Transcript and Presenter's Notes

Title: Clipboard


1
implements
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
2
Critical Evaluation of Version 1.0
  1. Components that use IClipboard must know about
    the Item and DataType class. Specifically, the
    constructor for Item and DataType must be
    available
  2. 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.

3
Clipboard 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
4
Critical Evaluation of Version 1.1
  1. Should we be worried about the unbounded nature
    of the clipboard? What if very-large depth is
    reached?
  2. Can we provide a standard GUI interface to the
    clipboard much like Microsoft-office does with
    its latest Office Clipboard

5
implements
implements
extends
3
implements
1
1
implements
1
1 1
1
1
1
6
Critical Evaluation of Version 1.2
  1. Ensure backward compatibility with earlier
    versions because IClipboard was not altered
  2. GUI usage will be inferred when setAccessor() or
    showClipboard() is invoked.
Write a Comment
User Comments (0)
About PowerShow.com