Java Doc for AbstractIntroElement.java in  » IDE-Eclipse » ui » org » eclipse » ui » internal » intro » impl » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui » org.eclipse.ui.internal.intro.impl.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.internal.intro.impl.model.AbstractIntroElement

All known Subclasses:   org.eclipse.ui.internal.intro.impl.model.IntroHead,  org.eclipse.ui.internal.intro.impl.model.IntroPartPresentation,  org.eclipse.ui.internal.intro.impl.model.IntroInclude,  org.eclipse.ui.internal.intro.impl.model.IntroExtensionContent,  org.eclipse.ui.internal.intro.impl.model.IntroURLAction,  org.eclipse.ui.internal.intro.impl.model.IntroLaunchBarShortcut,  org.eclipse.ui.internal.intro.impl.model.IntroLaunchBarElement,  org.eclipse.ui.internal.intro.impl.model.AbstractIntroIdElement,
AbstractIntroElement
abstract public class AbstractIntroElement implements Cloneable(Code)
An intro config component. All config components can get to their defining config element or bundle depending from where the element was loaded.

Class Rules:

  • If an element does not appear as a child under any node, then that element does not need a type to be defined.
  • Each subclass must ensure that it properly supports cloning. This means that if a deep copy is needed, the subclass must override the base behavior here.
  • if cloning is not needed, override clone method and throw an unsupported cloning exception. For now, only pages and targets of includes are cloneable.

Note: This is an abstract base class for all classes in the Intro Model.
Clients are not expected to implement or subclass this class, or any of its subclasses.



Field Summary
final public static  intABSTRACT_CONTAINER
     Type constant which identifies the AbstractIntroContainer element.
final public static  intABSTRACT_PAGE
     Type constant which identifies the AbstractIntroPage element.
final public static  intABSTRACT_TEXT
     Type constant which identifies the AbstractText element.
final public static  intANCHOR
     Type constant which identifies the IntroAnchor element.
final public static  intBASE_ELEMENT
     Type constant which identifies the AbstractCommonIntroElement element.
final public static  intCONTAINER_EXTENSION
     Type constant which identifies the IntroContainerExtension element.
final public static  intCONTENT_PROVIDER
     Type constant which identifies the IntroContentProvider element.
final public static  intELEMENT
     Type constant which identifies any element in the Intro Model.
final public static  intGROUP
     Type constant which identifies an IntroDiv element.
final public static  intHEAD
     Type constant which identifies the IntroHead element.
final public static  intHOME_PAGE
     Type constant which identifies an IntroHomePage element.
final public static  intHR
     Type constant for the hr element.
final public static  intHTML
     Type constant which identifies the IntroHtml element.
final public static  intID_ELEMENT
     Type constant which identifies any element in the Intro Model which can have an id.
final public static  intIMAGE
     Type constant which identifies the IntroImage element.
final public static  intINCLUDE
     Type constant which identifies the IntroInclude element.
final public static  intINJECTED_IFRAME
     Type constant which identifies am injected IFrame model element.
final public static  intLAUNCH_BAR
     Type constant which identifies the LaunchBarElement.
final public static  intLAUNCH_BAR_SHORTCUT
     Type constant which identifies the launch bar shortcut.
final public static  intLINK
     Type constant which identifies the IntroLink element.
final public static  intMODEL_ROOT
     Type constant which identifies an IntroModelRoot element.
final public static  intPAGE
     Type constant which identifies the IntroPage element.
final public static  intPAGE_TITLE
     Type constant which identifies the IntroHead element.
final public static  intPRESENTATION
     Type constant which identifies an IntroPartPresentation element.
final public static  intTEXT
     Type constant which identifies the IntroText element.
final public static  intTHEME
     Type constant for the theme element.

Constructor Summary
 AbstractIntroElement(IConfigurationElement element)
     Constructor used when model elements are being loaded from plugin.xml.
 AbstractIntroElement(Element element, Bundle bundle)
     Constructor used when model elements are being loaded from an xml content file.
 AbstractIntroElement(Element element, Bundle bundle, String base)
     Constructor used when model elements are being loaded from an xml content file.

Method Summary
final public static  booleanallElementsAreOfType(AbstractIntroElement[] elements, int elementMask)
     Returns whether the types of all the elements in the given array are among the specified element types.
public  Objectclone()
     Shallow copy.
