www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@infoPane/infoPane.m
function obj = infoPane(varargin) %INFOPANE Constructor for infoPane % % OBJ = INFOPANE(PROP, VAL, ...) creates a new infoPane object. This % component displays a list of property-value data with optional column % titles. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if length(varargin) && isa(varargin{1}, 'xregGui.infoPane') obj = varargin{1}; varargin(1) = []; else obj = xregGui.infoPane; end % Call super-class constructor Peer = com.mathworks.toolbox.mbc.gui.peer.PropertyTablePeer; obj.javacomponent(Peer, varargin{:}); Peer.setPropertyData(obj.ListText); if isempty(obj.TitleText) Peer.setDisplayColumnHeaders(false); else Peer.setTitleStrings(obj.TitleText{1}, obj.TitleText{2}); Peer.setDisplayColumnHeaders(true); end Peer.setSplitPosition(obj.SplitPosition); obj.pSetupList;