123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831 |
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: Viewer
- *| (C) Copyright IBM Corp. 2001, 2011
- *|
- *| US Government Users Restricted Rights - Use, duplication or
- *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- *|
- *+------------------------------------------------------------------------+
- */
- /*-----------------------------------------------------------------------------------------------------
- Class : CMenuItem
- Description :
- -----------------------------------------------------------------------------------------------------*/
- var theMenuCnt = 1;
- function CMenuItem(parent, label, action, iconPath, style) {
- this.m_label = label;
- this.m_id = label + theMenuCnt++;
- this.m_bVisible = true;
- this.m_bEnabled = true;
- this.m_action = action;
- this.m_icon = new CIcon(iconPath);
- this.m_parent = parent;
- this.m_menu = null;
- this.m_menuType='';
- this.m_style = style;
- this.m_observers = new CObserver(this);
- //skin folder
- this.m_sSkin = (typeof getPromptSkin != "undefined" ? getPromptSkin() : "../skins/corporate");
- if(typeof this.m_parent == "object" && typeof this.m_parent.add == "function") {
- this.m_parent.add(this);
- }
- }
- function CMenuItem_getId() {
- return this.m_id;
- }
- function CMenuItem_getObservers() {
- return this.m_observers;
- }
- function CMenuItem_setParent(parent) {
- this.m_parent = parent;
- }
- function CMenuItem_getParent() {
- return this.m_parent;
- }
- function CMenuItem_draw() {
- var html = '<div>';
- var bSiblingContainsIcon = false, siblingCount = null, siblingMenuItem = null, siblingIdx = 0;
- if(this.m_menu == null || this.m_menuType=='dropDown') {
- html += '<table';
- if (this.isEnabled()) {
- html += ' tabIndex="0" hideFocus="true" accessKey="1"';
- }
- html += ' width="100%" ';
- html += 'class="';
- if(typeof this.getStyle() == "object") {
- if(this.isEnabled()) {
- html += this.getStyle().getNormalState();
- }
- else {
- html += this.getStyle().getDisabledState();
- }
- }
- html += '" id="';
- html += this.getId();
- html += '" cellpadding="0" cellspacing="0" style="margin-bottom:1px;"><tr>';
- html += '<td';
- bSiblingContainsIcon = false;
- if(this.m_icon.getPath() == '') {
- siblingCount = this.m_parent.getNumItems();
- for(siblingIdx = 0; siblingIdx < siblingCount; ++siblingIdx) {
- siblingMenuItem = this.m_parent.get(siblingIdx);
- if(typeof siblingMenuItem.getIcon == "function" && siblingMenuItem.getIcon().getPath()) {
- // temporary for now to get alignment working on the context menu.
- bSiblingContainsIcon = true;
- break;
- }
- }
- }
- if(bSiblingContainsIcon || this.m_icon.getPath() != '') {
- html += ' width="16" style="padding-right: 3px"';
- } else {
- html += ' width="1"';
- }
- html += '>';
- if(bSiblingContainsIcon) {
- html += '<img src="../common/images/spacer.gif" width="16"/>';
- }
- else {
- html += this.m_icon.draw();
- }
- html += '</td>';
- html += '<td nowrap="nowrap" align="left">';
- html += this.m_label;
- html += '</td>';
- if(this.m_menuType=='dropDown')
- {
- html += '<td width="10%" align="right">';
- html += '<img src="' + this.m_sSkin + '/viewer/images/dropdown.gif" WIDTH="13" HEIGHT="13"/>';
- html += '</td>';
- }
- html += '</tr></table></div>';
- } else {
- html += '<table';
- if (this.isEnabled()) {
- html += ' tabIndex="0" hideFocus="true" accessKey="1"';
- }
- html += ' width="100%" class="';
- if(typeof this.getStyle() == "object") {
- if(this.isEnabled()) {
- html += this.getStyle().getNormalState();
- }
- else {
- html += this.getStyle().getDisabledState();
- }
- }
- html += '" id="';
- html += this.getId();
- html += '"><tr>';
- html += '<td';
- bSiblingContainsIcon = false;
- if(this.m_icon.getPath() == '') {
- siblingCount = this.m_parent.getNumItems();
- for(siblingIdx = 0; siblingIdx < siblingCount; ++siblingIdx) {
- siblingMenuItem = this.m_parent.get(siblingIdx);
- if(typeof siblingMenuItem.getIcon == "function" && siblingMenuItem.getIcon().getPath()) {
- // temporary for now to get alignment working on the context menu.
- bSiblingContainsIcon = true;
- break;
- }
- }
- }
- if(bSiblingContainsIcon || this.m_icon.getPath() != '') {
- html += ' width="16" style="padding-right: 3px">';
- } else {
- html += ' width="1">';
- }
- html += this.m_icon.draw();
- html += '</td>';
- html += '<td nowrap="nowrap" align="left">';
- html += this.m_label;
- html += '</td>';
- html += '<td width="10%" align="right">';
- html += '<img src="' + this.m_sSkin + '/viewer/images/menu_expand.gif" WIDTH="13" HEIGHT="13"/>';
- html += '</td>';
- html += '</tr></table>';
- html += '</div>';
- }
- return html;
- }
- function CMenuItem_onmouseover(evt) {
- //get the event in a cross-browser fashion
- evt = (evt) ? evt : ((event) ? event : null);
- // get the menu item from the html element which is handling the event
- var menuItem = null;
- if(typeof this.menuItem != 'undefined') {
- menuItem = this.menuItem;
- }
- else if (this instanceof CMenuItem) {
- menuItem = this;
- }
- if(menuItem == null || !(menuItem instanceof CMenuItem) || !menuItem.isEnabled()) {
- return;
- }
- if(typeof menuItem.getStyle() == "object") {
- this.className = menuItem.getStyle().getRolloverState();
- }
- var menu = menuItem.getMenu();
- if(menu != null) {
- var pageWidth = 0;
- var pageHeight = 0;
- if(typeof window.innerWidth != "undefined") {
- pageWidth = window.innerWidth;
- }
- else {
- pageWidth = document.body.clientWidth;
- }
- if(typeof window.innerHeight != "undefined") {
- pageHeight = window.innerHeight;
- }
- else {
- pageHeight = document.body.clientHeight;
- }
- if(menuItem.getMenuType() == 'cascaded') {
- if(menu.isVisible() == false) {
- menu.setHTMLContainer(document.all ? this.document.body : this.ownerDocument.body);
- menu.draw();
- menu.show();
- }
- } else if(menuItem.getMenuType() == 'dropDown') {
- // check with the parent to see if there current are menus open. If there are, we'll automatically open this menu
- var menuItemParent = menuItem.getParent();
- var numOfItems = menuItemParent.getNumItems();
- for(var i = 0; i < numOfItems; ++i) {
- var currentItem = menuItemParent.get(i);
- if(currentItem != menuItem && typeof currentItem.getMenu == "function") {
- var oCurrentMenu = currentItem.getMenu();
- if (oCurrentMenu && oCurrentMenu.isVisible()) {
- // the user clicked on the menu
- menu.setHTMLContainer(document.all ? this.document.body : this.ownerDocument.body);
- menu.draw();
- menu.show();
- break;
- }
- }
- }
- }
- }
- // send the message up to our parent
- var oMenuParent = menuItem.getParent();
- if(oMenuParent && typeof oMenuParent.onmouseover == "function") {
- oMenuParent.onmouseover(evt);
- }
- // notify our observers of this event
- menuItem.getObservers().notify(CMenuItem_onmouseover);
- }
- function CMenuItem_onfocus(evt) {
- //get the event in a cross-browser fashion
- evt = (evt) ? evt : ((event) ? event : null);
- // get the menu item from the html element which is handling the event
- var menuItem = null;
- if(typeof this.menuItem != 'undefined') {
- menuItem = this.menuItem;
- }
- else if (this instanceof CMenuItem) {
- menuItem = this;
- }
- if(menuItem == null || !(menuItem instanceof CMenuItem) || !menuItem.isEnabled()) {
- return;
- }
- if(typeof menuItem.getStyle() == "object") {
- this.className = menuItem.getStyle().getRolloverState();
- }
- // send the message up to our parent (a fake mouseover)
- var oParent = menuItem.getParent();
- if(oParent && typeof oParent.onmouseover == "function") {
- oParent.onmouseover(evt);
- }
- // notify our observers of this event
- menuItem.getObservers().notify(CMenuItem_onfocus);
- }
- function CMenuItem_onmouseout(evt) {
- //get the event in a cross-browser fashion
- evt = (evt) ? evt : ((event) ? event : null);
- var menuItem = null;
- if(typeof this.menuItem != 'undefined') {
- menuItem = this.menuItem;
- }
- else if (this instanceof CMenuItem) {
- menuItem = this;
- }
- // get the menu item from the html element which is handling the event
- if(menuItem == null || !(menuItem instanceof CMenuItem) || !menuItem.isEnabled()) {
- return;
- }
- if(typeof menuItem.getStyle() == "object") {
- this.className = menuItem.getStyle().getNormalState();
- }
- // send the message up to our parent
- var oParent = menuItem.getParent();
- if(oParent && typeof oParent.onmouseout == "function") {
- oParent.onmouseout(evt);
- }
- // notify our observers of this event
- menuItem.getObservers().notify(CMenuItem_onmouseout);
- }
- function CMenuItem_onmouseup(evt) {
- //get the event in a cross-browser fashion
- evt = (evt) ? evt : ((event) ? event : null);
- var menuItem = null;
- if(typeof this.menuItem != 'undefined') {
- menuItem = this.menuItem;
- }
- else if (this instanceof CMenuItem) {
- menuItem = this;
- }
- if(menuItem != null && menuItem instanceof CMenuItem) {
- if(!menuItem.isEnabled()) {
- return;
- }
- if(menuItem.getMenu() != null) {
- if(menuItem.getMenuType() == 'cascaded') {
- // do nothing for now
- } else if(menuItem.getMenuType() == 'dropDown')
- {
- var menu = menuItem.getMenu();
- if(menu.isVisible() == false)
- {
- // the user clicked on the menu
- menu.setHTMLContainer(document.all ? this.document.body : this.ownerDocument.body);
- menu.draw();
- menu.show();
- } else {
- menu.remove();
- }
- }
- } else {
- // handle the event
- eval(menuItem.getAction());
- }
- if (typeof getReportFrame != "undefined") {
- getReportFrame().clearTextSelection();
- }
- else if (typeof clearTextSelection != "undefined") {
- clearTextSelection();
- }
- // send the message up to our parent
- var oParent = menuItem.getParent();
- if(oParent && typeof oParent.onmouseup == "function") {
- oParent.onmouseup(evt);
- }
- // notify our observers of this event
- if(menuItem.getMenuType() != 'cascaded') {
- menuItem.getObservers().notify(CMenuItem_onmouseup);
- }
- if(typeof this.menuItem != 'undefined' && menuItem.getMenu()!=null && menuItem.getMenuType()=='cascaded' && menuItem.getAction() != '')
- {
- // handle the event
- eval(menuItem.getAction());
- }
- }
- if(evt != null) {
- evt.cancelBubble = true;
- }
- return false;
- }
- function CMenuItem_onkeydown(evt) {
- //get the event in a cross-browser fashion
- evt = (evt) ? evt : ((event) ? event : null);
- var menuItem = null;
- if(typeof this.menuItem != 'undefined') {
- menuItem = this.menuItem;
- }
- else if (this instanceof CMenuItem) {
- menuItem = this;
- }
- if(menuItem == null || !(menuItem instanceof CMenuItem) || !menuItem.isEnabled() || typeof evt != "object" || evt == null) {
- return;
- }
- //if a Shift-Tab is detected
- var i = 0;
- if (evt.keyCode == 9 && evt.shiftKey) {
- for (i = 0; i < menuItem.getParent().getNumItems(); i++) {
- if (menuItem.getParent().get(i) == menuItem) {
- menuItem.getParent().hide();
- if (document.all) {
- evt.returnValue = false;
- }
- else {
- evt.preventDefault();
- }
- break;
- }
- else if (menuItem.getParent().get(i).m_bEnabled == true) {
- break;
- }
- }
- }
- //if a normal Tab is detected
- else if (evt.keyCode == 9) {
- for (i = (menuItem.getParent().getNumItems() - 1); i >= 0; i++) {
- if (menuItem.getParent().get(i) == menuItem) {
- menuItem.getParent().hide();
- if (document.all) {
- evt.returnValue = false;
- }
- else {
- evt.preventDefault();
- }
- break;
- }
- else if (menuItem.getParent().get(i).m_bEnabled == true) {
- break;
- }
- }
- }
- // send the message up to our parent
- var oParent = menuItem.getParent();
- if(oParent && typeof oParent.onmkeydown == "function") {
- oParent.onkeydown(evt);
- }
- // notify our observers of this event
- menuItem.getObservers().notify(CMenuItem_onkeydown);
- }
- function CMenuItem_onkeypress(evt) {
- //get the event in a cross-browser fashion
- evt = (evt) ? evt : ((event) ? event : null);
- var menuItem = null;
- if(typeof this.menuItem != 'undefined') {
- menuItem = this.menuItem;
- }
- else if (this instanceof CMenuItem) {
- menuItem = this;
- }
- if(menuItem != null && menuItem instanceof CMenuItem && typeof evt == "object" && evt != null) {
- //flag which determines if we notify observers of the event
- var performNotification = true;
- //check for the Enter key
- if (evt.keyCode == 13) {
- //menu item should always be enabled if you can tab to it, but just in case
- if(!menuItem.isEnabled()) {
- return;
- }
- if(menuItem.getMenu() != null) {
- var menu = menuItem.getMenu();
- if(menuItem.getMenuType() == 'cascaded') {
- // stop notification so we do not hide the menu
- performNotification = false;
- // show the menu
- if(menu.isVisible() == false) {
- menu.setHTMLContainer(document.all ? this.document.body : this.ownerDocument.body);
- menu.draw();
- menu.show();
- } else {
- menu.remove();
- }
- } else if(menuItem.getMenuType() == 'dropDown') {
- if(menu.isVisible() == false) {
- // the user clicked on the menu
- menu.setHTMLContainer(document.all ? this.document.body : this.ownerDocument.body);
- menu.draw();
- menu.show();
- } else {
- menu.remove();
- }
- }
- } else {
- // handle the event
- eval(menuItem.getAction());
- }
- }
- //check for Esc key
- else if (evt.keyCode == 27) {
- //close the menu
- menuItem.getParent().hide();
- //cancel event being bubbled up the hierarchy since only one level of menus needs to hide
- return;
- }
- // send the message up to our parent
- var oParent = menuItem.getParent();
- if(oParent && typeof oParent.onkeypress == "function") {
- oParent.onkeypress(evt);
- }
- if (performNotification) {
- // notify our observers of this event
- menuItem.getObservers().notify(CMenuItem_onkeypress);
- }
- }
- if(evt != null) {
- evt.cancelBubble = true;
- }
- return false;
- }
- function CMenuItem_createDropDownMenu(menuStyle) {
- this.m_menu = new CMenu('dropDownMenu_'+this.getId(),menuStyle);
- this.m_menu.setParent(this);
- this.m_menuType = 'dropDown';
- return this.m_menu;
- }
- function CMenuItem_createCascadedMenu(menuStyle) {
- this.m_menu = new CMenu('cascadedMenu_'+this.getId(),menuStyle);
- this.m_menu.setParent(this);
- this.m_menuType = 'cascaded';
- return this.m_menu;
- }
- function CMenuItem_addOwnerDrawControl(control, type) {
- this.m_menu = control;
- this.m_menuType = type;
- if(typeof control.setParent != "undefined") {
- this.m_menu.setParent(this);
- }
- }
- function CMenuItem_attachEvents() {
- if(typeof this.getParent().getHTMLContainer != "function") {
- return; // this method must be implemented by the parent
- }
- var htmlContainer = this.getParent().getHTMLContainer();
- if(htmlContainer == null) {
- return;
- }
- var hMenuItem = eval(document.all ? htmlContainer.document.getElementById(this.getId()) : htmlContainer.ownerDocument.getElementById(this.getId()));
- if(hMenuItem == null) {
- return; // just to be safe
- }
- hMenuItem.onmouseover = this.onmouseover;
- hMenuItem.onmouseout = this.onmouseout;
- hMenuItem.onmouseup = this.onmouseup;
- hMenuItem.onkeypress = this.onkeypress;
- hMenuItem.onfocus = this.onfocus;
- hMenuItem.onblur = this.onblur;
- hMenuItem.onkeydown = this.onkeydown;
- hMenuItem.menuItem = eval(this);
- }
- function CMenuItem_remove() {
- }
- function CMenuItem_getMenu() {
- return this.m_menu;
- }
- function CMenuItem_getMenuType() {
- return this.m_menuType;
- }
- function CMenuItem_getStyle() {
- return this.m_style;
- }
- function CMenuItem_setStyle(style) {
- this.m_style = style;
- }
- function CMenuItem_hide() {
- this.m_bVisible = false;
- }
- function CMenuItem_show() {
- this.m_bVisible = true;
- }
- function CMenuItem_enable() {
- if(typeof this.getStyle() == "object") {
- if(typeof this.getParent().getHTMLContainer == "function") {
- var htmlContainer = this.getParent().getHTMLContainer();
- if(htmlContainer != null) {
- var htmlElement = document.all ? htmlContainer.document.getElementById(this.getId()) : htmlContainer.ownerDocument.getElementById(this.getId());
- if(htmlElement != null) {
- htmlElement.className = this.getStyle().getNormalState();
- }
- }
- }
- this.m_bEnabled = true;
- this.getIcon().enable();
- }
- }
- function CMenuItem_disable() {
- if(typeof this.getStyle() == "object") {
- if(typeof this.getParent().getHTMLContainer == "function") {
- var htmlContainer = this.getParent().getHTMLContainer();
- if(htmlContainer != null) {
- var htmlElement = document.all ? htmlContainer.document.getElementById(this.getId()) : htmlContainer.ownerDocument.getElementById(this.getId());
- if(htmlElement != null) {
- htmlElement.className = this.getStyle().getDisabledState();
- }
- }
- }
- this.m_bEnabled = false;
- this.getIcon().disable();
- }
- }
- function CMenuItem_isVisible() {
- return this.m_bVisible;
- }
- function CMenuItem_isEnabled() {
- return this.m_bEnabled;
- }
- function CMenuItem_getAction() {
- return this.m_action;
- }
- function CMenuItem_getIcon() {
- return this.m_icon;
- }
- function CMenuItem_getLabel() {
- return this.m_label;
- }
- function CMenuItem_setFocus() {
- document.getElementById(this.m_id).focus();
- }
- CMenuItem.prototype.draw = CMenuItem_draw;
- CMenuItem.prototype.onmouseover = CMenuItem_onmouseover;
- CMenuItem.prototype.onmouseout = CMenuItem_onmouseout;
- CMenuItem.prototype.onmouseup = CMenuItem_onmouseup;
- CMenuItem.prototype.onkeypress = CMenuItem_onkeypress;
- CMenuItem.prototype.onkeydown = CMenuItem_onkeydown;
- CMenuItem.prototype.onfocus = CMenuItem_onfocus;
- CMenuItem.prototype.onblur = CMenuItem_onmouseout;
- CMenuItem.prototype.attachEvents = CMenuItem_attachEvents;
- CMenuItem.prototype.getMenu = CMenuItem_getMenu;
- CMenuItem.prototype.getMenuType = CMenuItem_getMenuType;
- CMenuItem.prototype.setParent = CMenuItem_setParent;
- CMenuItem.prototype.getParent = CMenuItem_getParent;
- CMenuItem.prototype.getObservers = CMenuItem_getObservers;
- CMenuItem.prototype.getId = CMenuItem_getId;
- CMenuItem.prototype.remove = CMenuItem_remove;
- CMenuItem.prototype.setStyle = CMenuItem_setStyle;
- CMenuItem.prototype.getStyle = CMenuItem_getStyle;
- CMenuItem.prototype.createDropDownMenu = CMenuItem_createDropDownMenu;
- CMenuItem.prototype.createCascadedMenu = CMenuItem_createCascadedMenu;
- CMenuItem.prototype.addOwnerDrawControl = CMenuItem_addOwnerDrawControl;
- CMenuItem.prototype.isVisible = CMenuItem_isVisible;
- CMenuItem.prototype.hide = CMenuItem_hide;
- CMenuItem.prototype.show = CMenuItem_show;
- CMenuItem.prototype.isEnabled = CMenuItem_isEnabled;
- CMenuItem.prototype.enable = CMenuItem_enable;
- CMenuItem.prototype.disable = CMenuItem_disable;
- CMenuItem.prototype.getAction = CMenuItem_getAction;
- CMenuItem.prototype.getIcon = CMenuItem_getIcon;
- CMenuItem.prototype.getLabel = CMenuItem_getLabel;
- CMenuItem.prototype.setFocus = CMenuItem_setFocus;
- CMenuItem.prototype.update = new Function("return true");
- /*
- Class CSeperator
- todo : Add commments describing class....
- */
- /*
- CSeperator styles:
- 1. horizonal_blank
- 2. vertical_blank
- 3. vertical_line
- 4. horizonal_line
- */
- function CSeperator(type, size, style) {
- this.m_type=type;
- this.m_size=size;
- this.m_bVisible = true;
- if(typeof style == "object") {
- this.m_style = new CUIStyle(style.getNormalState(),style.getRolloverState(),style.getDepressedState(),style.getDepressedRolloverState(),style.getDisabledState());
- }
- else {
- this.m_style = new CUIStyle('','','','','');
- }
- }
- function CSeperator_draw() {
- if(this.m_style == '') {
- return;
- }
- var html='';
- switch(this.m_type) {
- case "horizonal_blank":
- html += '<td style="padding:0px;"><img border="0" src="../common/images/spacer.gif" height="1" width="';
- html += this.m_size;
- html += '"/></td>';
- break;
- case "horizontal_line":
- html += '<hr SIZE="1" NOSHADE="NOSHADE" CLASS="';
- html += this.getStyle().getActiveState();
- html += '"/>';
- break;
- case "vertical_blank":
- html += '<tr>';
- html += '<td style="padding:0px;"><img border="0" src="../common/images/spacer.gif" width="1" height="';
- html += this.m_size;
- html += '"/></td></tr>';
- break;
- case "vertical_line":
- html += '<td style="padding:0px;"><hr NOSHADE="NOSHADE" WIDTH="1" ALIGN="CENTER" CLASS="';
- html += this.getStyle().getActiveState();
- html += '" SIZE="';
- html += this.getSize();
- html += '"/></td>';
- break;
- }
- return html;
- }
- function CSeperator_getSize() {
- return this.m_size;
- }
- function CSeperator_setSize(size) {
- this.m_size = size;
- }
- function CSeperator_setStyle(style) {
- this.m_style = style;
- }
- function CSeperator_getStyle() {
- return this.m_style;
- }
- function CSeperator_setType(type) {
- this.m_type = type;
- }
- function CSeperator_getType() {
- return this.m_type;
- }
- function CSeperator_hide() {
- this.m_bVisible = false;
- }
- function CSeperator_show() {
- this.m_bVisible = true;
- }
- function CSeperator_isVisible() {
- return this.m_bVisible;
- }
- CSeperator.prototype.draw = CSeperator_draw;
- CSeperator.prototype.setSize = CSeperator_setSize;
- CSeperator.prototype.getSize = CSeperator_getSize;
- CSeperator.prototype.setStyle = CSeperator_setStyle;
- CSeperator.prototype.getStyle = CSeperator_getStyle;
- CSeperator.prototype.getType = CSeperator_getType;
- CSeperator.prototype.setType = CSeperator_setType;
- CSeperator.prototype.isVisible = CSeperator_isVisible;
- CSeperator.prototype.show = CSeperator_show;
- CSeperator.prototype.hide = CSeperator_hide;
|