Java Doc for DesignComponent.java in  » IDE-Netbeans » vmd.analyzer » org » netbeans » modules » vmd » api » 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 Netbeans » vmd.analyzer » org.netbeans.modules.vmd.api.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.vmd.api.model.DesignComponent

DesignComponent
final public class DesignComponent (Code)
This class represents a component in a document. A component holds mainly its children, property values, and presenters.

A component can be created by a DesignDocument.createComponent method only. The component can be used only in the document that created the component. Each component has its component id that is unique inside the document. The component is a type id with component kind.

A component could be placed into tree hierarchy - each component has its parent component and its children.

A component is holding a map of property name/value pairs. When a component descriptor is assigned to the component it automatically loads up a default property values. In case that the component already contains values that are compatible with a new property descriptors, these values we stay unchanged. Otherwise they are overriden by its default value.

A component has a set of presenter. Presenters are a little bit smarter listeners. They also can be assigned/held by a component directly. Presenters are created each time a new component descriptor is assigned.
author:
   David Kaspar




Constructor Summary
 DesignComponent(DesignDocument document, long componentID, ComponentDescriptor componentDescriptor)
    

Method Summary
public  voidaddComponent(DesignComponent component)
     Adds a child component into this component.
 voiddumpComponent(String indent)
    
public  ComponentDescriptorgetComponentDescriptor()
     Returns a component descriptor.
public  longgetComponentID()
     Returns a component id.
public  Collection<DesignComponent>getComponents()
     Returns a collection of children components.
public  DesignDocumentgetDocument()
     Returns a document where the component is living.
public  DesignComponentgetParentComponent()
     Returns a parent component of this component.
public  TgetPresenter(Class<T> presenterClass)
     Returns a presenter for a specific presenter id.
public  Collection<? extends T>getPresenters(Class<T> presenterClass)
     Returns a list of presenters in a specific presenter category.
 PropertyValuegetReferenceValue()
    
public  TypeIDgetType()
    
public  booleanisDefaultValue(String propertyName)
     Resolves whether a specified property has a default value as current value.
public  PropertyValuereadProperty(String propertyName)
    
public  voidremoveComponent(DesignComponent component)
     Removes a child component from this component.
public  voidremoveFromParentComponent()
     Removes the component from its parent component.
public  voidresetToDefault(String propertyName)
     Reset a specific property to its default value.
 voidsetComponentDescriptor(ComponentDescriptor componentDescriptor, boolean useUndo)
    
public  StringtoString()
     Returns a component debug string.
public  voidwriteProperty(String propertyName, PropertyValue propertyValue)
     Writes a property value.


Constructor Detail
DesignComponent
DesignComponent(DesignDocument document, long componentID, ComponentDescriptor componentDescriptor)(Code)




Method Detail
addComponent
public void addComponent(DesignComponent component)(Code)
Adds a child component into this component.
Parameters:
  component - the child component



dumpComponent
void dumpComponent(String indent)(Code)



getComponentDescriptor
public ComponentDescriptor getComponentDescriptor()(Code)
Returns a component descriptor. the compatible descriptor, null if not assigned



getComponentID
public long getComponentID()(Code)
Returns a component id. the component id



getComponents
public Collection<DesignComponent> getComponents()(Code)
Returns a collection of children components. the collection of children



getDocument
public DesignDocument getDocument()(Code)
Returns a document where the component is living. the document



getParentComponent
public DesignComponent getParentComponent()(Code)
Returns a parent component of this component. the parent component



getPresenter
public T getPresenter(Class<T> presenterClass)(Code)
Returns a presenter for a specific presenter id.
Parameters:
  presenterClass - the presenter class the presenter



getPresenters
public Collection<? extends T> getPresenters(Class<T> presenterClass)(Code)
Returns a list of presenters in a specific presenter category. A presenter matches when the specified presenter category is a prefix of the id of the presenter.
Parameters:
  presenterClass - the presenter category class a collection of presenters, non-null value



getReferenceValue
PropertyValue getReferenceValue()(Code)



getType
public TypeID getType()(Code)
Returns a component type id the component type id



isDefaultValue
public boolean isDefaultValue(String propertyName)(Code)
Resolves whether a specified property has a default value as current value. Check is done on the PropertyValue object level. This method returns true only when DesignComponent default PropertyValue == current PropertyValue for given propertyName.
Parameters:
  propertyName - the property name true if a current PropertyValue is the same PropertyValue object which has been created on the creation of the DesignComponent



readProperty
public PropertyValue readProperty(String propertyName)(Code)
Returns a property value of a specified property
Parameters:
  propertyName - the property name the property value



removeComponent
public void removeComponent(DesignComponent component)(Code)
Removes a child component from this component.
Parameters:
  component - the child component



removeFromParentComponent
public void removeFromParentComponent()(Code)
Removes the component from its parent component.



resetToDefault
public void resetToDefault(String propertyName)(Code)
Reset a specific property to its default value.
Parameters:
  propertyName - the property name



setComponentDescriptor
void setComponentDescriptor(ComponentDescriptor componentDescriptor, boolean useUndo)(Code)



toString
public String toString()(Code)
Returns a component debug string. the string



writeProperty
public void writeProperty(String propertyName, PropertyValue propertyValue)(Code)
Writes a property value.
Parameters:
  propertyName - the property name
Parameters:
  propertyValue - the property value



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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.