net.sf.freecol.client.gui.panel
Class EndTurnDialog.UnitWrapper
java.lang.Object
net.sf.freecol.client.gui.panel.EndTurnDialog.UnitWrapper
- Enclosing class:
- EndTurnDialog
public class EndTurnDialog.UnitWrapper
- extends java.lang.Object
We need to wrap the Unit class in order to make the JList
support keystroke navigation. JList.getNextMatch uses the
toString() method, but the toString() method of FreeCol objects
provides debugging information rather than a searchable name.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
unit
public Unit unit
name
public java.lang.String name
location
public java.lang.String location
EndTurnDialog.UnitWrapper
public EndTurnDialog.UnitWrapper(Unit unit)
getUnit
public Unit getUnit()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object