function c=attribute(c,varargin)
%ATTRIBUTE creates options page

%   Copyright (c) 1997-2000 by The MathWorks, Inc.
%   $Revision: 1.8 $  $Date: 2000/03/23 19:35:36 $

c=attribute(rptproptable,c,varargin{:});

switch varargin{1} % action
case {'start','Update', 'refresh'}
   if ~rgsf('is_parent_valid', c )
      set( c.x.title, 'String', 'Stateflow Property Table' );
      [validity, errMsg] = rgsf( 'is_parent_valid', c );
      statbar(c, sprintf('Error: this component %s', xlate(errMsg)) ,1);
   else
      parent = rgsf( 'get_sf_parent', c ); %if we got here, parent may not be empty
      objType=[upper(parent.att.typeString(1)) parent.att.typeString(2:end)];
      set( c.x.title, 'String',[objType ' Property Table '] );
	   statbar(c, '', 0);
   end  
otherwise
end