Java Doc for Component.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) 


org.millstone.base.ui.Component

All known Subclasses:   org.millstone.base.ui.AbstractComponent,  org.millstone.base.ui.CustomComponent,  org.millstone.base.ui.Upload,
Component
public interface Component extends Paintable,VariableOwner(Code)
The top-level component interface which must be implemented by all MillStone UI components. It contains the methods the MillStone framework needs to handle the components in a user interface.
author:
   IT Mill Ltd.
version:
   3.1.1
since:
   3.0

Inner Class :public class Event extends EventObject
Inner Class :public interface Listener extends EventListener
Inner Class :public class ErrorEvent extends Event
Inner Class :public interface ErrorListener extends EventListener
Inner Class :public interface Focusable



Method Summary
public  voidaddListener(Component.Listener listener)
     Registers a new component event listener for this component.
public  voidattach()
     Notifies the component that it is connected to an application.
public  voidchildRequestedRepaint(Collection alreadyNotified)
     The children must call this method when they need repainting.
public  voiddetach()
     Notifies the component that it is detached from the application.

The Component.getApplication() and Component.getWindow() methods might return null after this method is called.

The caller of this method is Component.setParent(Component) if the parent is in the application.

public  ApplicationgetApplication()
     Gets the component's parent application.
public  StringgetCaption()
     Gets the caption of the component.
public  ResourcegetIcon()
     Gets the component's icon.
public  LocalegetLocale()
     Gets the locale of this component. This component's locale.
public  ComponentgetParent()
     Gets the visual parent of the component.
public  StringgetStyle()
     Gets the look-and-feel style of the component.
public  WindowgetWindow()
     Gets the component's parent window.
public  booleanisEnabled()
    

Tests if the component is enabled or not.

public  booleanisReadOnly()
     Tests if the component is in read-only mode.
public  booleanisVisible()
     Tests if the component is visible or not.
public  voidremoveListener(Component.Listener listener)
     Removes a previously registered component event listener from this component.
public  voidsetEnabled(boolean enabled)
     Enable or disable the component.
public  voidsetParent(Component parent)
     Sets the component's parent component.
public  voidsetReadOnly(boolean readOnly)
     Sets the component's to read-only mode to the specified state.
public  voidsetStyle(String style)
     Sets the look-and-feel style of the component.
public  voidsetVisible(boolean visible)
     Sets the components visibility status.



Method Detail
addListener
public void addListener(Component.Listener listener)(Code)
Registers a new component event listener for this component.
Parameters:
  listener - the new Listener to be registered



attach
public void attach()(Code)
Notifies the component that it is connected to an application. This method is always called before the component is first time painted and is suitable to be extended. The getApplication() and getWindow() functions might return null before this method is called.

The caller of this method is Component.setParent(Component) if the parent is already in the application. If the parent is not in the application, it must call the Component.attach() for all its children when it will be added to the application.




childRequestedRepaint
public void childRequestedRepaint(Collection alreadyNotified)(Code)
The children must call this method when they need repainting. The call must be made event in the case the children sent the repaint request themselves.
Parameters:
  alreadyNotified - A collection of repaint request listeners that have beenalready notified by the child. This component should not renotify the listedlisteners again. The container given as parameter must be modifiable as the component might modify it and pass it forwards. Null parameter is interpretedas empty collection.



detach
public void detach()(Code)
Notifies the component that it is detached from the application.

The Component.getApplication() and Component.getWindow() methods might return null after this method is called.

The caller of this method is Component.setParent(Component) if the parent is in the application. When the parent is detached from the application it is its response to call Component.detach() for all the children and to detach itself from the terminal.




getApplication
public Application getApplication()(Code)
Gets the component's parent application. If the component does not yet belong to a application null is returned. parent application of the component or null



getCaption
public String getCaption()(Code)
Gets the caption of the component. Caption is the visible name of the component. component's caption String



getIcon
public Resource getIcon()(Code)
Gets the component's icon. A component may have a graphical icon associated with it, this method retrieves it if it is defined. the component's icon or null if it not defined.



getLocale
public Locale getLocale()(Code)
Gets the locale of this component. This component's locale. If this component does not have a locale, the locale of its parent is returned. Eventually localeof application is returned. If application does not have its own locale the locale is determined by Locale.getDefautl(). Returns null if the component does not have its own locale and has not yet been added to a containment hierarchy such that the locale can be determined from the containing parent.



getParent
public Component getParent()(Code)
Gets the visual parent of the component. The components can be nested but one component can have only one parent. the parent component



getStyle
public String getStyle()(Code)
Gets the look-and-feel style of the component. component's styleValue of property style.



getWindow
public Window getWindow()(Code)
Gets the component's parent window. If the component does not yet belong to a window null is returned. parent window of the component or null



isEnabled
public boolean isEnabled()(Code)

Tests if the component is enabled or not. All the variable change events are blocked from disabled components. Also the component should visually indicate that it is disabled (by shading the component for example). All hidden (isVisible() == false) components must return false.

Components should be enabled by default.

true if the component is enabled,false if not
See Also:   VariableOwner.isEnabled



isReadOnly
public boolean isReadOnly()(Code)
Tests if the component is in read-only mode. true if the component is in read-only mode,false if not



isVisible
public boolean isVisible()(Code)
Tests if the component is visible or not. Visibility defines if the component is shown in the UI or not. Default is true. true if the component is visible in the UI,false if not



removeListener
public void removeListener(Component.Listener listener)(Code)
Removes a previously registered component event listener from this component.
Parameters:
  listener - the listener to be removed



setEnabled
public void setEnabled(boolean enabled)(Code)
Enable or disable the component. Being enabled means that the component can be edited. This method will trigger a org.millstone.base.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent .
Parameters:
  enabled - boolean value specifying if the component should beenabled after the call or not



setParent
public void setParent(Component parent)(Code)
Sets the component's parent component.

This method calls automatically Component.attach() if the parent is attached to a window (or is itself a window}, and Component.detach() if parent is set null, but the component was in the application.

This method is rarely called directly. Instead the ComponentContainer.addComponent(Component) method is used to add components to container, which call this method implicitly.
Parameters:
  parent - the new parent component




setReadOnly
public void setReadOnly(boolean readOnly)(Code)
Sets the component's to read-only mode to the specified state. This method will trigger a org.millstone.base.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent .
Parameters:
  readOnly - boolean value specifying if the component should bein read-only mode after the call or not



setStyle
public void setStyle(String style)(Code)
Sets the look-and-feel style of the component. This method will trigger a org.millstone.base.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent . .
Parameters:
  style - new style of the component



setVisible
public void setVisible(boolean visible)(Code)
Sets the components visibility status. Visibility defines if the component is shown in the UI or not.
Parameters:
  visible - Boolean value specifying if the component should bevisible after the call or not



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