home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / dbkit / tableProtocols.h < prev    next >
Text File  |  1992-07-09  |  1KB  |  51 lines

  1. /*
  2. **      tableProtocols.h
  3. **      Database Kit, Release 3.0
  4. **      Copyright (c) 1992, NeXT Computer, Inc.  All rights reserved. 
  5. */
  6. #import <objc/Object.h>
  7. #import <appkit/graphics.h>
  8.  
  9. /*
  10.  *  This protocol is used to parameterize rows and columns in a table.
  11.  */
  12. @protocol DBTableVectors
  13. - formatter;
  14. - setFormatter:newFormatter;
  15. - (BOOL) isResizable;
  16. - setResizable:(BOOL) isResizable;
  17. - (BOOL) isAutosizable;
  18. - setAutosizable:(BOOL) isAutosizable;
  19. - (BOOL) isEditable;
  20. - setEditable:(BOOL) isEditable;
  21. - (NXCoord) minSize;
  22. - setMinSize:(NXCoord) newMinSize;
  23. - (NXCoord) maxSize;
  24. - setMaxSize:(NXCoord) newMaxSize;
  25. - (NXCoord) size;
  26. - (NXCoord) sizeTo:(NXCoord) newSize;
  27. - (const char *) title;
  28. - setTitle:(const char *) title;
  29. - titleFont;
  30. - setTitleFont:aFont;
  31. -  identifier;
  32. - setIdentifier:anIdentifier;
  33. - (int) titleAlignment;
  34. - setTitleAlignment:(int) align;
  35. - (int) contentAlignment;
  36. - setContentAlignment:(int) align;
  37. @end
  38.  
  39.  
  40. @interface Object(DBTableDataSources)
  41. - (unsigned int) rowCount;
  42. - (unsigned int) columnCount;
  43.  
  44. - getValueFor:identifier at:(unsigned int) aPosition into:aValue;
  45. - setValueFor:identifier at:(unsigned int) aPosition from:aValue;
  46.  
  47. - getValueFor:rowIdentifier :columnIdentifier into:aValue;
  48. - setValueFor:rowIdentifier :colum$ntifier from:aValue;
  49. @end
  50.  
  51.