home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextLibrary / Frameworks / NIInterface.framework / Versions / A / Headers / NIDomainPanel.h < prev    next >
Encoding:
Text File  |  1995-07-28  |  1.2 KB  |  73 lines

  1. /*
  2.     NIDomainPanel.h
  3.     NetInfo Kit
  4.     Copyright (c) 1994, NeXT Computer, Inc.
  5.     All rights reserved.
  6.  */
  7.  
  8. #import <Foundation/NSString.h>
  9. #import <Foundation/NSArray.h>
  10. #import <NIAccess/NIDomain.h>
  11. #import <AppKit/NSPanel.h>
  12. #import <AppKit/NSBrowser.h>
  13. #import <AppKit/NSMatrix.h>
  14. #import <AppKit/NSEvent.h>
  15.  
  16. @interface NIDomainPanel : NSPanel
  17. {
  18.     id iconButton;
  19.     id okButton;
  20.     id browser;
  21.     id domainText;
  22.     id reserved;
  23. }
  24.  
  25. /* 
  26.  * Class Methods
  27.  */
  28. + (NIDomainPanel *)domainPanel;
  29.  
  30. /*
  31.  * Selection controls
  32.  */
  33. - (void)setAllowsMultipleSelection:(BOOL)flag;
  34. - (BOOL)allowsMultipleSelection;
  35. - (unsigned)numberSelected;
  36.  
  37. /*
  38.  * Instance Methods
  39.  */
  40. - panelOK:sender;
  41. - panelCancel:sender;
  42. - (BOOL)runModal;
  43. - (BOOL)runModalForDomain:(NIDomain *)domain;
  44. - (BOOL)runModalForDomainNamed:(NSString *)name;
  45.  
  46. /* 
  47.  * Domain selected by user
  48.  */
  49. - (NIDomain *)domain;
  50. - (NSString *)domainName;
  51.  
  52. /*
  53.  * Domains selected if multiple selection is enabled
  54.  */
  55. - (NSArray *)domains;
  56. - (NSArray *)domainNames;
  57.  
  58. /* 
  59.  * NSBrowser delagate methods
  60.  */
  61. - (void)browser:(NSBrowser *)sender
  62.     createRowsForColumn:(int)column
  63.     inMatrix:(NSMatrix *)matrix;
  64.  
  65. - selectDomain:sender;
  66.  
  67. /*
  68.  * keyDown events forwarded from the fieldEditor
  69.  */
  70. - (BOOL)textField:(id)sender receivedKeyDown:(NSEvent *)theEvent;
  71.  
  72. @end
  73.