edu.jhu.ece.iacl.jist.pipeline.gui
Class ConnectionEditor

java.lang.Object
  extended by javax.swing.plaf.basic.BasicComboBoxEditor
      extended by edu.jhu.ece.iacl.jist.pipeline.gui.ConnectionEditor
All Implemented Interfaces:
java.awt.event.FocusListener, java.util.EventListener, javax.swing.ComboBoxEditor, javax.swing.event.ChangeListener

public class ConnectionEditor
extends javax.swing.plaf.basic.BasicComboBoxEditor
implements javax.swing.ComboBoxEditor, javax.swing.event.ChangeListener

Class for editing connections that have an identifying index.

Author:
Blake Lucas

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxEditor
javax.swing.plaf.basic.BasicComboBoxEditor.UIResource
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicComboBoxEditor
editor
 
Constructor Summary
ConnectionEditor(PipePort port)
          Constructor.
 
Method Summary
 java.awt.Component getEditorComponent()
          Get edit pane.
 PipePort getItem()
          Get selected item.
 void setItem(java.lang.Object obj)
          Set selected item.
 void stateChanged(javax.swing.event.ChangeEvent evt)
          Index selection has changed.
protected  void updatePanel(PipePort port)
          Update panel.
 
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxEditor
addActionListener, createEditorComponent, focusGained, focusLost, removeActionListener, selectAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ComboBoxEditor
addActionListener, removeActionListener, selectAll
 

Constructor Detail

ConnectionEditor

public ConnectionEditor(PipePort port)
Constructor.

Parameters:
port - destination port
Method Detail

getEditorComponent

public java.awt.Component getEditorComponent()
Get edit pane.

Specified by:
getEditorComponent in interface javax.swing.ComboBoxEditor
Overrides:
getEditorComponent in class javax.swing.plaf.basic.BasicComboBoxEditor
Returns:
the editor component

getItem

public PipePort getItem()
Get selected item.

Specified by:
getItem in interface javax.swing.ComboBoxEditor
Overrides:
getItem in class javax.swing.plaf.basic.BasicComboBoxEditor
Returns:
the item

setItem

public void setItem(java.lang.Object obj)
Set selected item.

Specified by:
setItem in interface javax.swing.ComboBoxEditor
Overrides:
setItem in class javax.swing.plaf.basic.BasicComboBoxEditor
Parameters:
obj - the obj

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent evt)
Index selection has changed.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
evt - the evt

updatePanel

protected void updatePanel(PipePort port)
Update panel.

Parameters:
port - selected source port