home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Headers / eointerface / NXTableProtocols.h < prev    next >
Encoding:
Text File  |  1994-12-06  |  1.7 KB  |  76 lines

  1. /*
  2. **      NXTableProtocols.h
  3. **      Copyright (c) 1992, NeXT Computer, Inc.  All rights reserved. 
  4. */
  5. #import <appkit/appkit.h>
  6.  
  7. /*
  8.  *  This protocol is used to parameterize rows and columns in a table.
  9.  */
  10. @protocol NXTableVectors
  11. - formatter;
  12. - setFormatter:newFormatter;
  13. - (BOOL) isResizable;
  14. - setResizable:(BOOL) isResizable;
  15. - (BOOL) isAutosizable;
  16. - setAutosizable:(BOOL) isAutosizable;
  17. - (BOOL) isEditable;
  18. - setEditable:(BOOL) isEditable;
  19. - (NXCoord) minSize;
  20. - setMinSize:(NXCoord) newMinSize;
  21. - (NXCoord) maxSize;
  22. - setMaxSize:(NXCoord) newMaxSize;
  23. - (NXCoord) size;
  24. - (NXCoord) sizeTo:(NXCoord) newSize;
  25. - (const char *) title;
  26. - setTitle:(const char *) title;
  27. - titleFont;
  28. - setTitleFont:aFont;
  29. -  identifier;
  30. - setIdentifier:anIdentifier;
  31. - (int) titleAlignment;
  32. - setTitleAlignment:(int) align;
  33. - (int) contentAlignment;
  34. - setContentAlignment:(int) align;
  35. @end
  36.  
  37.  
  38. @interface Object(NXTableDataSources)
  39. - (unsigned int) rowCount;
  40. - (unsigned int) columnCount;
  41.  
  42. - getValueFor:identifier at:(unsigned int) aPosition into:aValue;
  43. - setValueFor:identifier at:(unsigned int) aPosition from:aValue;
  44.  
  45. - getValueFor:rowIdentifier :columnIdentifier into:aValue;
  46. - setValueFor:rowIdentifier :columnIdentifier from:aValue;
  47. @end
  48.  
  49.  
  50. @protocol NXTableValue
  51.  
  52. - (const char *)objCType;
  53.  
  54. - setNull;
  55. - (BOOL)isNull;
  56.  
  57. - objectValue;
  58. - (int)intValue;
  59. - (float)floatValue;
  60. - (double)doubleValue;
  61. - (const char *)stringValue;
  62. - string;
  63.  
  64. - setObjectValue:(id)anObject;
  65. - setIntValue:(int)anInt;
  66. - setFloatValue:(float)aFloat;
  67. - setDoubleValue:(double)aDouble;
  68. - setStringValue:(const char *)aString;
  69.  
  70. - setObjectValueNoCopy:(id)anObject;
  71. - setStringValueNoCopy:(const char *)aString;
  72. - (void)setString: aString;
  73.  
  74. @end
  75.  
  76.