#import <CPTableView.h>
Class Methods | |
(CPString) | + defaultThemeClass |
(CPDictionary) | + themeAttributes |
Class Methods inherited from CPControl | |
(void) | + initialize |
Class Methods inherited from CPView | |
(Class) | + animatorClass |
(CAAnimation) | + defaultAnimationForKey: |
(CPMenu) | + defaultMenu |
(BOOL) | + isHighDPIDrawingEnabled |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
(void) | + setHighDPIDrawingEnabled: |
A table view control displays record-oriented data in a table and allows the user to edit values and resize and rearrange columns. A CPTableView requires you to either set a data source which implements numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:, or alternatively to provide data through Key Value Bindings.
To use a table view with Key Value Bindings, bind each column's CPValueBinding
to an array.field
path - typically this would be to a path in an array controller like arrangedObjects.X
, where X
is the name of a field. Optionally also bind the table's selectionIndexes
and sortDescriptors
to the array controller.
All delegate and data source methods are documented in the setDataSource: and setDelegate: methods.
If you want to display something other than just text in the table you should call setDataView: on a CPTableColumn object. More documentation in that class including theme states.
Definition at line 2 of file CPTableView.h.
|
implementation |
Definition at line 5045 of file CPTableView.j.
|
implementation |
Adds a given column as the last column of the receiver.
aColumn | The column to add to the receiver. |
Reimplemented in CPOutlineView.
Definition at line 1077 of file CPTableView.j.
|
implementation |
Returns YES if the user is allowed to reorder the columns, otherwise NO.
Definition at line 704 of file CPTableView.j.
|
implementation |
Returns YES if the user is allowed to manually resize the columns, otherwise NO.
Definition at line 721 of file CPTableView.j.
|
implementation |
Returns YES if the user is allowed to select a column by clicking it, otherwise NO.
Definition at line 776 of file CPTableView.j.
|
implementation |
Returns YES if the tableview is allowed to have an unselected row or column, otherwise NO.
Definition at line 757 of file CPTableView.j.
|
implementation |
Returns YES if the tableview is allowed to have multiple selections, otherwise NO.
Definition at line 740 of file CPTableView.j.
|
implementation |
Returns an array of the alternating background colors
Definition at line 872 of file CPTableView.j.
|
implementation |
Returns the autosave name of the tableview.
Definition at line 2545 of file CPTableView.j.
|
implementation |
Returns YES the table columns should autosave, otherwise NO.
Definition at line 2564 of file CPTableView.j.
|
implementation |
Definition at line 5029 of file CPTableView.j.
|
implementation |
Provided by category CPTableView(Bindings).
Definition at line 6053 of file CPTableView.j.
|
implementation |
Returns whether the receiver allows dragging the rows at rowIndexes with a drag initiated at mousedDownPoint.
rowIndexes | an index set of rows to be dragged |
aPoint | the point at which the mouse was clicked. |
Definition at line 3042 of file CPTableView.j.
|
implementation |
Definition at line 678 of file CPTableView.j.
|
implementation |
Returns the index of the the row the user clicked to trigger an action, or -1 if no row was clicked.
Definition at line 686 of file CPTableView.j.
|
implementation |
Returns the index of a column at a given point. If no column is there CPNotFound is returned.
aPoint | a CGPoint |
Definition at line 1945 of file CPTableView.j.
|
implementation |
Returns the column auto resizing style of the receiver.
Definition at line 2329 of file CPTableView.j.
|
implementation |
Returns the index of the column for the specified view.
view | The view. |
Definition at line 2065 of file CPTableView.j.
|
implementation |
Returns the indexes of the receiver's columns that intersect the specified rectangle.
aRect | a rectangle in the coordinate system of the receiver. |
Definition at line 1911 of file CPTableView.j.
|
implementation |
Returns the index of the column with the specified identifier
anIdentifier | the string value of the tablecolumn identifier |
Definition at line 1255 of file CPTableView.j.
|
implementation |
Definition at line 4896 of file CPTableView.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 4543 of file CPTableView.j.
|
implementation |
Returns the cornerview for the scrollview
Definition at line 1642 of file CPTableView.j.
|
implementation |
Returns the object that provides the data displayed by the receiver.
Reimplemented in CPOutlineView.
Definition at line 590 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 315 of file CPTableView.j.
|
implementation |
Returns the delegate object for the table view.
Reimplemented in CPOutlineView.
Definition at line 2887 of file CPTableView.j.
|
implementation |
Deselects all rows and columns
Definition at line 1564 of file CPTableView.j.
|
implementation |
Definition at line 1587 of file CPTableView.j.
|
implementation |
Deselects the column at a given index
anIndex | the index of the column to deselect |
Definition at line 1500 of file CPTableView.j.
|
implementation |
Deselects a row at a given index
aRow | the row to deselect |
Definition at line 1513 of file CPTableView.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTableView(CPSynthesizedAccessors).
Definition at line 6426 of file CPTableView.j.
|
implementation |
Returns the double click action selector.
Definition at line 670 of file CPTableView.j.
|
implementation |
Provided by category CPTableView(TableViewDataSource).
Definition at line 5645 of file CPTableView.j.
|
implementation |
Definition at line 4905 of file CPTableView.j.
|
implementation |
Returns the tableview dragging destination feedback style.
Can be:
CPTableViewDraggingDestinationFeedbackStyleNone CPTableViewDraggingDestinationFeedbackStyleRegular CPTableViewDraggingDestinationFeedbackStyleSourceList
Definition at line 3244 of file CPTableView.j.
|
implementation |
Definition at line 4731 of file CPTableView.j.
|
implementation |
Definition at line 4698 of file CPTableView.j.
|
implementation |
Definition at line 4723 of file CPTableView.j.
|
implementation |
Definition at line 4828 of file CPTableView.j.
|
implementation |
Computes and returns an image to use for dragging. This method is invoked ONLY IF dragViewForRowsWithIndexes:tableColumns:event:offset: returns nil.
dragRows | an index set with the dragged row indexes |
theTableColumns | an array of the table columns which are being dragged |
dragEvent | the event which initiated the drag |
offset | a point at which to set the drag image to be offset from the cursor |
Definition at line 3057 of file CPTableView.j.
|
implementation |
Computes and returns a view to use for dragging. By default this is a slightly transparent copy of the dataviews which are being dragged. You can override this in a subclass to show different dragging feedback. Additionally you can return nil from this method and implement:
dragRows | an index set with the dragged row indexes |
theTableColumns | an array of the table columns which are being dragged |
dragEvent | the event which initiated the drag |
offset | a point at which to set the drag image to be offset from the cursor |
Definition at line 3074 of file CPTableView.j.
|
implementation |
Draws the background in a given clip rect. This method should only be overridden if you want something other than a solid color or alternating row colors.
setNeedsDisplay:
Definition at line 4015 of file CPTableView.j.
|
implementation |
Draws the grid for the tableview based on the set grid mask in a given clip rect.
Definition at line 4071 of file CPTableView.j.
|
implementation |
While this method doesn't do anything in Cappuccino, subclasses can override it to customize the appearance of a row.
tableView:willDisplayView:forTableColumn:row
is sent to the delegate before drawing Definition at line 4396 of file CPTableView.j.
|
implementation |
Edits the dataview at a given row and column. This method is usually invoked automatically and should rarely be invoked directly The row at supplied rowIndex must be selected otherwise an exception is thrown.
columnIndex | the index of the column to edit |
rowIndex | the index of the row to edit |
theEvent | the mouse event which triggers the edit, you can pass nil |
flag | YES if the dataview text should be selected, otherwise NO. (NOT YET IMPLEMENTED) |
Definition at line 5307 of file CPTableView.j.
|
implementation |
Returns the column of the currently edited cell, or CPNotFound if none.
Definition at line 5345 of file CPTableView.j.
|
implementation |
Returns the row of the currently edited cell, or CPNotFound if none.
Definition at line 5353 of file CPTableView.j.
|
implementation |
Archives the view to a coder.
aCoder | the object into which the view's data will be archived. |
Reimplemented from CPControl.
Reimplemented in CPOutlineView.
Provided by category CPTableView(CPCoding).
Definition at line 6159 of file CPTableView.j.
|
implementation |
Allows the enumeration of all the table views that are known to the table view.
handler | The function to apply to elements in the set. |
The function takes three arguments:
dataView | The view for the column and row. |
column | The column index of the view. |
row | The row index of the view. |
Definition at line 3833 of file CPTableView.j.
|
implementation |
Returns a CGRect of the exposed area of the tableview.
Definition at line 3380 of file CPTableView.j.
|
implementation |
Returns a rect for the dataview / cell at the column and row given. If the column or row index is greater than the number of columns or rows a CGZeroRect is returned
aColumn | index of the column |
aRow | index of the row |
Reimplemented in CPOutlineView.
Definition at line 2139 of file CPTableView.j.
|
implementation |
Definition at line 2077 of file CPTableView.j.
|
implementation |
Returns a CPColor object of set grid color
Definition at line 1043 of file CPTableView.j.
|
implementation |
Returns a grid mask
Definition at line 1066 of file CPTableView.j.
|
implementation |
Returns the headerview for the receiver. The headerview contains column headerviews for each table column.
Definition at line 1666 of file CPTableView.j.
|
implementation |
Returns the CPTableColumn object of the highlighted table column.
Definition at line 3011 of file CPTableView.j.
|
implementation |
Draws the selection with the set selection highlight style in a given clip rect. You can change the highlight style to a source list style gradient in setSelectionHighlightStyle:
setNeedsDisplay:
Definition at line 4149 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 5061 of file CPTableView.j.
|
implementation |
Initializes the view from an archive.
aCoder | the coder from which to initialize |
Reimplemented from CPControl.
Reimplemented in CPOutlineView.
Provided by category CPTableView(CPCoding).
Definition at line 6105 of file CPTableView.j.
|
implementation |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPControl.
Reimplemented in CPOutlineView.
Definition at line 353 of file CPTableView.j.
|
implementation |
Returns the intercell spacing in a CGSize object.
Definition at line 807 of file CPTableView.j.
|
implementation |
Returns YES if the column at a given index is selected, otherwise NO.
anIndex | the index of a column |
Definition at line 1543 of file CPTableView.j.
|
implementation |
Returns YES if the row at a given index is selected, otherwise NO.
aRow | the index of a row |
Definition at line 1554 of file CPTableView.j.
|
implementation |
Reimplemented in CPOutlineView.
Definition at line 5361 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 4405 of file CPTableView.j.
|
implementation |
Loads all the data and dataviews for the receiver.
Definition at line 3400 of file CPTableView.j.
|
implementation |
Definition at line 3689 of file CPTableView.j.
Reimplemented from CPView.
Definition at line 4506 of file CPTableView.j.
|
implementation |
Moves the column and heading at a given index to a new given index.
theColumnIndex | The current index of the column to move. |
theToIndex | The new index for the moved column. |
Definition at line 1215 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 5053 of file CPTableView.j.
|
implementation |
Informs the receiver that the rows specified in indexSet have changed height.
anIndexSet | an index set containing the indexes of the rows which changed height |
Definition at line 2449 of file CPTableView.j.
|
implementation |
Informs the receiver that the number of records in the datasource has changed.
Definition at line 2370 of file CPTableView.j.
|
implementation |
Returns the number of columns in the table
Definition at line 1601 of file CPTableView.j.
|
implementation |
Returns the number of rows in the receiver.
Definition at line 1609 of file CPTableView.j.
|
implementation |
Returns the number of selected columns
Definition at line 1524 of file CPTableView.j.
|
implementation |
Returns the number of selected columns
Definition at line 1532 of file CPTableView.j.
|
implementation |
Definition at line 5328 of file CPTableView.j.
|
implementation |
Definition at line 4881 of file CPTableView.j.
|
implementation |
Definition at line 3555 of file CPTableView.j.
|
implementation |
Definition at line 4869 of file CPTableView.j.
|
implementation |
Returns a CGRect with the location and size of the column If aColumnIndex lies outside the range of the table columns a CGZeroRect is returned
aColumnIndex | the index of the column to return the rect of |
Definition at line 1754 of file CPTableView.j.
|
implementation |
Returns a CGRect with the location and size of the row. CGRectZero is returned if aRowIndex doesn't exist.
aRowIndex | the index of the row you want the rect of |
Definition at line 1842 of file CPTableView.j.
|
implementation |
Reloads the data for visible data views.
Definition at line 599 of file CPTableView.j.
|
implementation |
Reloads the data for only the specified rows and columns.
rowIndexes | The indexes of the rows to update. |
columnIndexes | The indexes of the columns to update. |
Definition at line 609 of file CPTableView.j.
|
implementation |
Removes a given column from the receiver.
aTableColumn | The column to remove from the receiver. |
Reimplemented in CPOutlineView.
Definition at line 1106 of file CPTableView.j.
|
implementation |
Definition at line 5037 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 2157 of file CPTableView.j.
|
implementation |
Returns the index of a row at a particular point. If no row exists at that point -1 is returned.
aPoint | a CGPoint |
Definition at line 1995 of file CPTableView.j.
|
implementation |
Returns the index of the row for the specified view.
view | The view. |
Definition at line 2048 of file CPTableView.j.
|
implementation |
Returns the height of each row.
Definition at line 834 of file CPTableView.j.
|
implementation |
Returns a range of indices for the rows that lie wholly or partially within the vertical boundaries of a given rectangle.
aRect | A rectangle in the coordinate system of the receiver. |
Definition at line 1852 of file CPTableView.j.
|
implementation |
Scrolls the receiver and header view horizontally in an enclosing CPClipView so the column specified by columnIndex is visible.
aColumnIndex | the index of the column to scroll to. |
Definition at line 2513 of file CPTableView.j.
|
implementation |
Scrolls the receiver vertically in an enclosing CPClipView so the row specified by rowIndex is visible.
aRowIndex | the index of the row to scroll to. |
Definition at line 2497 of file CPTableView.j.
|
implementation |
Definition at line 1570 of file CPTableView.j.
|
implementation |
Sets the column selection using indexes.
columns | a CPIndexSet of columns to select |
aFlag | should extend the selection thereby retaining the previous selection |
Definition at line 1307 of file CPTableView.j.
|
implementation |
Returns the index of the last selected column.
Definition at line 1466 of file CPTableView.j.
|
implementation |
Returns an index set of all the selected columns.
Definition at line 1474 of file CPTableView.j.
|
implementation |
Returns the index of the last selected row.
Definition at line 1482 of file CPTableView.j.
|
implementation |
Returns an index set with the indexes of all the selected rows.
Definition at line 1490 of file CPTableView.j.
|
implementation |
Returns a dictionary of containing the keys:
CPSourceListGradient CPSourceListTopLineColor CPSourceListBottomLineColor
Definition at line 976 of file CPTableView.j.
|
implementation |
Returns the highlight color for a focused row or column selection.
Definition at line 935 of file CPTableView.j.
|
implementation |
Returns an enumerated value for the selection highlight style.
Valid values are:
CPTableViewSelectionHighlightStyleNone CPTableViewSelectionHighlightStyleRegular CPTableViewSelectionHighlightStyleSourceList
Definition at line 888 of file CPTableView.j.
|
implementation |
Sets the row selection using indexes.
rows | a CPIndexSet of rows to select |
aFlag | should extend the selection thereby retaining the previous selection |
Definition at line 1365 of file CPTableView.j.
|
implementation |
If you want to allow the user to reorder the columns pass YES, otherwise NO.
Definition at line 696 of file CPTableView.j.
|
implementation |
Passing YES will allow the user to resize columns. Passing NO will keep the table columns unmovable by the user.
Definition at line 713 of file CPTableView.j.
|
implementation |
Controls whether the user can select an entire column by clicking its header.
aFlag | YES to allow the user to select columns, otherwise NO. |
Definition at line 767 of file CPTableView.j.
|
implementation |
Controls whether the receiver allows zero rows or columns to be selected.
aFlag | YES if an empty selection is allowed, otherwise NO. |
Definition at line 749 of file CPTableView.j.
|
implementation |
Controls whether the user can select more than one row or column at a time.
aFlag | YES to allow the user to select multiple rows or columns, otherwise NO. |
Definition at line 730 of file CPTableView.j.
|
implementation |
Sets the colors for the rows as they alternate. The number of colors can be arbitrary. By default these colors are white and light blue.
anArray | an array of CPColors |
Definition at line 862 of file CPTableView.j.
|
implementation |
Set the name under which the table information is automatically saved to theAutosaveName. The table information is saved separately for each user and for each application that user uses.
setAutosaveTableColumns:
Definition at line 2531 of file CPTableView.j.
|
implementation |
Sets whether the order and width of this table view's columns are automatically saved.
The table information is saved separately for each user and for each application that user uses.
Definition at line 2556 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 3947 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 3957 of file CPTableView.j.
|
implementation |
Sets the column autoresizing style of the receiver to a given style.
aStyle | the column autoresizing style for the receiver. Valid values are: CPTableViewNoColumnAutoresizing CPTableViewUniformColumnAutoresizingStyle CPTableViewLastColumnOnlyAutoresizingStyle CPTableViewFirstColumnOnlyAutoresizingStyle |
Definition at line 2320 of file CPTableView.j.
|
implementation |
Sets the cornerview for the scrollview
Definition at line 1650 of file CPTableView.j.
|
implementation |
Sets the receiver's data source to a given object. The data source implements various methods for handling the tableview's data when bindings are not used.
anObject | The data source for the receiver. This object must implement numberOfRowsInTableView: and tableView:objectValueForTableColumn:row: These methods are outlined below. |
CPTableView generally requires a datasource to run. This data source can be thought of just like a delegate, but specifically for the tableview data. Methods include:
Returns the number of rows in the tableview
Returns the object value for each dataview. Each dataview will be sent a setObjectValue: method which will contain the object you return from this datasource method.
Sets the data object for an item in a given row and column. This needs to be implemented if you want inline editing support
The tableview will call this method if you click the tableheader. You should sort the datasource based off of the new sort descriptors and reload the data
Return the drag operation (move, copy, etc) that should be performed if a registered drag type is over the tableview The data source can retarget a drop if you want by calling
-(void)setDropRow:(CPInteger)aRow dropOperation:(CPTableViewDropOperation)anOperation;
Returns YES if the drop operation is allowed otherwise NO. This method is invoked by the tableview after a drag should begin, but before it is started. If you don't want the drag to being return NO. If you want the drag to begin you should return YES and place the drag data on the pboard.
Return YES if the operation was successful otherwise return NO. The data source should incorporate the data from the dragging pasteboard in this method implementation. To get this data use the draggingPasteboard method on the CPDraggingInfo object.
NOT YET IMPLEMENTED
Definition at line 547 of file CPTableView.j.
|
implementation |
Sets the delegate of the receiver.
aDelegate | the delegate object for the tableview. The delegate can provide notification for user interaction, display behaviour, contextual menus, and more. |
Returns the view used to display the specified row and column.
The | view to display the specified column and row. Returning nil is acceptable, and a view will not be shown at that location. |
This method is required if you wish to use a view-based table view in Interface builder or cell-based table views without using CPTableColumn's setDataView: method.
It is recommended that the implementation of this method first call the CPTableView method makeViewWithIdentifier:owner: passing, respectively, the tableColumn parameter’s identifier and self as the owner to attempt to reuse a view that is no longer visible. The frame of the view returned by this method is not important, and it will be automatically set by the table.
The view's properties should be properly set up before returning the result. The delegate do not need to implement tableview:objectValueforTableColumn:row:.
When using bindings, this method is optional if at least one identifier has been associated with the table view at design time. If this method is not implemented, the table will automatically call the CPTableView method makeViewWithIdentifier:owner: with the tableColumn parameter’s identifier and the table view’s delegate respectively as parameters, to attempt to reuse a previous view, or automatically unarchive a prototype associated with the table view.
The autoresizingMask of the returned view will automatically be set to CPViewNotSizable if the data view was created in Interface builder in a table column. Otherwise, for example if the view is created manually in code, this method expects the data view to have a CPViewNotSizable mask.
Called when the tableview is about to display a dataview
Group rows are a way to separate a groups of data in a tableview. Return YES if the given row is a group row, otherwise NO.
Return YES if the dataview at a given index and column should be edited, otherwise NO.
Return the height of the row at a given index. Only implement this if you want variable row heights. Otherwise use setRowHeight: on the tableview.
Return YES if the selection of the tableview should change, otherwise NO to keep the current selection.
Return YES if the row at a given index should be selected, other NO to deny the selection.
Return YES if the table column given should be selected, otherwise NO to deny the selection.
Informs the delegate that the tableview is in the process of changing the selection. This usually happens when the user is dragging their mouse across rows.
Informs the delegate that the tableview selection has changed.
Return YES if the column at a given index should move to a new column index, otherwise NO. When a column is initially dragged by the user, the delegate is first called with a newColumnIndex value of -1
Notifies the delegate that the tableview drag occurred. This is sent on mouse up.
Notifies the delegate that a table column was moved by the user.
Notifies the delegate that the user resized the table column
Sent when the user clicks a table column but doesn't drag.
Notify the delegate that the user has clicked the table header of a column.
Called when the user right-clicks on the tableview. -1 is passed for the row or column if the user doesn't right click on a real row or column Return a CPMenu that should be displayed if the user right-clicks. If you do not implement this the tableview will call super on menuForEvent
Called when the user presses the delete key. Many times you will want to delete data (or prompt for deletion) when the user presses the delete key. Your delegate can implement this method to avoid subclassing the tableview to add this behaviour.
Definition at line 2793 of file CPTableView.j.
|
implementation |
Synthesized accessor method.
Provided by category CPTableView(CPSynthesizedAccessors).
Definition at line 6434 of file CPTableView.j.
|
implementation |
Sets the message sent to the target when the user double-clicks an uneditable cell or a column header to a given selector.
aSelector | The message the receiver sends to its target when the user double-clicks an uneditable cell or a column header. |
Definition at line 662 of file CPTableView.j.
|
implementation |
Sets the feedback style for when the table is the destination of a drag operation. This style is used to determine how the tableview looks when it is the receiver of a drag and drop operation.
Can be:
CPTableViewDraggingDestinationFeedbackStyleNone CPTableViewDraggingDestinationFeedbackStyleRegular CPTableViewDraggingDestinationFeedbackStyleSourceList
Definition at line 3228 of file CPTableView.j.
|
implementation |
Sets the default operation mask for the drag behavior of the table view.
Definition at line 3191 of file CPTableView.j.
|
implementation |
This should be called inside tableView:validateDrop:... method either CPTableViewDropOn or CPTableViewDropAbove, Specify the row as -1 to select the whole table for drop on.
Definition at line 3202 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 3937 of file CPTableView.j.
|
implementation |
we override here because we have to adjust the header
Reimplemented from CPView.
Definition at line 3924 of file CPTableView.j.
|
implementation |
Sets the grid color in the non highlighted state.
aColor | a CPColor |
Definition at line 1033 of file CPTableView.j.
|
implementation |
Sets the grid style mask to specify if no grid lines, vertical grid lines, or horizontal grid lines should be displayed.
gridType | The grid style mask. CPTableViewGridNone, CPTableViewSolidVerticalGridLineMask, CPTableViewSolidHorizontalGridLineMask |
Definition at line 1053 of file CPTableView.j.
|
implementation |
Sets the headerview for the tableview. This is the container view for the table column header views. This view also handles events for resizing and dragging.
If you don't want your tableview to have a headerview you should pass nil. (also see setCornerView:) If you're looking to customize the header text of a column see CPTableColumn's -(CPView)headerView; method.
Definition at line 1679 of file CPTableView.j.
|
implementation |
Sets the table column for which the header should be highlighted.
Definition at line 3019 of file CPTableView.j.
|
implementation |
Sets the indicator image of aTableColumn to anImage. The tableview will set the sort indicator images automatically; if you want a different image you can supply it here.
anImage | the image for the column |
aTableColumn | the table column object for which to set the image |
Definition at line 2982 of file CPTableView.j.
|
implementation |
Sets the width and height between dataviews. This value is (3.0, 2.0) by default.
aSize | a CGSize object that defines the space between the cells |
Definition at line 788 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 3967 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 3978 of file CPTableView.j.
|
implementation |
Sets the height of each row.
aRowHeight | the height of each row |
Definition at line 818 of file CPTableView.j.
|
implementation |
Sets the highlight gradient for a row or column selection This is specific to the
aDictionary | a CPDictionary expects three keys to be set: CPSourceListGradient which is a CGGradient CPSourceListTopLineColor which is a CPColor CPSourceListBottomLineColor which is a CPColor |
Definition at line 962 of file CPTableView.j.
|
implementation |
Sets the highlight color for a row or column selection.
aColor | a CPColor |
Definition at line 923 of file CPTableView.j.
|
implementation |
Sets the selection highlight style to an enumerated value. This value can also affect the way the tableview draws feedback when the user is dragging.
Valid values are:
CPTableViewSelectionHighlightStyleNone CPTableViewSelectionHighlightStyleRegular CPTableViewSelectionHighlightStyleSourceList
Definition at line 904 of file CPTableView.j.
|
implementation |
Sets the table view's CPSortDescriptors objects in an array.
sortDescriptors | an array of sort descriptors. |
Definition at line 3294 of file CPTableView.j.
|
implementation |
Sets whether the receiver uses the standard alternating row colors for its background.
aFlag | YES to specify standard alternating row colors for the background, NO to specify a solid color. |
Definition at line 844 of file CPTableView.j.
|
implementation |
Sets whether vertical motion is treated as a drag or selection change to flag.
aFlag | if flag is NO then vertical motion will not start a drag. The default is YES. |
Definition at line 3254 of file CPTableView.j.
|
implementation |
Resizes the last column if there's room so the receiver fits exactly within its enclosing clip view.
Definition at line 2337 of file CPTableView.j.
|
implementation |
Returns an array of the current sort descriptors currently used by the table.
Definition at line 3335 of file CPTableView.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 4460 of file CPTableView.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 4630 of file CPTableView.j.
|
implementation |
Definition at line 4431 of file CPTableView.j.
|
implementation |
Definition at line 4442 of file CPTableView.j.
|
implementation |
Returns an array of CPTableColumns of all the receiver's columns.
Definition at line 1244 of file CPTableView.j.
|
implementation |
Returns the CPTableColumn object with the given identifier string.
anIdentifier | the string value of the identifier |
Definition at line 1273 of file CPTableView.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 323 of file CPTableView.j.
|
implementation |
Lays out the dataviews and resizes the tableview so that everything fits.
Definition at line 2458 of file CPTableView.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 4522 of file CPTableView.j.
|
implementation |
Returns YES if the receiver tracks the mouse outside the frame, otherwise NO.
Reimplemented from CPControl.
Definition at line 4452 of file CPTableView.j.
|
implementation |
Returns a dictionary of containing the keys:
CPSourceListGradient CPSourceListTopLineColor CPSourceListBottomLineColor
Definition at line 990 of file CPTableView.j.
|
implementation |
Returns the highlight color for an unfocused row or column selection.
Definition at line 943 of file CPTableView.j.
|
implementation |
Returns YES if the tableview uses alternating row background colors, otherwise NO.
Definition at line 852 of file CPTableView.j.
|
implementation |
Returns YES if vertical motion can begin a drag of the tableview, otherwise NO.
Definition at line 3262 of file CPTableView.j.
|
implementation |
Returns an instance of CPView
column | The index of the column in the tableColumn array |
row | The index of the row |
makeIfNecessary | YES if a view is required, NO if you want to update properties on a view, if one is available. |
This method first attempts to return an available view, which is generally in the visible area. If there is no available view, and makeIfNecessary is YES, a prepared temporary view is returned. If makeIfNecessary is NO, and the view is not available, nil will be returned.
An exception will be thrown if row is an invalid row index and if column is an invalid column index
Definition at line 3719 of file CPTableView.j.
|
implementation |
Reimplemented from CPView.
Definition at line 4413 of file CPTableView.j.
|
implementation |
Called when the receiver is about to be moved to a new window.
aWindow | the window to which the receiver will be moved. |
Reimplemented from CPView.
Definition at line 5116 of file CPTableView.j.
|
implementation |
Definition at line 4750 of file CPTableView.j.