Java Doc for CustomComponent.java in  » Web-Framework » Millstone » org » millstone » base » ui » 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 » Web Framework » Millstone » org.millstone.base.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.millstone.base.ui.CustomComponent

All known Subclasses:   org.millstone.examples.features.Feature,  org.millstone.examples.features.FeatureBrowser,
CustomComponent
public class CustomComponent implements Component(Code)
Custom component provides simple implementation of Component interface for creation of new UI components by composition of existing components.

The component is used by inheriting the CustomComponent class and setting composite root inside the Custom component. The composite root itself can contain more components, but their interfaces are hidden from the users.


author:
   IT Mill Ltd.
version:
   3.1.1
since:
   3.0



Constructor Summary
public  CustomComponent()
     Construct new custom component.
public  CustomComponent(Component compositionRoot)
     Construct new custom component.

Method Summary
public  voidaddListener(RepaintRequestListener listener)
    
public  voidaddListener(Component.Listener listener)
    
public  voidattach()
    
public  voidchangeVariables(Object source, Map variables)
    
public  voidchildRequestedRepaint(Collection alreadyNotified)
    
public  voiddependsOn(VariableOwner depended)
    
public  voiddetach()
    
public  ApplicationgetApplication()
    
public  StringgetCaption()
    
public  StringgetComponentType()
     Gets the component type. The component type is textual type of the component.
final protected  ComponentgetCompositionRoot()
     Returns the composition root.
public  SetgetDirectDependencies()
    
public  ResourcegetIcon()
    
public  LocalegetLocale()
     The icon of the custom component is by default the the locale of the parent or null if the parent is not set.
public  ComponentgetParent()
    
public  StringgetStyle()
     Custom component does not implement custom styles by default and this function returns null.
public  WindowgetWindow()
    
public  booleanisEnabled()
    
public  booleanisImmediate()
     Custom component is by default in the non-immediate mode.
public  booleanisReadOnly()
     The custom components are not readonly by default.
public  booleanisVisible()
    
public  voidpaint(PaintTarget target)
    
public  voidremoveDirectDependency(VariableOwner depended)
    
public  voidremoveListener(RepaintRequestListener listener)
    
public  voidremoveListener(Component.Listener listener)
    
public  voidrequestRepaint()
    
public  voidrequestRepaintRequests()
    
public  voidsetComponentType(String componentType)
     Sets the component type. The component type is textual type of the component.
final protected  voidsetCompositionRoot(Component compositionRoot)
     Sets the compositions root.
public  voidsetEnabled(boolean enabled)
     The custom component is allways enabled by default.
public  voidsetParent(Component parent)
    
public  voidsetReadOnly(boolean readOnly)
     Changing the read-only mode of the component is not supported by default.
public  voidsetStyle(String style)
     Changing the style of the component is not supported by default.
public  voidsetVisible(boolean visible)
    


Constructor Detail
CustomComponent
public CustomComponent()(Code)
Construct new custom component.

The component is implemented by wrapping the methods of the composition root component given as parameter. The composition root must be set before the component can be used.




CustomComponent
public CustomComponent(Component compositionRoot)(Code)
Construct new custom component.

The component is implemented by wrapping the methods of the composition root component given as parameter. The composition root must not be null and can not be changed after the composition.


Parameters:
  compositionRoot - The root of the composition component tree.




Method Detail
addListener
public void addListener(RepaintRequestListener listener)(Code)



addListener
public void addListener(Component.Listener listener)(Code)
Custom component does not implement any component events by default



attach
public void attach()(Code)



changeVariables
public void changeVariables(Object source, Map variables)(Code)
The custom component does not have any variables by default



childRequestedRepaint
public void childRequestedRepaint(Collection alreadyNotified)(Code)



dependsOn
public void dependsOn(VariableOwner depended)(Code)



detach
public void detach()(Code)



getApplication
public Application getApplication()(Code)



getCaption
public String getCaption()(Code)
The caption of the custom component is by default the the caption of the root component, or null if the root is not set



getComponentType
public String getComponentType()(Code)
Gets the component type. The component type is textual type of the component. This is included in the UIDL as component tag attribute. If the component type is null (default), the component tag is not included in the UIDL at all. Returns the componentType. String



getCompositionRoot
final protected Component getCompositionRoot()(Code)
Returns the composition root. Component Composition root



getDirectDependencies
public Set getDirectDependencies()(Code)



getIcon
public Resource getIcon()(Code)
The icon of the custom component is by default the the icon of the root component, or null if the root is not set



getLocale
public Locale getLocale()(Code)
The icon of the custom component is by default the the locale of the parent or null if the parent is not set.



getParent
public Component getParent()(Code)



getStyle
public String getStyle()(Code)
Custom component does not implement custom styles by default and this function returns null.



getWindow
public Window getWindow()(Code)



isEnabled
public boolean isEnabled()(Code)
Custom component is allways enabled by default



isImmediate
public boolean isImmediate()(Code)
Custom component is by default in the non-immediate mode. The immediateness of the custom component is defined by the components it is composed of.



isReadOnly
public boolean isReadOnly()(Code)
The custom components are not readonly by default.



isVisible
public boolean isVisible()(Code)



paint
public void paint(PaintTarget target) throws PaintException(Code)



removeDirectDependency
public void removeDirectDependency(VariableOwner depended)(Code)



removeListener
public void removeListener(RepaintRequestListener listener)(Code)



removeListener
public void removeListener(Component.Listener listener)(Code)
Custom component does not implement any component events by default



requestRepaint
public void requestRepaint()(Code)



requestRepaintRequests
public void requestRepaintRequests()(Code)



setComponentType
public void setComponentType(String componentType)(Code)
Sets the component type. The component type is textual type of the component. This is included in the UIDL as component tag attribute. If the component type is null (default), the component tag is not included in the UIDL at all.
Parameters:
  componentType - The componentType to set



setCompositionRoot
final protected void setCompositionRoot(Component compositionRoot)(Code)
Sets the compositions root.

The composition root must be set to non-null value before the component can be used. The composition root can only be set once.


Parameters:
  compositionRoot - The root of the composition component tree.



setEnabled
public void setEnabled(boolean enabled)(Code)
The custom component is allways enabled by default.



setParent
public void setParent(Component parent)(Code)



setReadOnly
public void setReadOnly(boolean readOnly)(Code)
Changing the read-only mode of the component is not supported by default.



setStyle
public void setStyle(String style)(Code)
Changing the style of the component is not supported by default.



setVisible
public void setVisible(boolean visible)(Code)



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.