MasterScan  Lab_Matlab_control Master Branch
List of all members | Protected Properties | Methods | Protected Methods
topsTablePanel Class Reference
Inheritance diagram for topsTablePanel:
Inheritance graph
[legend]

Protected Properties

Property table
 Browse a cell, struct, or object array with a 2D table. More...
 
Property tableMap
 map from table cells back to baseItem elements
 
- Protected Properties inherited from topsPanel
Property parentFigure
 the topsFigure that holds this panel
 
Property pan
 the Matlab uipanel
 
Property currentItem
 the "current item" in use in the GUI
 
Property currentItemName
 name to give the "current item"
 
Property baseItem
 the item this panel is representing
 
Property baseItemName
 name to give baseItem
 

Methods

self topsTablePanel (varargin)
 Make a new panel in the given figure. More...
 
 selectItem (self, table, event)
 Set the GUI current item from a table cell selection. More...
 
- Methods inherited from topsPanel
self topsPanel (parentFigure)
 Make a new panel in the given figure. More...
 
 delete (self)
 Clear references to graphics and handle objects.
 
 setBaseItem (self, baseItem, baseItemName)
 Choose the item to represent. More...
 
 setCurrentItem (self, currentItem, currentItemName)
 Choose the current item. More...
 
 refresh (self)
 Refresh the panel's contents.
 

Protected Methods

 initialize (self)
 Create and arrange fresh components.
 
 updateContents (self)
 Refresh the panel's contents.
 
- Protected Methods inherited from topsPanel
 initialize (self)
 Create and arrange fresh components.
 
 updateContents (self)
 Update the panel's contents (used internally)
 
item subItemFromPath (self, subPath)
 Get an item referenced below baseItem. More...
 

Additional Inherited Members

- Properties and Events inherited from topsPanel
Property isLocked = false
 The bottom-level container for Tower of Psych GUIs. More...
 
Property isBaseItemTitle = false
 whether to show a title for baseItem
 

Constructor

◆ topsTablePanel()

self topsTablePanel ( varargin  )

Make a new panel in the given figure.

Parameters
parentFiguretopsFigure to work with

Creates a new topsTablePanel. parentFigure must be a topsFigure object, otherwise the panel won't display any content.

Methods

◆ selectItem()

selectItem ( self  ,
table  ,
event   
)

Set the GUI current item from a table cell selection.

Parameters
tableuitable object making the selection
eventstruct of data about the selection event

Follows tableMap to get a single value out of baseItem and updates the parent figure's current item with this value.

Properties and Events

◆ table

Property table
protected

Browse a cell, struct, or object array with a 2D table.

topsTablePanel summarizes a cell array, struct array, or object array with a 2D table. The user can view and select a table cell to updatee the "current item" of a Tower of Psych GUI. the uitable for cell, struct, or object array data


The documentation for this class was generated from the following file: