|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jaret.util.ui.table.strategies.DefaultCCPStrategy
public class DefaultCCPStrategy
Default implementation for cut, copy, paste. See the the description of the methods for details. The implementation is not yet perfect. It uses "brutal" String conversions. May be it would best to introduce converter services in the table model (optional) or use methods in renderers or editors for conversion.
Constructor Summary | |
---|---|
DefaultCCPStrategy()
|
Method Summary | |
---|---|
void |
copy(JaretTable table)
Do the copy operation using the constant COPY_DELIMITER. |
void |
cut(JaretTable table)
Do the cut operation. |
protected void |
cutOrCopy(JaretTable table,
boolean cut)
Do the actual copy or cut operation. |
void |
dispose()
If there is something to dispose ... most probably the clipboard instance. |
protected void |
emptyCell(IJaretTableCell cell)
Empty the given cell. |
boolean |
getIncludeHeadersInCopy()
Retrieve the state of header include in the copied content. |
void |
paste(JaretTable table)
Paste pastes textual context starting at the focussed cell (does not use the selection by now). |
void |
setIncludeHeadersInCopy(boolean includeHeadersInCopy)
Set includeHeaders: if set to true in copy and cut context the headline (=col headers) labels will be included. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCCPStrategy()
Method Detail |
---|
public void dispose()
dispose
in interface ICCPStrategy
public void copy(JaretTable table)
copy
in interface ICCPStrategy
table
- jaret table the operation is invoked onpublic void cut(JaretTable table)
cut
in interface ICCPStrategy
table
- jaret table the operation is invoked onprotected void cutOrCopy(JaretTable table, boolean cut)
table
- tablecut
- if set to true cells we be emptiedprotected void emptyCell(IJaretTableCell cell)
cell
- cell to be emptiedpublic void paste(JaretTable table)
paste
in interface ICCPStrategy
table
- the jaret tablepublic boolean getIncludeHeadersInCopy()
public void setIncludeHeadersInCopy(boolean includeHeadersInCopy)
includeHeadersInCopy
- the includeHeadersInCopy to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |