www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@tradeoffMessageService/hasData.m

    function ret = hasData(obj)
%HASDATA Check whether the MessageService contains viewable data
%
%  RET = HASDATA(OBJ) returns true if the MessagerService object contains
%  a data object that can provide any viewing data.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


ret = ~isempty(obj.CurrentTradeoff) ...
    && ~isempty(obj.CurrentTable) ...
    && (obj.hasValidListIndex || obj.hasValidTableIndex);