Java Doc for SchemaComponentNode.java in  » IDE-Netbeans » xml » org » netbeans » modules » xml » schema » ui » nodes » 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 » xml » org.netbeans.modules.xml.schema.ui.nodes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.xml.schema.ui.nodes.SchemaComponentNode

SchemaComponentNode
abstract public class SchemaComponentNode extends AbstractNode implements Node.Cookie,ComponentListener,PropertyChangeListener,Highlighted,ReferenceableProvider,CountChildrenCookie,GetComponentCookie,GetSuperCookie,GotoCookie(Code)

author:
   Todd Fast, todd.fast@sun.com
author:
   Nathan Fiedler



Constructor Summary
public  SchemaComponentNode(SchemaUIContext context, SchemaComponentReference<T> reference, Children children)
    

Method Summary
protected  booleanallowReordering()
     Indicates if this node should allow reordering of its children.
protected  StringapplyHighlights(String name)
     Given a display name, add the appropriate HTML tags to highlight the display name as dictated by any Highlights associated with this node.
Parameters:
  name - current display name.
public  booleancanCopy()
    
public  booleancanCut()
    
public  booleancanDestroy()
    
public  booleancanRename()
    
public  voidchildrenAdded(ComponentEvent evt)
    
public  voidchildrenDeleted(ComponentEvent evt)
    
protected  voidcleanup()
     This is a hook for the subclasses if they want to do something special in the same transaction.
protected  voidcreatePasteTypes(Transferable transferable, List list)
    
protected  SheetcreateSheet()
    
public  voiddestroy()
     Checks for references to this component, and if none are found, remove it from the model.
public  booleanequals(Object o)
    
public  Action[]getActions(boolean context)
    
public  intgetChildCount()
    
public  ComponentgetComponent()
    
public  Class<? extends Component>getComponentType()
    
public  Set<Component>getComponents()
    
public  SchemaUIContextgetContext()
    
public  java.awt.ComponentgetCustomizer()
     Overriden to provide custom customizer.
protected  CustomizerProvidergetCustomizerProvider()
     This api returns the customizer provider.
public  StringgetDefaultDisplayName()
    
public  StringgetDisplayName()
    
public  PasteTypegetDropType(Transferable transferable, int action, int index)
    
public  GotoType[]getGotoTypes()
    
public  HelpCtxgetHelpCtx()
    
public  StringgetHtmlDisplayName()
    
protected  StringgetHtmlTypeDisplayName()
    
protected  InstanceContentgetLookupContents()
     Returns the contents of the lookup.
final public  NewType[]getNewTypes()
    
protected  NewTypesFactorygetNewTypesFactory()
     This api returns the factory which gives back new types for this node.
public  ActiongetPreferredAction()
    
public  SchemaComponentReference<T>getReference()
    
public  NamedReferenceablegetReferenceable()
    
public  SchemaComponentgetSuper()
    
protected  ReferenceableSchemaComponentgetSuperDefinition()
     Finds the super definition of the schema component.
abstract public  StringgetTypeDisplayName()
    
public  inthashCode()
    
public  voidhighlightAdded(Highlight hl)
    
public  voidhighlightRemoved(Highlight hl)
    
public  booleanisDefaultExpanded()
    
protected  booleanisEditable()
    
protected  booleanisValid()
     Determines if this node represents a component that is contained in a valid (non-null) model.
public  voidpropertyChange(PropertyChangeEvent event)
     Reacts to granular property change events from model.
public  voidsetDefaultExpanded(boolean value)
    
public  voidsetName(String value)
    
public  voidsetReferencingNode(Node referencingNode)
     This api is used to set the back pointer to the ReadOnlySchemaComponentNode, which represents this node on UI in case of refrenced components.
protected  voidupdateDisplayName()
     Used by subclasses to update the display name as needed.
public  voidvalueChanged(ComponentEvent evt)
    


Constructor Detail
SchemaComponentNode
public SchemaComponentNode(SchemaUIContext context, SchemaComponentReference<T> reference, Children children)(Code)




Method Detail
allowReordering
protected boolean allowReordering()(Code)
Indicates if this node should allow reordering of its children. The default implementation allows reordering only if there is more than one child component. true if reordering of this node's children is permitted.



applyHighlights
protected String applyHighlights(String name)(Code)
Given a display name, add the appropriate HTML tags to highlight the display name as dictated by any Highlights associated with this node.
Parameters:
  name - current display name. marked up display name.



