|
||||||||||
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.connection.ConnectionMediator
This class acts as a mediator between all of the components of the connection window.
Nested Class Summary |
Nested classes inherited from class com.limegroup.gnutella.gui.tables.AbstractTableMediator |
AbstractTableMediator.Resorter |
Field Summary |
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 | |
protected void |
addListeners()
Add the listeners |
protected void |
buildListeners()
Build the listeners |
protected void |
buildSettings()
Overriden to have different default values for tooltips. |
void |
clearConnections()
Clear the connections visually |
protected javax.swing.JPopupMenu |
createPopupMenu()
Abstract method for creating a right-click popup menu for the table. |
void |
doRefresh()
Override the default doRefresh so we can update the servent status label (Uses doRefresh instead of refresh so this will only get called when the table is showing. |
protected java.awt.Component |
getScrolledTablePane()
Overridden to set the size. |
void |
handleMouseDoubleClick(java.awt.Point p)
Do nothing on double-click |
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 connection window, enabling or disabling buttons |
static ConnectionMediator |
instance()
|
void |
processKeepAliveChange(javax.swing.JTextField source)
Called when the user changes their keep alive settings |
void |
removeSelection()
Removes all selected rows from Router, which will in turn remove it from the list. |
void |
setKeepAliveText(java.lang.String val)
|
protected void |
setupConstants()
Set up the necessary constants. |
protected void |
setupMainPanel()
Override the default main panel setup so we can add two text boxes, for the host & port. |
protected void |
updateSplashScreen()
Update the splash screen |
Methods inherited from class com.limegroup.gnutella.gui.tables.AbstractTableMediator |
add, addUnsorted, clearSelection, clearTable, createColumnSelectionMenu, createDefaultColumnPreferencesHandler, forceResort, getComponent, getSize, handleHeaderColumnLeftClick, handleHeaderColumnPressed, handleHeaderColumnReleased, handleHeaderPopupMenu, handlePopupMenu, handleRightMouseClick, refresh, remove, removeRow, resort, setButtonEnabled, setDefaultEditors, setDefaultRenderers, setupTable, setupTableHeaders, sortAndMaintainSelection, update, updateTheme |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ConnectionMediator instance()
protected void buildListeners()
buildListeners
in class AbstractTableMediator
protected void buildSettings()
buildSettings
in class AbstractTableMediator
protected void addListeners()
addListeners
in class AbstractTableMediator
protected void setupConstants()
setupConstants
in class AbstractTableMediator
protected java.awt.Component getScrolledTablePane()
getScrolledTablePane
in class AbstractTableMediator
protected void updateSplashScreen()
updateSplashScreen
in class AbstractTableMediator
protected void setupMainPanel()
setupMainPanel
in class AbstractTableMediator
public void removeSelection()
removeSelection
in interface ComponentMediator
removeSelection
in class AbstractTableMediator
protected javax.swing.JPopupMenu createPopupMenu()
AbstractTableMediator
createPopupMenu
in class AbstractTableMediator
public void handleSelection(int row)
row
- the selected rowpublic void handleNoSelection()
public void handleMouseDoubleClick(java.awt.Point p)
public void doRefresh()
doRefresh
in class AbstractTableMediator
public void processKeepAliveChange(javax.swing.JTextField source)
public void setKeepAliveText(java.lang.String val)
public void clearConnections()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |