KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > intro > impl > model > IntroPageTitle


1 /*******************************************************************************
2  * Copyright (c) 2004, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.internal.intro.impl.model;
13
14 import org.osgi.framework.Bundle;
15 import org.w3c.dom.Element JavaDoc;
16
17 /**
18  * An intro element that represents a page title.
19  */

20 public class IntroPageTitle extends IntroText {
21
22     protected static final String JavaDoc TAG_TITLE = "title"; //$NON-NLS-1$
23

24     IntroPageTitle(Element JavaDoc element, Bundle bundle) {
25         super(element, bundle);
26     }
27
28     /**
29      * @return Returns the Title text.
30      */

31     public String JavaDoc getTitle() {
32         return getText();
33     }
34
35     /*
36      * (non-Javadoc)
37      *
38      * @see org.eclipse.ui.internal.intro.impl.model.IntroElement#getType()
39      */

40     public int getType() {
41         return AbstractIntroElement.PAGE_TITLE;
42     }
43
44 }
45
Popular Tags