com.limegroup.gnutella.gui.tables
Interface ComponentMediator

All Superinterfaces:
RefreshListener
All Known Implementing Classes:
AbstractTableMediator

public interface ComponentMediator
extends RefreshListener

A common interface for GUI components Allows adding/removing objects, and supports imbedding buttons that are 'attached' to the information.


Method Summary
 void add(java.lang.Object o)
          Signifies an object was added to this component
 javax.swing.JComponent getComponent()
          Returns the underlying component that this Mediator handles
 void handleMouseDoubleClick(java.awt.Point p)
          Handles when the mouse is double-clicked at Point p
 void handleNoSelection()
          Event for when nothing is selected.
 void handlePopupMenu(java.awt.Point p)
          Handles a trigger to the popup menu at Point p
 void handleRightMouseClick(java.awt.Point p)
          Handles a right-mouse click at Point p
 void handleSelection(int row)
          Event for when something (such as a row) is selected.
 void remove(java.lang.Object o)
          Signifies an object was removed from this component.
 void removeSelection()
          Removes whatever is selected from the component
 void setButtonEnabled(int buttonIdx, boolean enabled)
          Handles setting/unsetting the status of the buttons that this Mediator controls.
 void update(java.lang.Object o)
          Signifies an object in this component was updated.
 
Methods inherited from interface com.limegroup.gnutella.gui.RefreshListener
refresh
 

Method Detail

add

public void add(java.lang.Object o)
Signifies an object was added to this component


remove

public void remove(java.lang.Object o)
Signifies an object was removed from this component.


update

public void update(java.lang.Object o)
Signifies an object in this component was updated.


getComponent

public javax.swing.JComponent getComponent()
Returns the underlying component that this Mediator handles


removeSelection

public void removeSelection()
Removes whatever is selected from the component


handleMouseDoubleClick

public void handleMouseDoubleClick(java.awt.Point p)
Handles when the mouse is double-clicked at Point p


handleRightMouseClick

public void handleRightMouseClick(java.awt.Point p)
Handles a right-mouse click at Point p


handlePopupMenu

public void handlePopupMenu(java.awt.Point p)
Handles a trigger to the popup menu at Point p


handleSelection

public void handleSelection(int row)
Event for when something (such as a row) is selected.


handleNoSelection

public void handleNoSelection()
Event for when nothing is selected.


setButtonEnabled

public void setButtonEnabled(int buttonIdx,
                             boolean enabled)
Handles setting/unsetting the status of the buttons that this Mediator controls.