|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Displays a piece of the document's information.
| Method Summary | |
void |
addChild(View child)
Adds a child element. |
Action |
copy()
Perform a "copy to clipboard" operation. |
int |
countChildren()
Counts all child elements. |
Action |
cut()
Perform a "cut to clipboard" operation. |
void |
delete()
Perform a delete operation. |
View |
getChild(int index)
Gets the child element at the specified index. |
Data |
getData()
Returns the Data object associated with this view. |
Document |
getDocument()
Returns the document which this view is assigned to. |
View |
getParentView()
Gets the parent View object, or null if there is no parent object (i.e. this is probably a RootView object). |
boolean |
isCopyPossible()
Returns true if content can be copied to the clipboard. |
boolean |
isCutPossible()
Returns true if content can be cutted to the clipboard. |
boolean |
isDeletePossible()
Returns true if content can be deleted. |
boolean |
isPastePossible()
Returns true if content can be pasted from the clipboard. |
void |
paste(Action action)
Perform a "paste from clipboard" operation. |
void |
removeChild(View child)
Removes a child element. |
void |
setCopyPossible(boolean possible)
Enables or disables copying to the clipboard. |
void |
setCutPossible(boolean possible)
Enables or disables cutting to the clipboard. |
void |
setData(Data data)
Associates this View with the given Data object. |
void |
setDeletePossible(boolean possible)
Enables or disables deleting operations. |
void |
setPastePossible(boolean possible)
Enables or disables pasting from the clipboard. |
void |
syncWithData()
Called from the Data object to indicate that the documents data has changed. |
| Methods inherited from interface org.bs.mdi.ActionObserver |
actionPerformed, actionUndone |
| Methods inherited from interface org.bs.mdi.ActionObservable |
addObserver, countObservers, isObserver, notifyObservers, removeObserver |
| Methods inherited from interface org.bs.mdi.ActionProcessor |
applyAction, undoAction |
| Method Detail |
public Document getDocument()
getData().getDocument.
public Data getData()
public void setData(Data data)
data - the Data objectpublic View getParentView()
RootView object).
public void addChild(View child)
child - the child elementpublic void removeChild(View child)
child - the child elementpublic int countChildren()
public View getChild(int index)
index - the index
public Action copy()
public Action cut()
public void paste(Action action)
action - the action object containing the information to be pastedpublic void delete()
public boolean isCopyPossible()
public void setCopyPossible(boolean possible)
possible - true if copying is possible, false otherwisepublic boolean isCutPossible()
public void setCutPossible(boolean possible)
possible - true if cutting is possible, false otherwisepublic boolean isPastePossible()
public void setPastePossible(boolean possible)
possible - true if pasting is possible, false otherwisepublic boolean isDeletePossible()
public void setDeletePossible(boolean possible)
possible - true if deleting is possible, false otherwisepublic void syncWithData()
The view update or redraw its contents the reflect that changes.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||