Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

DataBrowser Class Reference

Inheritance diagram for DataBrowser:

Inheritance graph
[legend]
Collaboration diagram for DataBrowser:

Collaboration graph
[legend]
List of all members.

Detailed Description

DataBrowser - Abstract base class for tabbed panes containing a top frame of buttons and a center table

Rules for subclassing:

Author:
Dietmar Dreyer (see also AUTHORS and THANKS for more)
Id
databrowser.tcl,v 1.13 2004/10/11 13:50:06 micha Exp

Definition at line 46 of file databrowser.tcl.

Public Member Functions

 getCData (TclString id)
 getSelection ()
 refreshid (TclString id)
 setIndexedSelection (TclList args)
 setSelection (TclList args)

Protected Member Functions

 _browse_action (TclWidget w)
 _keypress_action (TclWidget w, TclKeyBinding k)
 _motion_action (TclWidget w, TclNumber x, TclNumber y)
 _return_action ()
 _rowtag (TclNumber row)
 _setCount (TclNumber n)
 init_data ()
 refreshrow (TclNumber row, TclString item)

Protected Attributes

TclString _idColumnIndex = ""
TclString _selection = ""

Private Member Functions

 _evalSelectionPatterns ()
 _getMatchingRows (TclString regex, TclString varnameListIDs, TclString varnameMapIDs)
 DataBrowser (TclList args)

Private Attributes

TclString _prefix = ""


Constructor & Destructor Documentation

DataBrowser::DataBrowser TclList  args  )  [private]
 

A DataBrowser constructor.

Parameters:
args arguments passed to itk_initialize
Definition at line 99 of file databrowser.tcl.


Member Function Documentation

DataBrowser::_browse_action TclWidget  w  )  [protected]
 

browse slot. This method adjusts the selected file in AllFiles::_selection.

Parameters:
w the widget bound to this slot.
Definition at line 189 of file databrowser.tcl.

DataBrowser::_evalSelectionPatterns  )  [private]
 

Evaluates input to the entry field as a list of regular expressions and matches them against all IDs in order to return a list of matching IDs Definition at line 258 of file databrowser.tcl.

DataBrowser::_getMatchingRows TclString  regex,
TclString  varnameListIDs,
TclString  varnameMapIDs
[private]
 

Returns a list of all row indices matching 'regex' in the ID column

Parameters:
regex regular expression string
varnameListIDs in-out-parameter, name of local variable to append matching IDs
varnameMapIDs in-out-parameter, name of local array-variable to insert matching IDs in order to prohibit duplicate selection entries in entry field
Definition at line 217 of file databrowser.tcl.

DataBrowser::_keypress_action TclWidget  a,
TclKeyBinding  k
[protected]
 

React to a keypress into the table.

Keys typed by the user are collected into a string, and the row whose id matches that string is selected. Definition at line 421 of file databrowser.tcl.

DataBrowser::_motion_action TclWidget  w,
TclNumber  x,
TclNumber  y
[protected]
 

Default motion slot.

Parameters:
w the widget where the motion was detected
x the x coords of the mouse
y the y coords of the mouse

Reimplemented in AllFiles.

Definition at line 390 of file databrowser.tcl.

References refreshid().

DataBrowser::_return_action  )  [protected]
 

actions to take place on pressing return in the entryfield.

Definition at line 244 of file databrowser.tcl.

DataBrowser::_rowtag TclNumber  row  )  [protected]
 

colorize the table rows This method is a callback configured to the table in order to colorize the rows. Definition at line 361 of file databrowser.tcl.

DataBrowser::_setCount TclNumber  n  )  [protected]
 

display the count-label. This number should reflect the number of items selected

Parameters:
n the number to be set
Definition at line 375 of file databrowser.tcl.

DataBrowser::getCData TclString  id  ) 
 

abstract methods for retrieving the relevant C or Tcl data values for a given ID

Reimplemented in AllConstraints, AllLexemes, AllNetworks, AllParses, and AllWordgraphs.

DataBrowser::getSelection  ) 
 

return a list of selected ids

Definition at line 292 of file databrowser.tcl.

References setSelection().

DataBrowser::refreshid TclString  id  ) 
 

refresh the displayed data for a specific ID

Definition at line 398 of file databrowser.tcl.

Referenced by _motion_action().

DataBrowser::refreshrow TclNumber  row,
TclString  item
[protected]
 

abstract method called in refreshid

Reimplemented in AllWordgraphs.

DataBrowser::setIndexedSelection TclList  args  ) 
 

Select one or more rows. A previous selection is cleared; without arguemnts, removes all selections.

ARGS is a list of row indices. Definition at line 332 of file databrowser.tcl.

DataBrowser::setSelection TclList  args  ) 
 

Select one or more rows. A previous selection is cleared; without arguemnts, removes all selections.

ARGS must be a list of strings without spaces in them. Definition at line 304 of file databrowser.tcl.

Referenced by getSelection().


Member Data Documentation

TclString DataBrowser::_idColumnIndex = "" [protected]
 

column index of table that contains selectable ids (used in _browse_action)

Definition at line 87 of file databrowser.tcl.

TclString DataBrowser::_selection = "" [protected]
 

string of current selected row ids

Definition at line 84 of file databrowser.tcl.


The documentation for this class was generated from the following file:
XCDG 0.95 (20 Oct 2004)