protected  StringgetAttribute(Element element, String att)
     DOM getAttribute retruns an empty string (not null) if attribute is not defined.
protected  String[]getAttributeList(Element element, String att)
    
public  BundlegetBundle()
     Returns the plugin descriptor of the plugin from which this intro element was loaded.
public  IConfigurationElementgetCfgElement()
     Returns the configuration element from which this intro element was loaded.
public  ElementgetElement()
    
public  StringgetMixinStyle()
    
public  IntroModelRootgetModelRoot()
    
public  AbstractIntroElementgetParent()
     Returns the parent of this intro element.

Rules:

  • For the model root, it retruns null.
  • For the introPart presentation it returns a model root.
  • For Pages, it returns an intro model root.
  • For all other elements, it retruns a subclass of abstract container.
  • for divs that are children of configs (shared divs), it returns the holding model root.
  • for Head elements that are children of Implementation elements (shared Heads), it returns the holding presentation element.
returns the parent of this intro element.
public  AbstractIntroPagegetParentPage()
     Returns the parent page holding this intro element.
abstract public  intgetType()
     Returns the specific model type of this intro element.
public  booleanisOfType(int elementMask)
     Returns whether the element is among the specified element types.
protected  voidloadFromParent()
    
public  voidsetBundle(Bundle bundle)
    
public  voidsetMixinStyle(String mixinStyle)
    
public  voidsetParent(AbstractIntroElement parent)
    

Field Detail
ABSTRACT_CONTAINER
final public static int ABSTRACT_CONTAINER(Code)
Type constant which identifies the AbstractIntroContainer element.



ABSTRACT_PAGE
final public static int ABSTRACT_PAGE(Code)
Type constant which identifies the AbstractIntroPage element.



ABSTRACT_TEXT
final public static int ABSTRACT_TEXT(Code)
Type constant which identifies the AbstractText element.



ANCHOR
final public static int ANCHOR(Code)
Type constant which identifies the IntroAnchor element.



BASE_ELEMENT
final public static int BASE_ELEMENT(Code)
Type constant which identifies the AbstractCommonIntroElement element.



CONTAINER_EXTENSION
final public static int CONTAINER_EXTENSION(Code)
Type constant which identifies the IntroContainerExtension element.



CONTENT_PROVIDER
final public static int CONTENT_PROVIDER(Code)
Type constant which identifies the IntroContentProvider element.



ELEMENT
final public static int ELEMENT(Code)
Type constant which identifies any element in the Intro Model.



GROUP
final public static int GROUP(Code)
Type constant which identifies an IntroDiv element.



HEAD
final public static int HEAD(Code)
Type constant which identifies the IntroHead element.



HOME_PAGE
final public static int HOME_PAGE(Code)
Type constant which identifies an IntroHomePage element.



HR
final public static int HR(Code)
Type constant for the hr element.



HTML
final public static int HTML(Code)
Type constant which identifies the IntroHtml element.



ID_ELEMENT
final public static int ID_ELEMENT(Code)
Type constant which identifies any element in the Intro Model which can have an id. Note: eventhough IntroStandbyContentPart has an id, it does not appear as a child in the model, and so it does not have a type.



IMAGE
final public static int IMAGE(Code)
Type constant which identifies the IntroImage element.



INCLUDE
final public static int INCLUDE(Code)
Type constant which identifies the IntroInclude element.



INJECTED_IFRAME
final public static int INJECTED_IFRAME(Code)
Type constant which identifies am injected IFrame model element.



LAUNCH_BAR
final public static int LAUNCH_BAR(Code)
Type constant which identifies the LaunchBarElement.



LAUNCH_BAR_SHORTCUT
final public static int LAUNCH_BAR_SHORTCUT(Code)
Type constant which identifies the launch bar shortcut.



LINK
final public static int LINK(Code)
Type constant which identifies the IntroLink element.



MODEL_ROOT
final public static int MODEL_ROOT(Code)
Type constant which identifies an IntroModelRoot element.



PAGE
final public static int PAGE(Code)
Type constant which identifies the IntroPage element.



PAGE_TITLE
final public static int PAGE_TITLE(Code)
Type constant which identifies the IntroHead element.



PRESENTATION
final public static int PRESENTATION(Code)
Type constant which identifies an IntroPartPresentation element.



TEXT
final public static int TEXT(Code)
Type constant which identifies the IntroText element.



THEME
final public static int THEME(Code)
Type constant for the theme element.