canCopy
public boolean canCopy()(Code)



canCut
public boolean canCut()(Code)



canDestroy
public boolean canDestroy()(Code)



canRename
public boolean canRename()(Code)



childrenAdded
public void childrenAdded(ComponentEvent evt)(Code)



childrenDeleted
public void childrenDeleted(ComponentEvent evt)(Code)



cleanup
protected void cleanup()(Code)
This is a hook for the subclasses if they want to do something special in the same transaction. For example, when an import gets deleted, we should also remove the namespace declaration.



createPasteTypes
protected void createPasteTypes(Transferable transferable, List list)(Code)



createSheet
protected Sheet createSheet()(Code)



destroy
public void destroy() throws IOException(Code)
Checks for references to this component, and if none are found, remove it from the model.



equals
public boolean equals(Object o)(Code)



getActions
public Action[] getActions(boolean context)(Code)



getChildCount
public int getChildCount()(Code)



getComponent
public Component getComponent()(Code)



getComponentType
public Class<? extends Component> getComponentType()(Code)



getComponents
public Set<Component> getComponents()(Code)



getContext
public SchemaUIContext getContext()(Code)



getCustomizer
public java.awt.Component getCustomizer()(Code)
Overriden to provide custom customizer. Gets the customizer component from customizer provider and displays it as modal dialog. Subclasses who provide customizer should override hasCustomizer and return true.



getCustomizerProvider
protected CustomizerProvider getCustomizerProvider()(Code)
This api returns the customizer provider. Subclasses must override this api to return appropriate customizer provider



getDefaultDisplayName
public String getDefaultDisplayName()(Code)



getDisplayName
public String getDisplayName()(Code)



getDropType
public PasteType getDropType(Transferable transferable, int action, int index)(Code)



getGotoTypes
public GotoType[] getGotoTypes()(Code)



getHelpCtx
public HelpCtx getHelpCtx()(Code)



getHtmlDisplayName
public String getHtmlDisplayName()(Code)



getHtmlTypeDisplayName
protected String getHtmlTypeDisplayName()(Code)



getLookupContents
protected InstanceContent getLookupContents()(Code)
Returns the contents of the lookup. All cookies and other objects that should be findable via the lookup should be added to this.



getNewTypes
final public NewType[] getNewTypes()(Code)



getNewTypesFactory
protected NewTypesFactory getNewTypesFactory()(Code)
This api returns the factory which gives back new types for this node. Default FactoryImpl provides addition of annotation. Subclasses can override this api to allow addition of their allowed child types.



getPreferredAction
public Action getPreferredAction()(Code)



getReference
public SchemaComponentReference<T> getReference()(Code)



getReferenceable
public NamedReferenceable getReferenceable()(Code)
Implement ReferenceableProvider



getSuper
public SchemaComponent getSuper()(Code)



getSuperDefinition
protected ReferenceableSchemaComponent getSuperDefinition()(Code)
Finds the super definition of the schema component. Returns null as default implementation Subclasses which fave global type or reference definitions, must override to return the global reference.



getTypeDisplayName
abstract public String getTypeDisplayName()(Code)



hashCode
public int hashCode()(Code)



highlightAdded
public void highlightAdded(Highlight hl)(Code)



highlightRemoved
public void highlightRemoved(Highlight hl)(Code)



isDefaultExpanded
public boolean isDefaultExpanded()(Code)



isEditable
protected boolean isEditable()(Code)
Determines if this node represents a component that is contained is editable true if component is editable, false otherwise.



isValid
protected boolean isValid()(Code)
Determines if this node represents a component that is contained in a valid (non-null) model. true if model is valid, false otherwise.



propertyChange
public void propertyChange(PropertyChangeEvent event)(Code)
Reacts to granular property change events from model. Updates displayname if needed. Fires properties changed events if needed. Subclasses override if needed.



setDefaultExpanded
public void setDefaultExpanded(boolean value)(Code)



setName
public void setName(String value)(Code)



setReferencingNode
public void setReferencingNode(Node referencingNode)(Code)
This api is used to set the back pointer to the ReadOnlySchemaComponentNode, which represents this node on UI in case of refrenced components.



updateDisplayName
protected void updateDisplayName()(Code)
Used by subclasses to update the display name as needed. The default implementation updates the display name for named schema components. Note, this method may be called from the constructor, so be sure to avoid using member variables!



valueChanged
public void valueChanged(ComponentEvent evt)(Code)



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