HTML-Dojo

 view release on metacpan or  search on metacpan

lib/HTML/Dojo/editions.pm  view on Meta::CPAN

},remove:function(){
if(this.iframe){
dojo.html.removeNode(this.iframe,true);
delete this.iframe;
this.iframe=null;
}
}});
dojo.provide("dojo.widget.PopupContainer");
dojo.declare("dojo.widget.PopupContainerBase",null,function(){
this.queueOnAnimationFinish=[];
},{isShowingNow:false,currentSubpopup:null,beginZIndex:1000,parentPopup:null,parent:null,popupIndex:0,aroundBox:dojo.html.boxSizing.BORDER_BOX,openedForWindow:null,processKey:function(evt){
return false;
},applyPopupBasicStyle:function(){
with(this.domNode.style){
display="none";
position="absolute";
}
},aboutToShow:function(){
},open:function(x,y,_96a,_96b,_96c,_96d){
if(this.isShowingNow){
return;

lib/HTML/Dojo/editions.pm  view on Meta::CPAN

_96b=_96a;
_96a=y;
_96e=true;
}
this.parent=_96a;
dojo.body().appendChild(this.domNode);
_96b=_96b||_96a["domNode"]||[];
var _971=null;
this.isTopLevel=true;
while(_96a){
if(_96a!==this&&(_96a.setOpenedSubpopup!=undefined&&_96a.applyPopupBasicStyle!=undefined)){
_971=_96a;
this.isTopLevel=false;
_971.setOpenedSubpopup(this);
break;
}
_96a=_96a.parent;
}
this.parentPopup=_971;
this.popupIndex=_971?_971.popupIndex+1:1;
if(this.isTopLevel){
var _972=dojo.html.isNode(_96b)?_96b:null;
dojo.widget.PopupManager.opened(this,_972);
}
if(this.isTopLevel&&!dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
this._bookmark=dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.getBookmark);
}else{
this._bookmark=null;
}
if(_96b instanceof Array){
_96b={left:_96b[0],top:_96b[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_96e){
this.move(node,_96d,_970);
}else{
this.move(x,y,_96d,_96c);
}
this.domNode.style.display="none";
this.explodeSrc=_96b;
this.show();
this.isShowingNow=true;

lib/HTML/Dojo/editions.pm  view on Meta::CPAN

dojo.html.placeOnScreen(this.domNode,x,y,_975,true,_976);
}
},close:function(_97a){
if(_97a){
this.domNode.style.display="none";
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(_97a);
this.hide();
if(this.bgIframe){
this.bgIframe.hide();
this.bgIframe.size({left:0,top:0,width:0,height:0});
}
if(this.isTopLevel){
dojo.widget.PopupManager.closed(this);
}
this.isShowingNow=false;
if(this.parent){

lib/HTML/Dojo/editions.pm  view on Meta::CPAN

catch(e){
}
}
this._bookmark=null;
},closeAll:function(_97b){
if(this.parentPopup){
this.parentPopup.closeAll(_97b);
}else{
this.close(_97b);
}
},setOpenedSubpopup:function(_97c){
this.currentSubpopup=_97c;
},closeSubpopup:function(_97d){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_97d);
this.currentSubpopup=null;
},onShow:function(){
dojo.widget.PopupContainer.superclass.onShow.apply(this,arguments);
this.openedSize={w:this.domNode.style.width,h:this.domNode.style.height};
if(dojo.render.html.ie){
if(!this.bgIframe){
this.bgIframe=new dojo.html.BackgroundIframe();
this.bgIframe.setZIndex(this.domNode);
}
this.bgIframe.size(this.domNode);
this.bgIframe.show();

lib/HTML/Dojo/editions.pm  view on Meta::CPAN

},this.onClick=function(e){
if(!this.currentMenu){
return;
}
var _98d=dojo.html.getScroll().offset;
var m=this.currentMenu;
while(m){
if(dojo.html.overElement(m.domNode,e)||dojo.html.isDescendantOf(e.target,m.domNode)){
return;
}
m=m.currentSubpopup;
}
if(this.currentButton&&dojo.html.overElement(this.currentButton,e)){
return;
}
this.currentMenu.closeAll(true);
};
};
dojo.provide("dojo.widget.ColorPalette");
dojo.widget.defineWidget("dojo.widget.ColorPalette",dojo.widget.HtmlWidget,{palette:"7x10",_palettes:{"7x10":[["fff","fcc","fc9","ff9","ffc","9f9","9ff","cff","ccf","fcf"],["ccc","f66","f96","ff6","ff3","6f9","3ff","6ff","99f","f9f"],["c0c0c0","f00",...
this.domNode=document.createElement("table");

lib/HTML/Dojo/src.pm  view on Meta::CPAN

	this.containerNode.innerHTML = content;
	this._sizeMyself();
}, setDisabled:function (disabled) {
	this.disabled = disabled;
	this._sizeMyself();
}});
dojo.widget.defineWidget("dojo.widget.DropDownButton", dojo.widget.Button, {menuId:"", downArrow:"templates/images/whiteDownArrow.gif", disabledDownArrow:"templates/images/whiteDownArrow.gif", fillInTemplate:function () {
	dojo.widget.DropDownButton.superclass.fillInTemplate.apply(this, arguments);
	this.arrow = document.createElement("img");
	dojo.html.setClass(this.arrow, "downArrow");
	dojo.widget.wai.setAttr(this.domNode, "waiState", "haspopup", this.menuId);
}, _sizeMyselfHelper:function () {
	this.arrow.src = dojo.uri.moduleUri("dojo.widget", this.disabled ? this.disabledDownArrow : this.downArrow);
	this.containerNode.appendChild(this.arrow);
	dojo.widget.DropDownButton.superclass._sizeMyselfHelper.call(this);
}, onClick:function (e) {
	this._toggleMenu(this.menuId);
}});
dojo.widget.defineWidget("dojo.widget.ComboButton", dojo.widget.Button, {menuId:"", templateString:"<div class=\"dojoButton\" style=\"position:relative;top:0px;left:0px; text-align:none;\" dojoAttachEvent=\"onKey;onFocus\">\n\n\t<div dojoAttachPoint=...
	var mb = dojo.html.getMarginBox(this.containerNode);
	this.height = mb.height;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

	}, _handleKeyEvents:function (evt) {
		if (evt.ctrlKey || evt.altKey || !evt.key) {
			return;
		}
		this._prev_key_backspace = false;
		this._prev_key_esc = false;
		var k = dojo.event.browser.keys;
		var doSearch = true;
		switch (evt.key) {
		  case k.KEY_DOWN_ARROW:
			if (!this.popupWidget.isShowingNow) {
				this._startSearchFromInput();
			}
			this._highlightNextOption();
			dojo.event.browser.stopEvent(evt);
			return;
		  case k.KEY_UP_ARROW:
			this._highlightPrevOption();
			dojo.event.browser.stopEvent(evt);
			return;
		  case k.KEY_TAB:
			if (!this.autoComplete && this.popupWidget.isShowingNow && this._highlighted_option) {
				dojo.event.browser.stopEvent(evt);
				this._selectOption({"target":this._highlighted_option, "noHide":false});
				this._setSelectedRange(this.textInputNode, this.textInputNode.value.length, null);
			} else {
				this._selectOption();
				return;
			}
			break;
		  case k.KEY_ENTER:
			if (this.popupWidget.isShowingNow) {
				dojo.event.browser.stopEvent(evt);
			}
			if (this.autoComplete) {
				this._selectOption();
				return;
			}
		  case " ":
			if (this.popupWidget.isShowingNow && this._highlighted_option) {
				dojo.event.browser.stopEvent(evt);
				this._selectOption();
				this._hideResultList();
				return;
			}
			break;
		  case k.KEY_ESCAPE:
			this._hideResultList();
			this._prev_key_esc = true;
			return;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

				dpClass = this.dataProviderClass;
			}
		} else {
			if (this.mode == "remote") {
				dpClass = dojo.widget.incrementalComboBoxDataProvider;
			} else {
				dpClass = dojo.widget.basicComboBoxDataProvider;
			}
		}
		this.dataProvider = new dpClass(this, this.getFragNodeRef(frag));
		this.popupWidget = new dojo.widget.createWidget("PopupContainer", {toggle:this.dropdownToggle, toggleDuration:this.toggleDuration});
		dojo.event.connect(this, "destroy", this.popupWidget, "destroy");
		this.optionsListNode = this.popupWidget.domNode;
		this.domNode.appendChild(this.optionsListNode);
		dojo.html.addClass(this.optionsListNode, "dojoComboBoxOptions");
		dojo.event.connect(this.optionsListNode, "onclick", this, "_selectOption");
		dojo.event.connect(this.optionsListNode, "onmouseover", this, "_onMouseOver");
		dojo.event.connect(this.optionsListNode, "onmouseout", this, "_onMouseOut");
		dojo.event.connect(this.optionsListNode, "onmouseover", this, "_itemMouseOver");
		dojo.event.connect(this.optionsListNode, "onmouseout", this, "_itemMouseOut");
	}, _openResultList:function (results) {
		if (this.disabled) {
			return;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

		if (!evt.noHide) {
			this._hideResultList();
			this._setSelectedRange(this.textInputNode, 0, null);
		}
		this._tryFocus();
	}, _clearResultList:function () {
		if (this.optionsListNode.innerHTML) {
			this.optionsListNode.innerHTML = "";
		}
	}, _hideResultList:function () {
		this.popupWidget.close();
	}, _showResultList:function () {
		var childs = this.optionsListNode.childNodes;
		if (childs.length) {
			var visibleCount = Math.min(childs.length, this.maxListLength);
			with (this.optionsListNode.style) {
				display = "";
				if (visibleCount == childs.length) {
					height = "";
				} else {
					height = visibleCount * dojo.html.getMarginBox(childs[0]).height + "px";
				}
				width = (dojo.html.getMarginBox(this.domNode).width - 2) + "px";
			}
			this.popupWidget.open(this.domNode, this, this.downArrowNode);
		} else {
			this._hideResultList();
		}
	}, handleArrowClick:function () {
		this._handleBlurTimer(true, 0);
		this._tryFocus();
		if (this.popupWidget.isShowingNow) {
			this._hideResultList();
		} else {
			this._startSearch("");
		}
	}, _tryFocus:function () {
		try {
			this.textInputNode.focus();
		}
		catch (e) {
		}

lib/HTML/Dojo/src.pm  view on Meta::CPAN

	dojo.provide("dojo.widget.PopupContainer");
	dojo.require("dojo.html.style");
	dojo.require("dojo.html.layout");
	dojo.require("dojo.html.selection");
	dojo.require("dojo.html.iframe");
	dojo.require("dojo.event.*");
	dojo.require("dojo.widget.*");
	dojo.require("dojo.widget.HtmlWidget");
	dojo.declare("dojo.widget.PopupContainerBase", null, function () {
		this.queueOnAnimationFinish = [];
	}, {isShowingNow:false, currentSubpopup:null, beginZIndex:1000, parentPopup:null, parent:null, popupIndex:0, aroundBox:dojo.html.boxSizing.BORDER_BOX, openedForWindow:null, processKey:function (evt) {
		return false;
	}, applyPopupBasicStyle:function () {
		with (this.domNode.style) {
			display = "none";
			position = "absolute";
		}
	}, aboutToShow:function () {
	}, open:function (x, y, parent, explodeSrc, orient, padding) {
		if (this.isShowingNow) {
			return;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

			explodeSrc = parent;
			parent = y;
			around = true;
		}
		this.parent = parent;
		dojo.body().appendChild(this.domNode);
		explodeSrc = explodeSrc || parent["domNode"] || [];
		var parentPopup = null;
		this.isTopLevel = true;
		while (parent) {
			if (parent !== this && (parent.setOpenedSubpopup != undefined && parent.applyPopupBasicStyle != undefined)) {
				parentPopup = parent;
				this.isTopLevel = false;
				parentPopup.setOpenedSubpopup(this);
				break;
			}
			parent = parent.parent;
		}
		this.parentPopup = parentPopup;
		this.popupIndex = parentPopup ? parentPopup.popupIndex + 1 : 1;
		if (this.isTopLevel) {
			var button = dojo.html.isNode(explodeSrc) ? explodeSrc : null;
			dojo.widget.PopupManager.opened(this, button);
		}
		if (this.isTopLevel && !dojo.withGlobal(this.openedForWindow || dojo.global(), dojo.html.selection.isCollapsed)) {
			this._bookmark = dojo.withGlobal(this.openedForWindow || dojo.global(), dojo.html.selection.getBookmark);
		} else {
			this._bookmark = null;
		}
		if (explodeSrc instanceof Array) {
			explodeSrc = {left:explodeSrc[0], top:explodeSrc[1], width:0, height:0};
		}
		with (this.domNode.style) {
			display = "";
			zIndex = this.beginZIndex + this.popupIndex;
		}
		if (around) {
			this.move(node, padding, aroundOrient);
		} else {
			this.move(x, y, padding, orient);
		}
		this.domNode.style.display = "none";
		this.explodeSrc = explodeSrc;
		this.show();
		this.isShowingNow = true;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

			dojo.html.placeOnScreen(this.domNode, x, y, padding, true, orient);
		}
	}, close:function (force) {
		if (force) {
			this.domNode.style.display = "none";
		}
		if (this.animationInProgress) {
			this.queueOnAnimationFinish.push(this.close, []);
			return;
		}
		this.closeSubpopup(force);
		this.hide();
		if (this.bgIframe) {
			this.bgIframe.hide();
			this.bgIframe.size({left:0, top:0, width:0, height:0});
		}
		if (this.isTopLevel) {
			dojo.widget.PopupManager.closed(this);
		}
		this.isShowingNow = false;
		if (this.parent) {

lib/HTML/Dojo/src.pm  view on Meta::CPAN

			catch (e) {
			}
		}
		this._bookmark = null;
	}, closeAll:function (force) {
		if (this.parentPopup) {
			this.parentPopup.closeAll(force);
		} else {
			this.close(force);
		}
	}, setOpenedSubpopup:function (popup) {
		this.currentSubpopup = popup;
	}, closeSubpopup:function (force) {
		if (this.currentSubpopup == null) {
			return;
		}
		this.currentSubpopup.close(force);
		this.currentSubpopup = null;
	}, onShow:function () {
		dojo.widget.PopupContainer.superclass.onShow.apply(this, arguments);
		this.openedSize = {w:this.domNode.style.width, h:this.domNode.style.height};
		if (dojo.render.html.ie) {
			if (!this.bgIframe) {
				this.bgIframe = new dojo.html.BackgroundIframe();
				this.bgIframe.setZIndex(this.domNode);
			}
			this.bgIframe.size(this.domNode);
			this.bgIframe.show();

lib/HTML/Dojo/src.pm  view on Meta::CPAN

		}, this.onClick = function (e) {
			if (!this.currentMenu) {
				return;
			}
			var scrolloffset = dojo.html.getScroll().offset;
			var m = this.currentMenu;
			while (m) {
				if (dojo.html.overElement(m.domNode, e) || dojo.html.isDescendantOf(e.target, m.domNode)) {
					return;
				}
				m = m.currentSubpopup;
			}
			if (this.currentButton && dojo.html.overElement(this.currentButton, e)) {
				return;
			}
			this.currentMenu.closeAll(true);
		};
	};
}});


lib/HTML/Dojo/src.pm  view on Meta::CPAN

	dojo.require("dojo.widget.*");
	dojo.require("dojo.widget.HtmlWidget");
	dojo.require("dojo.widget.PopupContainer");
	dojo.require("dojo.event.*");
	dojo.require("dojo.html.layout");
	dojo.require("dojo.html.display");
	dojo.require("dojo.html.iframe");
	dojo.require("dojo.html.util");
	dojo.widget.defineWidget("dojo.widget.DropdownContainer", dojo.widget.HtmlWidget, {inputWidth:"7em", id:"", inputId:"", inputName:"", iconURL:dojo.uri.moduleUri("dojo.widget", "templates/images/combo_box_arrow.png"), copyClasses:false, iconAlt:"", c...
		dojo.widget.DropdownContainer.superclass.attachTemplateNodes.apply(this, arguments);
		this.popup = dojo.widget.createWidget("PopupContainer", {toggle:this.containerToggle, toggleDuration:this.containerToggleDuration});
		this.containerNode = this.popup.domNode;
	}, fillInTemplate:function (args, frag) {
		this.domNode.appendChild(this.popup.domNode);
		if (this.id) {
			this.domNode.id = this.id;
		}
		if (this.inputId) {
			this.inputNode.id = this.inputId;
		}
		if (this.inputName) {
			this.inputNode.name = this.inputName;
		}
		this.inputNode.style.width = this.inputWidth;
		this.inputNode.disabled = this.disabled;
		if (this.copyClasses) {
			this.inputNode.style = "";
			this.inputNode.className = this.getFragNodeRef(frag).className;
		}
		dojo.event.connect(this.inputNode, "onchange", this, "onInputChange");
	}, onIconClick:function (evt) {
		if (this.disabled) {
			return;
		}
		if (!this.popup.isShowingNow) {
			this.popup.open(this.inputNode, this, this.buttonNode);
		} else {
			this.popup.close();
		}
	}, hideContainer:function () {
		if (this.popup.isShowingNow) {
			this.popup.close();
		}
	}, onInputChange:function () {
	}, enable:function () {
		this.inputNode.disabled = false;
		dojo.widget.DropdownContainer.superclass.enable.apply(this, arguments);
	}, disable:function () {
		this.inputNode.disabled = true;
		dojo.widget.DropdownContainer.superclass.disable.apply(this, arguments);
	}});
}});