Constructor Detail
AbstractIntroElement
AbstractIntroElement(IConfigurationElement element)(Code)
Constructor used when model elements are being loaded from plugin.xml.



AbstractIntroElement
AbstractIntroElement(Element element, Bundle bundle)(Code)
Constructor used when model elements are being loaded from an xml content file. Bundle is propagated down the model to enable resolving resources relative to the base of the bundle.
Parameters:
  element -
Parameters:
  pd -



AbstractIntroElement
AbstractIntroElement(Element element, Bundle bundle, String base)(Code)
Constructor used when model elements are being loaded from an xml content file. Bundle AND base is propagated down the model to enable resolving resources relative to the xml content file. The base is set to point to the relative location of the parent folder that holds the content file. In the case of a configExtension, it is set to point to the relative position of the parent folder that holds the extension. Only when needed, the base field is stored in a model element. This saves memory.
Parameters:
  element -
Parameters:
  pd -




Method Detail
allElementsAreOfType
final public static boolean allElementsAreOfType(AbstractIntroElement[] elements, int elementMask)(Code)
Returns whether the types of all the elements in the given array are among the specified element types.
An example of an element mask is as follows:

int elementMask = IntroElement.DIV | IntroElement.DEFAULT_LINK; true if all elements are of the right type, andfalse if the list is empty, or at least oneelement is not of the specified types.




clone
public Object clone() throws CloneNotSupportedException(Code)
Shallow copy. The design of cloning this model assumes that when a container is cloned, all its children must be cloned and reparented to it, hence one clone of this container object. This is why we have a shallow copy here.



getAttribute
protected String getAttribute(Element element, String att)(Code)
DOM getAttribute retruns an empty string (not null) if attribute is not defined. Override this behavior to be consistent with Intro Model, and IConfiguration element.
Parameters:
  element -
Parameters:
  att -



getAttributeList
protected String[] getAttributeList(Element element, String att)(Code)
Util method to parse a comma separated list of values
Parameters:
  element -
Parameters:
  att -



getBundle
public Bundle getBundle()(Code)
Returns the plugin descriptor of the plugin from which this intro element was loaded. In the case of extension, returns the plugin descriptor of the plugin defining the extension.



getCfgElement
public IConfigurationElement getCfgElement()(Code)
Returns the configuration element from which this intro element was loaded. In the case of extension, returns the configuration element of the defining extension.



getElement
public Element getElement()(Code)



getMixinStyle
public String getMixinStyle()(Code)



getModelRoot
public IntroModelRoot getModelRoot()(Code)



getParent
public AbstractIntroElement getParent()(Code)
Returns the parent of this intro element.

Rules:

  • For the model root, it retruns null.
  • For the introPart presentation it returns a model root.
  • For Pages, it returns an intro model root.
  • For all other elements, it retruns a subclass of abstract container.
  • for divs that are children of configs (shared divs), it returns the holding model root.
  • for Head elements that are children of Implementation elements (shared Heads), it returns the holding presentation element.
returns the parent of this intro element. Null only for modelroot.



getParentPage
public AbstractIntroPage getParentPage()(Code)
Returns the parent page holding this intro element. For the model root and the introPart presentation it returns null. For Pages, it returns the page itself. For all other element, returns the holding page.

Exceptions:

  • for divs that are children of configs (shared divs), it returns null.
  • for Head elements that are children of Implementation elements (shared Heads), it returns null.



getType
abstract public int getType()(Code)
Returns the specific model type of this intro element. To be implemented by all subclasses. returns one of the model class types defined in this class.



isOfType
public boolean isOfType(int elementMask)(Code)
Returns whether the element is among the specified element types. An example of an element mask is as follows:

int elementMask = IntroElement.ABSTRACT_CONTAINER; int elementMask = IntroElement.DIV | IntroElement.DEFAULT_LINK;
Parameters:
  elementMask - element mask formed by bitwise OR of element type constantsdefined in this class. true if this element has a matching type, andfalse otherwise.




loadFromParent
protected void loadFromParent()(Code)



setBundle
public void setBundle(Bundle bundle)(Code)



setMixinStyle
public void setMixinStyle(String mixinStyle)(Code)



setParent
public void setParent(AbstractIntroElement parent)(Code)

Parameters:
  parent - The parent to set.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w__w_w.___ja__v___a_2___s__._c_o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.