www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@scrollTable/scrollTable.m
function [ obj ] = scrollTable( varargin ) %SCROLLTABLE Constructor for scrollTable object % % H = SCROLLTABLE(PROP1, VAL1, ...) % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin && isa(varargin{1}, 'mbcwidgets.scrollTable') obj = varargin{1}; varargin(1) = []; else obj = mbcwidgets.scrollTable; end obj.abstractcomponent(varargin{:}); if obj.MaximumObjectCacheSize>0 obj.doUpdateCacheSizes; end obj.updateDataFlag; obj.updateRealSize; obj.CurrentRow = max(min(obj.CurrentRow, obj.ScrollRowLimits(2)), obj.ScrollRowLimits(1)); obj.CurrentColumn = max(min(obj.CurrentColumn, obj.ScrollColumnLimits(2)), obj.ScrollColumnLimits(1)); obj.doSetupBaseClass; if obj.canPaint obj.updateToLiveState; end