01: /*******************************************************************************
02: * Copyright (c) 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.intro.impl.model;
11:
12: import org.osgi.framework.Bundle;
13: import org.w3c.dom.Element;
14:
15: /**
16: * An Intro IFrame element that has been injected at runtime to embed a url. It
17: * is placed as the only child of a target div to display the content of a url.
18: * The URL can be any valid URL.
19: */
20: public class IntroInjectedIFrame extends AbstractIntroIdElement {
21:
22: private String url;
23:
24: IntroInjectedIFrame(Element element, Bundle bundle) {
25: super (element, bundle);
26: }
27:
28: public void setIFrameURL(String url) {
29: this .url = url;
30: }
31:
32: public String getIFrameURL() {
33: return this .url;
34: }
35:
36: public int getType() {
37: return AbstractIntroElement.INJECTED_IFRAME;
38: }
39:
40: }
|