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

Protected Properties

Property groupTable
 Browse a grouped list by group and mnemonic. More...
 
Property mnemonicTable
 the uitable for mnemonic names
 
Property editField
 uicontrol for editing the current item
 
Property currentGroup
 the value of the currently selected group
 
Property currentMnemonic
 the value of the currently selected mnemonic
 
self mnemonicTable
 new table for mnemonics
 
- 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 topsGroupedListPanel (varargin)
 Make a new panel in the given figure. More...
 
 selectGroup (self, table, event)
 Set the current list group from a selected table cell. More...
 
 selectMnemonic (self, table, event)
 Set the current list mnemonic from a selected table cell. More...
 
 editItem (self, editField, event)
 Edit currentItem based on user-entered text. 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.
 
- 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

◆ topsGroupedListPanel()

self topsGroupedListPanel ( varargin  )

Make a new panel in the given figure.

Parameters
parentFiguretopsFigure to work with

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

Methods

◆ selectGroup()

selectGroup ( self  ,
table  ,
event   
)

Set the current list group from a selected table cell.

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

Sets currentGroup and the current item for the parent figure, based on the selected cell in a uitable.

◆ selectMnemonic()

selectMnemonic ( self  ,
table  ,
event   
)

Set the current list mnemonic from a selected table cell.

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

Sets currentMnemonic and the current item for the parent figure, based on the selected cell in a uitable.

◆ editItem()

editItem ( self  ,
editField  ,
event   
)

Edit currentItem based on user-entered text.

Parameters
editFielduicontrol edit field which contains new text
eventstruct of data about the edit event

Invokes eval() on the text contained in editField. If eval() succeeds, replaces the item selected item in groupedList, based on currentGroup and currentMnemonic. Also sets the current item of the parent figure, using the new value.

Properties and Events

◆ groupTable

Property groupTable
protected

Browse a grouped list by group and mnemonic.

topsGroupedListPanel shows all of the group names for a topsGroupedList, and all the mnemonic names for one group at a time. The user can view and select one group and one mnemonic. Each selection updates the "current item" of a Tower of Psych GUI. the uitable for group names


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