|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.controller.dnd.NewsTabFolderDND
public class 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. It is also possible to move the CTabItem to a different position in the Tabfolder by dropping it over another CTabItem.
| Field Summary | |
|---|---|
private static int |
operations
Support drag and drop operations |
(package private) FavoritesTreeDND |
rssOwlFavoritesTreeDND
|
private DragSource |
source
|
(package private) CTabFolder |
tabFolder
|
private DropTarget |
target
|
private static Transfer[] |
types
Array of transfer types |
| Constructor Summary | |
|---|---|
NewsTabFolderDND(CTabFolder tabFolder,
FavoritesTreeDND rssOwlFavoritesTreeDND)
Instantiate a new NewsTabFolderDND |
|
| Method Summary | |
|---|---|
private void |
createDragSource()
Create the Drag Source on the tabfolder |
private void |
createDropTarget()
Create the Drop Target on the tabfolder |
void |
dispose()
Dispose the DragSource object |
(package private) 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. |
(package private) void |
move(CTabItem from,
CTabItem to)
Move the given CTabItem to the new position. |
| 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 Transfer[] types
private DragSource source
private DropTarget target
FavoritesTreeDND rssOwlFavoritesTreeDND
CTabFolder tabFolder
| Constructor Detail |
|---|
public NewsTabFolderDND(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 tree| Method Detail |
|---|
public void dispose()
private void createDragSource()
private void createDropTarget()
private void initDragAndDrop()
CTabItem getValidDragSourceTabItem()
void move(CTabItem from,
CTabItem to)
from - The CTabItem to move.to - The new location of the CTabItem to move.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||