lib/HTML/Dojo/src.pm  view on Meta::CPAN

dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.widget.PopupContainer");
dojo.require("dojo.event.*");
dojo.require("dojo.html.layout");
dojo.require("dojo.html.display");
dojo.require("dojo.html.iframe");
dojo.require("dojo.html.util");
dojo.widget.defineWidget("dojo.widget.DropdownContainer", dojo.widget.HtmlWidget, {inputWidth:"7em", id:"", inputId:"", inputName:"", iconURL:dojo.uri.moduleUri("dojo.widget", "templates/images/combo_box_arrow.png"), copyClasses:false, iconAlt:"", co...
	dojo.widget.DropdownContainer.superclass.attachTemplateNodes.apply(this, arguments);
	this.popup = dojo.widget.createWidget("PopupContainer", {toggle:this.containerToggle, toggleDuration:this.containerToggleDuration});
	this.containerNode = this.popup.domNode;
}, fillInTemplate:function (args, frag) {
	this.domNode.appendChild(this.popup.domNode);
	if (this.id) {
		this.domNode.id = this.id;
	}
	if (this.inputId) {
		this.inputNode.id = this.inputId;
	}
	if (this.inputName) {
		this.inputNode.name = this.inputName;
	}
	this.inputNode.style.width = this.inputWidth;
	this.inputNode.disabled = this.disabled;
	if (this.copyClasses) {
		this.inputNode.style = "";
		this.inputNode.className = this.getFragNodeRef(frag).className;
	}
	dojo.event.connect(this.inputNode, "onchange", this, "onInputChange");
}, onIconClick:function (evt) {
	if (this.disabled) {
		return;
	}
	if (!this.popup.isShowingNow) {
		this.popup.open(this.inputNode, this, this.buttonNode);
	} else {
		this.popup.close();
	}
}, hideContainer:function () {
	if (this.popup.isShowingNow) {
		this.popup.close();
	}
}, onInputChange:function () {
}, enable:function () {
	this.inputNode.disabled = false;
	dojo.widget.DropdownContainer.superclass.enable.apply(this, arguments);
}, disable:function () {
	this.inputNode.disabled = true;
	dojo.widget.DropdownContainer.superclass.disable.apply(this, arguments);
}});

