function schema
% Defines properties for @tsnode class.
%
%   Author(s): James G. Owen
%   Copyright 1986-2002 The MathWorks, Inc. 
%   $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:36:30 $


% Register class (subclass)
p = findpackage('tsexplorer');
pparent = findpackage('explorer');
%c = schema.class(p, 'node',findclass(pparent,'node'));
c = schema.class(p, 'node');


%% Property definitions copied from explore.node. Cannot subclass
%% bacause of restrictive typing, e.g. Dialog must be a JComponent
p = schema.prop(c,'Dialog','MATLAB array');
p.AccessFlags.PublicSet = 'off';
p.AccessFlags.Serialize = 'off';
p.Description = 'Handle of the Java dialog associated with this node';
p = schema.prop(c,'HelpFile','string');
p.FactoryValue = fullfile(matlabroot, 'toolbox', 'matlab', 'timeseries', ...
                         '@tsexplorer', '@node','tshelp.htm');
schema.prop(c,'HelpDialog','MATLAB array');
p = schema.prop( c, 'Label', 'string' );
p.AccessFlags.PublicSet = 'on';
p.Description = 'Name of the node to be shown in the tree.';
p = schema.prop( c, 'AllowsChildren', 'bool' );
p.FactoryValue = false;
p.AccessFlags.PublicSet = 'off';
p.Description =  'Specifies whether the node is a leaf or folder.';
p = schema.prop( c, 'Editable', 'bool' );
p.FactoryValue = true;
p.AccessFlags.PublicSet = 'off';
p.Description = 'Specifies whether the node name is editable in the tree.';
p = schema.prop( c, 'Description', 'string' );
p.FactoryValue = '';
p.AccessFlags.PublicSet = 'on';
p.Description = 'Description of the node.';
p = schema.prop( c, 'Fields', 'MATLAB array' );
p.FactoryValue = [];
p.AccessFlags.PublicSet = 'on';
p.Description = 'User structure for storing node specific data.';
p = schema.prop( c, 'Icon', 'string' );
p.AccessFlags.PublicSet = 'off';
p.Description = 'Name of the image file containing the node icon.';
p = schema.prop( c, 'Status', 'string' );
p.FactoryValue =  '';
p.AccessFlags.PublicSet = 'on';
p.Description = 'Status string shown when this node is selected in the tree.';

% ---------------------------------------------------------------------------- %
p = schema.prop( c, 'Handles', 'MATLAB array' );
p.AccessFlags.PublicSet = 'off';
p.AccessFlags.Serialize = 'off';
p.Description = 'Structure for storing node specific Java handles.';

p = schema.prop( c, 'Listeners', 'handle vector' );
%p.AccessFlags.PublicGet = 'off';
%p.AccessFlags.PublicSet = 'off';
p.AccessFlags.Serialize = 'off';
p.Description = 'Handles of general purpose listeners.';

p = schema.prop( c, 'TreeListeners', 'handle vector' );
%p.AccessFlags.PublicGet = 'off';
%p.AccessFlags.PublicSet = 'off';
p.AccessFlags.Serialize = 'off';
p.Description = 'Handles of tree node related listeners.';
p = schema.prop( c, 'PopupMenu', 'MATLAB array' );
p.AccessFlags.PublicSet = 'off';
p.AccessFlags.Serialize = 'off';
p.Description = 'Handle of the popup menu associated with this node.';
p = schema.prop( c, 'TreeNode', 'MATLAB array' );
%p.AccessFlags.PublicSet = 'off';
%p.AccessFlags.Serialize = 'off';
p.Description = 'Handle of the Java tree node';






