|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alee.managers.drag.SimpleDragViewHandler<T>
com.alee.extended.tab.DocumentDragViewHandler<T>
public class DocumentDragViewHandler<T extends DocumentData>
Custom DragViewHandler for WebDocumentPane document.
WebDocumentPane
,
DragManager
Field Summary | |
---|---|
protected WebDocumentPane |
documentPane
Document pane which provides this DragViewHandler. |
Fields inherited from class com.alee.managers.drag.SimpleDragViewHandler |
---|
margin, textSideSpacing |
Constructor Summary | |
---|---|
DocumentDragViewHandler(WebDocumentPane documentPane)
Constructs custom DragViewHandler for DocumentData object. |
Method Summary | |
---|---|
protected java.awt.FontMetrics |
getFontMetrics(T document)
Returns font metrics used to display text. |
protected javax.swing.Icon |
getIcon(T document)
Returns displayed icon. |
java.awt.datatransfer.DataFlavor |
getObjectFlavor()
Returns object flavor that can be used to retrieve dragged object. |
protected java.lang.String |
getText(T document)
Returns displayed text. |
Methods inherited from class com.alee.managers.drag.SimpleDragViewHandler |
---|
dragEnded, getView, getViewRelativeLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final WebDocumentPane documentPane
Constructor Detail |
---|
public DocumentDragViewHandler(WebDocumentPane documentPane)
documentPane
- document pane which provides this DragViewHandlerMethod Detail |
---|
public java.awt.datatransfer.DataFlavor getObjectFlavor()
protected java.awt.FontMetrics getFontMetrics(T document)
getFontMetrics
in class SimpleDragViewHandler<T extends DocumentData>
protected javax.swing.Icon getIcon(T document)
getIcon
in class SimpleDragViewHandler<T extends DocumentData>
protected java.lang.String getText(T document)
getText
in class SimpleDragViewHandler<T extends DocumentData>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |