|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.controller.dnd.NewsTabFolderDND
This class impements basic Drag and Drop support to the CTabFolder. It allows the user to drag a tabitem that displays a newsfeed and drop it in a category of the favorites tree. On success RSSOwl will create a favorite out of the URL and title of the dragged tabitem.
Field Summary | |
private static int |
operations
Support drag and drop operations |
(package private) FavoritesTreeDND |
rssOwlFavoritesTreeDND
|
private org.eclipse.swt.dnd.DragSource |
source
|
private org.eclipse.swt.custom.CTabFolder |
tabFolder
|
private static org.eclipse.swt.dnd.Transfer[] |
types
Array of transfer types |
Constructor Summary | |
NewsTabFolderDND(org.eclipse.swt.custom.CTabFolder tabFolder,
FavoritesTreeDND rssOwlFavoritesTreeDND)
Instantiate a new NewsTabFolderDND |
Method Summary | |
private void |
createDragSource()
Create the Drag Source on the tabfolder. |
void |
dispose()
Dispose the DragSource object |
(package private) org.eclipse.swt.custom.CTabItem |
getValidDragSourceTabItem()
Valid source items to drag from the tabfolder are tabs that display a newsfeed |
private void |
initDragAndDrop()
Init Drag and Drop on the tree widget. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int operations
private static final org.eclipse.swt.dnd.Transfer[] types
private org.eclipse.swt.dnd.DragSource source
private org.eclipse.swt.custom.CTabFolder tabFolder
FavoritesTreeDND rssOwlFavoritesTreeDND
Constructor Detail |
public NewsTabFolderDND(org.eclipse.swt.custom.CTabFolder tabFolder, FavoritesTreeDND rssOwlFavoritesTreeDND)
tabFolder
- The CTabFolder to apply basic drag and drop supportrssOwlFavoritesTreeDND
- A reference to the drag and drop class of the
favorites tree. This is needed because the drop target will be the treeMethod Detail |
public void dispose()
private void createDragSource()
private void initDragAndDrop()
org.eclipse.swt.custom.CTabItem getValidDragSourceTabItem()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |