How to select a table row rather than cell?
2 ビュー (過去 30 日間)
古いコメントを表示
I have a list of objects with multiple identifying parameters to present to the user for selection (one or more).
My 2 choices seem to be:
- Present as a list which means format the parameters into a line, then parse the selection
- Present as a table, where alignment and separation of parameters is easy but I can't figure out how to select a whole row (signifying the object) rather than a cell (signifying a parameter).
This comes up several times in this project so I prefer the Table method but can live with the List method.
I found a news group article that uses findjobj to get the underlying JTable but that function doesn't seem to be in R2011b.
I can't seem to find a way to do any of the following:
- Use GUIDE to say I only want to select rows
- On the select call back, select all the columns in that row
- Get a handle to the underlying JTable to call setColumnSelectionAllowed(false) and setRowSelectionAllowed(true)
- Think of another mystic incantation to do this.
Any help is greatly appreciated.
Joe
0 件のコメント
回答 (1 件)
Walter Roberson
2012 年 2 月 1 日
findjobj() is a MATLAB File Exchange contribution; see http://www.mathworks.com/matlabcentral/fileexchange/14317
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!