Recipe 9.17 Enabling and Disabling Table Items

     

9.17.1 Problem

You want to gray out table items so that they can't be selected.

9.17.2 Solution

Use the table item's setGrayed method.

9.17.3 Discussion

To gray out a table item, call that item's setGrayed method with a value of true ; to enable the item again, pass the setGrayed method a value of false .



Eclipse Cookbook
Inside XML (Inside (New Riders))
ISBN: 596007108
EAN: 2147483647
Year: 2006
Pages: 232
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net