<@doc alias="or" hierarchy="GMLDOM"> A composite state where exactly one of the constituent elements is visible at any point in time. (c) SAP AG 2003-2006. All rights reserved. /////////////////////////////////////////////////////////////////////// // CLASS HEADER Class StateOR inherit CompositeState; attach StateOrLayout; metadata title = '#TEXT[XTIT_OR_STATE]'; metadata descr = '#TEXT[XTOL_OR_STATE]'; metadata icon16 = '#URL[~res:skins.neutral.symbols.stateOR16.gif]'; metadata icon32 = '#URL[~res:skins.neutral.symbols.stateOR32.gif]'; metadata namestem = 'OR'; <@doc>Defines toolbar that can be shown for this StateOR, if any. strong property toolbar = ^Toolbar; <@doc>Indicates whether to show the title bar, if applicable property showTitlebar = false; <@doc> Indicates whether to show the toolbar, if applicable Event if this property is ~false, the @toolbar property can have valid toolbar defintion. In such case, the toolbar will not be displayed. property showToolbar = false; /////////////////////////////////////////////////////////////////////// // METHODS override method onCreate() this.supercall(); this.createElement('core.gml:Toolbar', 'toolbar'); end // // AP6: For AP5 model compatibitily - if there's no toolbar - create one. // NOTE: If this will be handled by a migration step - remove this method // override method onLoad() this.supercall(); if (this.toolbar == null) this.createElement('core.gml:Toolbar', 'toolbar'); end