|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.gui.tables.AbstractTableMediator
com.limegroup.gnutella.gui.download.DownloadMediator
This class acts as a mediator between all of the components of the download window. It also constructs all of the download window components.
| Nested Class Summary |
| Nested classes inherited from class com.limegroup.gnutella.gui.tables.AbstractTableMediator |
AbstractTableMediator.Resorter |
| Field Summary | |
java.awt.event.ActionListener |
BROWSE_LISTENER
|
java.awt.event.ActionListener |
CHAT_LISTENER
Variables so only one ActionListener needs to be created for both the buttons & popup menu. |
java.awt.event.ActionListener |
CLEAR_LISTENER
|
java.awt.event.ActionListener |
LAUNCH_LISTENER
|
java.awt.event.ActionListener |
RESUME_LISTENER
|
| Fields inherited from class com.limegroup.gnutella.gui.tables.AbstractTableMediator |
BUTTON_ROW, CHAT_RENDERER, COLOR_RENDERER, DATA_MODEL, DEFAULT_LISTENER, HEADER_LISTENER, ID, MAIN_PANEL, PROGRESS_BAR_RENDERER, REMOVE_LISTENER, RESORTER, SCROLL_PANE, SELECTION_LISTENER, SETTINGS, TABLE, TABLE_PANE, ZERO_DIMENSION |
| Method Summary | |
void |
add(java.lang.Object downloader)
Overrides the default add. |
protected void |
buildListeners()
Build some extra listeners |
protected void |
buildSettings()
Overriden to have different default values for tooltips. |
protected javax.swing.JPopupMenu |
createPopupMenu()
Abstract method for creating a right-click popup menu for the table. |
void |
doRefresh()
Override the default refreshing so that we can set the clear button appropriately. |
int |
getActiveDownloads()
Returns the total number of active Downloads. |
int |
getCurrentDownloads()
Returns the total number of current Downloads. |
int |
getTotalDownloads()
Returns the total number of Downloads that have occurred in this session. |
void |
handleMouseDoubleClick(java.awt.Point p)
Handles a double-click event in the table. |
void |
handleNoSelection()
Handles the deselection of all rows in the download table, disabling all necessary buttons and menu items. |
void |
handleSelection(int row)
Handles the selection of the specified row in the download window, enabling or disabling buttons and chat menu items depending on the values in the row. |
static DownloadMediator |
instance()
|
void |
remove(java.lang.Object downloader)
Overrides the default remove. |
protected void |
setupConstants()
Set up the necessary constants. |
protected void |
updateSplashScreen()
Update the splash screen. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.awt.event.ActionListener CHAT_LISTENER
public java.awt.event.ActionListener CLEAR_LISTENER
public java.awt.event.ActionListener BROWSE_LISTENER
public java.awt.event.ActionListener LAUNCH_LISTENER
public java.awt.event.ActionListener RESUME_LISTENER
| Method Detail |
public static DownloadMediator instance()
protected void buildSettings()
buildSettings in class AbstractTableMediatorprotected void buildListeners()
buildListeners in class AbstractTableMediatorprotected void setupConstants()
setupConstants in class AbstractTableMediatorprotected void updateSplashScreen()
updateSplashScreen in class AbstractTableMediatorpublic void doRefresh()
doRefresh in class AbstractTableMediatorpublic int getTotalDownloads()
public int getCurrentDownloads()
public int getActiveDownloads()
public void add(java.lang.Object downloader)
add in interface ComponentMediatoradd in class AbstractTableMediatorpublic void remove(java.lang.Object downloader)
remove in interface ComponentMediatorremove in class AbstractTableMediatordownloader - the Downloader to remove from the list if it is
complete.public void handleMouseDoubleClick(java.awt.Point p)
protected javax.swing.JPopupMenu createPopupMenu()
AbstractTableMediator
createPopupMenu in class AbstractTableMediatorpublic void handleSelection(int row)
row - the selected rowpublic void handleNoSelection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||