File tag/Browser


class tag.BrowserDelegate

Inherits

Behaviour supers
tom.All

instance tag.BrowserDelegate

Inherits

Behaviour supers
tom.All

methods

boolean
              browser Browser browser
  createRowsForColumn int column
             inMatrix Matrix matrix;
Either fill the column of the browser in the matrix and return TRUE, or return FALSE. The default implementation returns false.

boolean
        browser Browser browser
  isColumnValid int column;
Return TRUE if the column of the browser is valid. Queried in response to a validateVisibleColumns. The default implementation returns TRUE.

int
               browser Browser browser
  numberOfRowsInColumn int column;
Return the number of rows in the column of the browser. This method is invoked is browser createRowsForColumn inMatrix returned FALSE (and did not fill the matrix. The default implementation returns 0.

tom.String
        browser Browser browser
  titleOfColumn int column;
Return the title to display above the column. The default implementation returns nil, which is suitable only for untitled browsers.

void
          browser Browser browser
  willDisplayCell BrowserCell cell
               at (int, int) (row, column);
Be informed that the browser will display the cell at row in the column. If the delegate did not preload all cells in the column, now is the time to load this cell.


class tag.Browser

Inherits

State supers
Control, MatrixDelegate

variables

redeclare class (BrowserCell) cell_class;
Our cell_class should resemble a BrowserCell.
const BOUNDARIES = 2.0;
The default distance between all elements of a Browser.

methods

void
  load tom.Array arguments;
Set the cell_class to BrowserCell.

instance tag.Browser

variables

tom.MutableIndexed titles;
The titles of the loaded columns. If this is nil, no titles are displayed.
tom.MutableIndexed matrices;
The matrices (instances of the Matrix class) in the loaded columns.
tom.MutableIndexed scroll_views;
The scrollviews used to show the visible columns.
Scroller scroller;
The horizontal scroller employed to change the visible columns.
int num_visible_columns;
The number of visible columns.
int first_column;
The index of the first visible column.
int last_column;
The index of the last column. The matrix in this column is the one (most often) manipulated by the delegate.
public mutable float min_column_width;
The minimum column width. When resizing, the number of columns is changed such that each of the columns is not narrower than this. If this is 0, the number of visible columns will not change.
boolean fully_loaded;
Iff TRUE the last_column has been loaded.
public mutable BrowserDelegate delegate;
The delegate of this browser.

methods

id
  initFrame (float, float, float, float) (x, y, w, h);
Designnated initializer.

void
  display (float, float, float, float) (x, y, w, h);
Undocumented.

void
  drawSelf (float, float, float, float) (x, y, w, h);
Do nothing.

void
  noteChange tom.All sender;
Undocumented.

protected void
  reconfigure;
Handle a change in the number of visible columns.

void
  setFrame (float, float, float, float) (x, y, w, h);
Rearrange the columns, possibly removing or creating some.

void
  sizeTo (float, float) (x, y);
Rearrange the columns, possibly removing or creating some.

void
  superviewSizeChanged (float, float) (so_w, so_h);
Undocumented.

MatrixDelegate

void
           matrix Matrix matrix
  willDisplayCell BrowserCell cell
               at (int, int) (row, column);
Ensure the cell has been loaded.

void
  encodeUsingCoder tom.Encoder coder;

Archiving

void
  initWithCoder tom.Decoder coder;
Undocumented.


Generated by tm 1.01.