Class AddServerPanelController

java.lang.Object
  extended byNSWindowController
      extended byWindowController
          extended byAddServerPanelController

public class AddServerPanelController
extends WindowController

This controller controls the AddServerPanel panel. It allows the user to enter a new server to connect to.

See Also:
Serialized Form

Field Summary
(package private)  NSTextField hostnameField
           
(package private)  NSTextField portField
           
 
Constructor Summary
AddServerPanelController(DonkeyTalker talker)
          This controller does not show the window.
 
Method Summary
 void cancelAction(java.lang.Object sender)
          Just closes the window
 void okAction(java.lang.Object sender)
          Adds the requested server and closes the window.
 
Methods inherited from class WindowController
colorForRow, scrollViewOf, shouldRememberWindowPos, tableViewWillDisplayCell, windowDidLoad, windowWillClose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostnameField

NSTextField hostnameField

portField

NSTextField portField
Constructor Detail

AddServerPanelController

public AddServerPanelController(DonkeyTalker talker)
This controller does not show the window. It's creation must be followed by a call to showWindow()

Parameters:
talker - The DonkeyTalker to talk to
Method Detail

cancelAction

public void cancelAction(java.lang.Object sender)
Just closes the window


okAction

public void okAction(java.lang.Object sender)
Adds the requested server and closes the window. No error handling if the entered information is completly wrong.