Esempio n. 1
0
		public ConsoleScript() {
			this.div = ElementFactory.CreateDiv();
			this.div.id = ConsoleDivId;

			this.div.style.top = "0";
			this.div.style.right = "0";
			this.div.style.width = "300px";
			this.div.style.minHeight = "10px";
			this.div.style.border = "1px solid #999";
			this.div.style.fontFamily = "courier, monospace";
			this.div.style.background = "#eee";
			this.div.style.fontSize = "12px";
			this.div.style.padding = "10px";

			AddLink(this.OnHide, "close");
			AddLink(this.OnClear, "clear");
			AddLink(this.OnLog, "test");

			this.inner = ElementFactory.CreateDiv();
			this.div.appendChild(this.inner);

			var content = Global.Document.getElementById("content");
			content.appendChild(this.div);

			Log("Test1");
			Log("Test2");
		}
Esempio n. 2
0
 /// <summary>
 /// Sets the current set of events sunk by a given element. These events will
 /// be fired to the nearest {@link EventListener} specified on any of the
 /// element's parents.
 /// </summary>
 /// <param name="elem">the element whose events are to be retrieved</param>
 /// <param name="eventBits">
 /// a bitfield describing the events sunk on this element (its possible values 
 /// are described in {@link Event})
 /// </param>
 public static void SinkEvents(Element elem, EventFlags eventBits)
 {
     //			impl.sinkEvents(elem, eventBits);
 }
Esempio n. 3
0
 public static EventFlags GetEventsSunk(Element elem)
 {
     return 0;
 }
Esempio n. 4
0
		private void OnClear(MouseEvent evt) {
			Log("OnClear");
			var newInner = this.inner;
			this.inner = ElementFactory.CreateDiv();
			this.div.replaceChild(this.inner, newInner);
		}