www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@setupUI/refresh.m
function refresh(obj) %REFRESH Force a refresh of the UI % % REFRESH(OBJ) forces a refresh of the GUI. % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. obj.TableSetup.refresh; obj.ModelSetup.refresh; % Update menu enable status pTO = obj.Tradeoff; if ~isempty(pTO) menus = [obj.hChangeFillMenu; ... obj.hRemoveTableMenu]; buttons = [obj.hChangeFillButton; ... obj.hRemoveTableButton]; if pTO.numTables>0 set(menus, 'Enable', 'on'); set(buttons, 'Enable', 'on'); else set(menus, 'Enable', 'off'); set(buttons, 'Enable', 'off'); end end