lib/HTML/Dojo/src.pm  view on Meta::CPAN

}, _handleKeyEvents:function (evt) {
	if (evt.ctrlKey || evt.altKey || !evt.key) {
		return;
	}
	this._prev_key_backspace = false;
	this._prev_key_esc = false;
	var k = dojo.event.browser.keys;
	var doSearch = true;
	switch (evt.key) {
	  case k.KEY_DOWN_ARROW:
		if (!this.popupWidget.isShowingNow) {
			this._startSearchFromInput();
		}
		this._highlightNextOption();
		dojo.event.browser.stopEvent(evt);
		return;
	  case k.KEY_UP_ARROW:
		this._highlightPrevOption();
		dojo.event.browser.stopEvent(evt);
		return;
	  case k.KEY_TAB:
		if (!this.autoComplete && this.popupWidget.isShowingNow && this._highlighted_option) {
			dojo.event.browser.stopEvent(evt);
			this._selectOption({"target":this._highlighted_option, "noHide":false});
			this._setSelectedRange(this.textInputNode, this.textInputNode.value.length, null);
		} else {
			this._selectOption();
			return;
		}
		break;
	  case k.KEY_ENTER:
		if (this.popupWidget.isShowingNow) {
			dojo.event.browser.stopEvent(evt);
		}
		if (this.autoComplete) {
			this._selectOption();
			return;
		}
	  case " ":
		if (this.popupWidget.isShowingNow && this._highlighted_option) {
			dojo.event.browser.stopEvent(evt);
			this._selectOption();
			this._hideResultList();
			return;
		}
		break;
	  case k.KEY_ESCAPE:
		this._hideResultList();
		this._prev_key_esc = true;
		return;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

			dpClass = this.dataProviderClass;
		}
	} else {
		if (this.mode == "remote") {
			dpClass = dojo.widget.incrementalComboBoxDataProvider;
		} else {
			dpClass = dojo.widget.basicComboBoxDataProvider;
		}
	}
	this.dataProvider = new dpClass(this, this.getFragNodeRef(frag));
	this.popupWidget = new dojo.widget.createWidget("PopupContainer", {toggle:this.dropdownToggle, toggleDuration:this.toggleDuration});
	dojo.event.connect(this, "destroy", this.popupWidget, "destroy");
	this.optionsListNode = this.popupWidget.domNode;
	this.domNode.appendChild(this.optionsListNode);
	dojo.html.addClass(this.optionsListNode, "dojoComboBoxOptions");
	dojo.event.connect(this.optionsListNode, "onclick", this, "_selectOption");
	dojo.event.connect(this.optionsListNode, "onmouseover", this, "_onMouseOver");
	dojo.event.connect(this.optionsListNode, "onmouseout", this, "_onMouseOut");
	dojo.event.connect(this.optionsListNode, "onmouseover", this, "_itemMouseOver");
	dojo.event.connect(this.optionsListNode, "onmouseout", this, "_itemMouseOut");
}, _openResultList:function (results) {
	if (this.disabled) {
		return;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

	if (!evt.noHide) {
		this._hideResultList();
		this._setSelectedRange(this.textInputNode, 0, null);
	}
	this._tryFocus();
}, _clearResultList:function () {
	if (this.optionsListNode.innerHTML) {
		this.optionsListNode.innerHTML = "";
	}
}, _hideResultList:function () {
	this.popupWidget.close();
}, _showResultList:function () {
	var childs = this.optionsListNode.childNodes;
	if (childs.length) {
		var visibleCount = Math.min(childs.length, this.maxListLength);
		with (this.optionsListNode.style) {
			display = "";
			if (visibleCount == childs.length) {
				height = "";
			} else {
				height = visibleCount * dojo.html.getMarginBox(childs[0]).height + "px";
			}
			width = (dojo.html.getMarginBox(this.domNode).width - 2) + "px";
		}
		this.popupWidget.open(this.domNode, this, this.downArrowNode);
	} else {
		this._hideResultList();
	}
}, handleArrowClick:function () {
	this._handleBlurTimer(true, 0);
	this._tryFocus();
	if (this.popupWidget.isShowingNow) {
		this._hideResultList();
	} else {
		this._startSearch("");
	}
}, _tryFocus:function () {
	try {
		this.textInputNode.focus();
	}
	catch (e) {
	}

lib/HTML/Dojo/src.pm  view on Meta::CPAN

		this.containerNode.innerHTML = content;
		this._sizeMyself();
	}, setDisabled:function (disabled) {
		this.disabled = disabled;
		this._sizeMyself();
	}});
	dojo.widget.defineWidget("dojo.widget.DropDownButton", dojo.widget.Button, {menuId:"", downArrow:"templates/images/whiteDownArrow.gif", disabledDownArrow:"templates/images/whiteDownArrow.gif", fillInTemplate:function () {
		dojo.widget.DropDownButton.superclass.fillInTemplate.apply(this, arguments);
		this.arrow = document.createElement("img");
		dojo.html.setClass(this.arrow, "downArrow");
		dojo.widget.wai.setAttr(this.domNode, "waiState", "haspopup", this.menuId);
	}, _sizeMyselfHelper:function () {
		this.arrow.src = dojo.uri.moduleUri("dojo.widget", this.disabled ? this.disabledDownArrow : this.downArrow);
		this.containerNode.appendChild(this.arrow);
		dojo.widget.DropDownButton.superclass._sizeMyselfHelper.call(this);
	}, onClick:function (e) {
		this._toggleMenu(this.menuId);
	}});
	dojo.widget.defineWidget("dojo.widget.ComboButton", dojo.widget.Button, {menuId:"", templateString:"<div class=\"dojoButton\" style=\"position:relative;top:0px;left:0px; text-align:none;\" dojoAttachEvent=\"onKey;onFocus\">\n\n\t<div dojoAttachPoint...
		var mb = dojo.html.getMarginBox(this.containerNode);
		this.height = mb.height;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

dojo.provide("dojo.widget.PopupContainer");
dojo.require("dojo.html.style");
dojo.require("dojo.html.layout");
dojo.require("dojo.html.selection");
dojo.require("dojo.html.iframe");
dojo.require("dojo.event.*");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.PopupContainerBase", null, function () {
	this.queueOnAnimationFinish = [];
}, {isShowingNow:false, currentSubpopup:null, beginZIndex:1000, parentPopup:null, parent:null, popupIndex:0, aroundBox:dojo.html.boxSizing.BORDER_BOX, openedForWindow:null, processKey:function (evt) {
	return false;
}, applyPopupBasicStyle:function () {
	with (this.domNode.style) {
		display = "none";
		position = "absolute";
	}
}, aboutToShow:function () {
}, open:function (x, y, parent, explodeSrc, orient, padding) {
	if (this.isShowingNow) {
		return;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

		explodeSrc = parent;
		parent = y;
		around = true;
	}
	this.parent = parent;
	dojo.body().appendChild(this.domNode);
	explodeSrc = explodeSrc || parent["domNode"] || [];
	var parentPopup = null;
	this.isTopLevel = true;
	while (parent) {
		if (parent !== this && (parent.setOpenedSubpopup != undefined && parent.applyPopupBasicStyle != undefined)) {
			parentPopup = parent;
			this.isTopLevel = false;
			parentPopup.setOpenedSubpopup(this);
			break;
		}
		parent = parent.parent;
	}
	this.parentPopup = parentPopup;
	this.popupIndex = parentPopup ? parentPopup.popupIndex + 1 : 1;
	if (this.isTopLevel) {
		var button = dojo.html.isNode(explodeSrc) ? explodeSrc : null;
		dojo.widget.PopupManager.opened(this, button);
	}
	if (this.isTopLevel && !dojo.withGlobal(this.openedForWindow || dojo.global(), dojo.html.selection.isCollapsed)) {
		this._bookmark = dojo.withGlobal(this.openedForWindow || dojo.global(), dojo.html.selection.getBookmark);
	} else {
		this._bookmark = null;
	}
	if (explodeSrc instanceof Array) {
		explodeSrc = {left:explodeSrc[0], top:explodeSrc[1], width:0, height:0};
	}
	with (this.domNode.style) {
		display = "";
		zIndex = this.beginZIndex + this.popupIndex;
	}
	if (around) {
		this.move(node, padding, aroundOrient);
	} else {
		this.move(x, y, padding, orient);
	}
	this.domNode.style.display = "none";
	this.explodeSrc = explodeSrc;
	this.show();
	this.isShowingNow = true;

lib/HTML/Dojo/src.pm  view on Meta::CPAN

		dojo.html.placeOnScreen(this.domNode, x, y, padding, true, orient);
	}
}, close:function (force) {
	if (force) {
		this.domNode.style.display = "none";
	}
	if (this.animationInProgress) {
		this.queueOnAnimationFinish.push(this.close, []);
		return;
	}
	this.closeSubpopup(force);
	this.hide();
	if (this.bgIframe) {
		this.bgIframe.hide();
		this.bgIframe.size({left:0, top:0, width:0, height:0});
	}
	if (this.isTopLevel) {
		dojo.widget.PopupManager.closed(this);
	}
	this.isShowingNow = false;
	if (this.parent) {

lib/HTML/Dojo/src.pm  view on Meta::CPAN

		catch (e) {
		}
	}
	this._bookmark = null;
}, closeAll:function (force) {
	if (this.parentPopup) {
		this.parentPopup.closeAll(force);
	} else {
		this.close(force);
	}
}, setOpenedSubpopup:function (popup) {
	this.currentSubpopup = popup;
}, closeSubpopup:function (force) {
	if (this.currentSubpopup == null) {
		return;
	}
	this.currentSubpopup.close(force);
	this.currentSubpopup = null;
}, onShow:function () {
	dojo.widget.PopupContainer.superclass.onShow.apply(this, arguments);
	this.openedSize = {w:this.domNode.style.width, h:this.domNode.style.height};
	if (dojo.render.html.ie) {
		if (!this.bgIframe) {
			this.bgIframe = new dojo.html.BackgroundIframe();
			this.bgIframe.setZIndex(this.domNode);
		}
		this.bgIframe.size(this.domNode);
		this.bgIframe.show();

lib/HTML/Dojo/src.pm  view on Meta::CPAN

	}, this.onClick = function (e) {
		if (!this.currentMenu) {
			return;
		}
		var scrolloffset = dojo.html.getScroll().offset;
		var m = this.currentMenu;
		while (m) {
			if (dojo.html.overElement(m.domNode, e) || dojo.html.isDescendantOf(e.target, m.domNode)) {
				return;
			}
			m = m.currentSubpopup;
		}
		if (this.currentButton && dojo.html.overElement(this.currentButton, e)) {
			return;
		}
		this.currentMenu.closeAll(true);
	};
};


__CPAN_FILE__ src/widget/TreeEditor.xd.js

lib/HTML/Dojo/src.pm  view on Meta::CPAN

			"floatingpane": "dojo.widget.FloatingPane",
			"modalfloatingpane": "dojo.widget.FloatingPane",
			"form": "dojo.widget.Form",
			"googlemap": "dojo.widget.GoogleMap",
			"inlineeditbox": "dojo.widget.InlineEditBox",
			"integerspinner": "dojo.widget.Spinner",
			"integertextbox": "dojo.widget.IntegerTextbox",
			"ipaddresstextbox": "dojo.widget.InternetTextbox",
			"layoutcontainer": "dojo.widget.LayoutContainer",
			"linkpane": "dojo.widget.LinkPane",
			"popupmenu2": "dojo.widget.Menu2",
			"menuitem2": "dojo.widget.Menu2",
			"menuseparator2": "dojo.widget.Menu2",
			"menubar2": "dojo.widget.Menu2",
			"menubaritem2": "dojo.widget.Menu2",
			"pagecontainer": "dojo.widget.PageContainer",
			"pagecontroller": "dojo.widget.PageContainer",
			"popupcontainer": "dojo.widget.PopupContainer",
			"progressbar": "dojo.widget.ProgressBar",
			"radiogroup": "dojo.widget.RadioGroup",
			"realnumbertextbox": "dojo.widget.RealNumberTextbox",
			"regexptextbox": "dojo.widget.RegexpTextbox",
			"repeater": "dojo.widget.Repeater", 
			"resizabletextarea": "dojo.widget.ResizableTextarea",
			"richtext": "dojo.widget.RichText",
			"select": "dojo.widget.Select",
			"show": "dojo.widget.Show",
			"showaction": "dojo.widget.ShowAction",

lib/HTML/Dojo/src.pm  view on Meta::CPAN


		http://dojotoolkit.org/community/licensing.shtml
*/



dojo.hostenv.packageLoaded({depends:[["provide", "dojo.namespaces.dojo"], ["require", "dojo.ns"], ["require", ]], definePackage:function (dojo) {
	dojo.provide("dojo.namespaces.dojo");
	dojo.require("dojo.ns");
	(function () {
		var map = {html:{"accordioncontainer":"dojo.widget.AccordionContainer", "animatedpng":"dojo.widget.AnimatedPng", "button":"dojo.widget.Button", "chart":"dojo.widget.Chart", "checkbox":"dojo.widget.Checkbox", "clock":"dojo.widget.Clock", "colorpalet...
		dojo.addDojoNamespaceMapping = function (shortName, packageName) {
			map[shortName] = packageName;
		};
		function dojoNamespaceResolver(name, domain) {
			if (!domain) {
				domain = "html";
			}
			if (!map[domain]) {
				return null;
			}



( run in 3.342 seconds using v1.01-cache-2.11-cpan-364913b4093 )