Java Doc for SComponent.java in  » Swing-Library » Swinglets » com » javelin » swinglets » 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 » Swing Library » Swinglets » com.javelin.swinglets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.javelin.swinglets.SComponent

All known Subclasses:   com.javelin.swinglets.table.STableFooter,  com.javelin.swinglets.STree,  com.javelin.swinglets.SContainer,  com.javelin.swinglets.SSeparator,  com.javelin.swinglets.SLabel,  com.javelin.swinglets.STextComponent,  com.javelin.swinglets.SAbstractButton,  com.javelin.swinglets.SHidden,  com.javelin.swinglets.SIcon,  com.javelin.swinglets.SList,  com.javelin.swinglets.table.STableHeader,  com.javelin.swinglets.SComboBox,  com.javelin.swinglets.STable,  com.javelin.swinglets.SCharacter,  com.javelin.swinglets.SInclude,  com.javelin.swinglets.SObject,  com.javelin.swinglets.SServlet,
SComponent
abstract public class SComponent (Code)
SComponent is the top level object in the Swinglet Document Model.

The Swinglet DOM model is designed to look like the Swing DOM model.

There are many issues that prevent the Swing classes unsuitable for use in a server. For example the Swing code runs in is own thread. Another issue is the LookAndFeel which is VM wide. In Swinglets it needs to vary on a Thread by Thread, and even Component by Component basis. Another issue is that Swing paints its components onto a Graphic area, whilst HTML is written to an output stream. Swinglets has been designed to handle both scenarios.

Every component can set a Look and Feel. The Look and feel determines how to render the Component.

Every component has a name. This property is infrequently used in Swing but is used to heavily in Swinglets to reference the Components.

Every component is associated with a SwingletManager. The SwingletManager is used to manage the context of the components.

Every component fires property change events for bound properties. These can be listening to using the property change listeners. Every component also has a hashtable of key-value pairs associated with it called clientProperties,

Every component can have a number of scripts associated with it.
author:
   Robin Sharp



Field Summary
protected static  longCOUNTER
    
protected  ActionListeneractionListener
    
protected  SColorbackground
    
protected  SBorderborder
    
protected  booleancached
    
protected  HashtableclientProperties
    
protected  StringcomponentUrl
    
protected  Cursorcursor
    
protected  booleandirty
    
protected  booleanenabled
    
protected  booleanfiringSuspended
    
protected  SFontfont
    
protected  SColorforeground
    
protected  inthorizontalAlignment
    
protected  Localelocale
    
protected  SLookAndFeellookAndFeel
    
protected  Stringname
    
protected  booleanopaque
    
protected  SContainerparent
    
protected  PropertyChangeSupportpropertyChangeSupport
    
 PrintWriterpw
    
protected  booleanrendered
    
protected  Vectorscripts
    
protected  Dimensionsize
    
 StringWritersw
    
protected  inttabIndex
    
protected  StringtoolTipText
    
protected  SComponentUIui
    
protected  intverticalAlignment
    
protected  booleanvisible
    

Constructor Summary
public  SComponent()
    

Method Summary
public  SComponentaddActionListener(ActionListener l)
     Add an ActionEvent listener.
public  SComponentaddComponentListener(ComponentListener listener)
     Adds the specified component listener to receive component events from this component.
public  SComponentaddFocusListener(FocusListener listener)
     Adds the specified focus listener to receive focus events from this component when this component gains input focus.
public  SComponentaddKeyListener(KeyListener listener)
     Adds the specified key listener to receive key events from this component.
public  SComponentaddMouseListener(MouseListener listener)
     Adds the specified mouse listener to receive mouse events from this component.
public  SComponentaddMouseMotionListener(MouseMotionListener listener)
     Adds the specified mouse motion listener to receive mouse motion events from this component.
public  voidaddNotify()
     Notifies this component that it has been added to a container.
public synchronized  SComponentaddPropertyChangeListener(PropertyChangeListener listener)
    
public synchronized  SComponentaddPropertyChangeListener(String propertyName, PropertyChangeListener listener)
    
public  SComponentaddScript(SScript script)
     Add the script.
protected  SComponentaddUIListener(EventListener listener)
     Utility method to add a listener to the current UI.
protected  StringconstructComponentName()
     Construct a name for this component.
public  voiddispatchEvent(AWTEvent event)
     Dispatches an event to this component or one of its sub components.
public  booleanequals(Object object)
     Equals is based on the name and class.
public  voidfirePropertyChange()
    
final public  voidfirePropertyChange(String propertyName, Object oldValue, Object newValue)
    
final protected  voidfirePropertyChange(String propertyName, byte oldValue, byte newValue)
    
final protected  voidfirePropertyChange(String propertyName, char oldValue, char newValue)
    
final protected  voidfirePropertyChange(String propertyName, short oldValue, short newValue)
    
final protected  voidfirePropertyChange(String propertyName, int oldValue, int newValue)
    
final protected  voidfirePropertyChange(String propertyName, long oldValue, long newValue)
    
final protected  voidfirePropertyChange(String propertyName, float oldValue, float newValue)
    
final protected  voidfirePropertyChange(String propertyName, double oldValue, double newValue)
    
final protected  voidfirePropertyChange(String propertyName, boolean oldValue, boolean newValue)
    
public  SContainergetAncestorNamed(String name)
     Convenience method for searching above this in the component hierarchy and returns the first object of name it finds.
public  SContainergetAncestorOfClass(Class clazz)
     Convenience method for searching above this in the component hierarchy and returns the first object of clazz it finds.
public  SColorgetBackground()
     Gets the background color of this component, or the parents background.
public  SBordergetBorder()
     Returns the border of this component or null if no border is currently set.
public  EnumerationgetClientKeys()
    
final public  ObjectgetClientProperty(Object key)
     Returns the value of the property with the specified key.
final public  ObjectgetClientProperty(Object key, Object defaultValue)
     Returns the value of the property with the specified key.
public  intgetClientPropertyCount()
    
public  SComponentgetComponent(String name)
     Get a sub component by name.
public  StringgetComponentUrl()
     Get the URL for this component.
public  StringgetContentType()
     Returns the MIME type for the current components.
public  CursorgetCursor()
     Get the cursor.
public  SFontgetFont()
     Gets the font of this component.
public  SColorgetForeground()
     Gets the foreground color of this component.
public  intgetHorizontalAlignment()
     Returns the alignment of the component along the X axis.
public  LocalegetLocale()
     Gets the locale of this component.
public  SLookAndFeelgetLookAndFeel()
    
public  StringgetName()
     Gets the name of the component.
public  SContainergetParent()
     Gets the parent of this component.
public  intgetScriptCount()
     Get script count.
public  EnumerationgetScripts()
     Get the script.
public  DimensiongetSize()
     Returns the size of this component in the form of a
public  SwingletManagergetSwingletManager()
     Get the SwingletManager associated with this session. SwingletManagers are associated by thread.
public  intgetTabIndex()
     Get the tab index.
public  StringgetToolTipText()
    
public  SContainergetTopLevelAncestor()
     Get the top most component in the containment hierarchy.
public  SComponentUIgetUI()
     Get the UI on this component.
public  ClassgetUIClass()
     Returns the name of the L&F class that renders this component.
public  intgetVerticalAlignment()
     Returns the alignment of the component along the Y axis.
final protected  booleanhasListeners()
     Check if there are any listeners on the bean.
final protected  booleanhasListeners(String propertyName)
     Check if there are any listeners for a specific property.
public  inthashCode()
     Hashcode.
public  booleanisCached()
     Check whether the painting cached in a String.
public  booleanisEnabled()
     Determines whether this component is enabled.
public  booleanisFiringSuspended()
    
public  booleanisOpaque()
     Check whether this component is opaque.
public  booleanisVisible()
     Determines whether this component is visible.
public  voidonFirstPaint()
     This is the first time this object is painted.
public  voidonPaintComponent()
    
public  voidonPaintComponentFooter()
    
public  voidonPaintComponentHeader()
    
public  voidonPaintHeader()
    
public  voidpaint(Object out)
     Paint this component header, then body to the Object This can be a PrintWriter, OutputStream or Graphics, depending on the LookAndFeel.
public  voidpaintComponent(Object out)
     Paint this component body.
public  voidpaintComponentFooter(Object out)
     Paint this component footer.
public  voidpaintComponentHeader(Object out)
     Paint this component header.
public  voidpaintHeader(Object out)
     Paint this component in the header.
public  voidprocessActionEvent(ActionEvent event)
     Process an ActionEvent.
protected  voidprocessEvent(AWTEvent event)
     Processes events occurring on this component.
final public  SComponentputClientProperty(Object key, Object value)
     Add an arbitrary key/value "client property" to this component.
public  SComponentremoveActionListener(ActionListener l)
     Remove an ActionEvent listener.
public  SComponentremoveComponentListener(ComponentListener listener)
     Removes the specified component listener so that it no longer receives component events from this component.
public  SComponentremoveFocusListener(FocusListener listener)
     Removes the specified focus listener so that it no longer receives focus events from this component.
public  SComponentremoveKeyListener(KeyListener listener)
     Removes the specified key listener so that it no longer receives key events from this component.
public  SComponentremoveMouseListener(MouseListener listener)
     Removes the specified mouse listener so that it no longer receives mouse events from this component.
public  SComponentremoveMouseMotionListener(MouseMotionListener listener)
     Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.
public  voidremoveNotify()
     Notifies this component that it has been remove from its container.
public synchronized  SComponentremovePropertyChangeListener(PropertyChangeListener listener)
    
public synchronized  SComponentremovePropertyChangeListener(String propertyName, PropertyChangeListener listener)
    
public  SComponentremoveScript(SScript script)
     Remove the script.
protected  SComponentremoveUIListener(EventListener listener)
     Utility method to remove a listener to the current UI.
public  SComponentsetBackground(SColor background)
     Sets the background color of this component.
public  SComponentsetBorder(SBorder border)
     Sets the border of this component.
public  voidsetCached(boolean cached)
     Set whether the painting cached in a String.
public  voidsetCursor(Cursor cursor)
     Set the cursor.
public  SComponentsetEnabled(boolean enabled)
     Enables or disables this component depending on the value of parameter. Netscape doesn't implement this.
public  voidsetFiringSuspended(boolean firingSuspended)
    
public  SComponentsetFont(String name, int style, int size)
     Sets the font of this component.
public  SComponentsetFont(SFont font)
     Sets the font of this component.
public  SComponentsetForeground(SColor foreground)
     Sets the foreground color of this component.
public  SComponentsetHorizontalAlignment(int horizontalAlignment)
     Sets the alignment of the component along the X axis.
public  SComponentsetLocale(Locale locale)
     Sets the locale of this component.
public  SComponentsetLookAndFeel(String lookAndFeel)
     Set the Look and Feel, and update the UI.
public  SComponentsetLookAndFeel(SLookAndFeel lookAndFeel)
     Set the Look and Feel, and update the UI.
public  SComponentsetName(String name)
     Sets the name of the component to the specified string.
public  SComponentsetOpaque(boolean opaque)
     Sets the opacity background color of this component.
public  SComponentsetParent(SContainer parent)
     Sets the parent of this component.
public  SComponentsetSize(int width, int height)
     Resizes this component so that it has width
public  SComponentsetSize(Dimension size)
     Resizes this component so that it has width
public  voidsetSwingletManager(SwingletManager swingletManager)
     Set the SwingletManager associated with this session.
public  SComponentsetTabIndex(int tabIndex)
     Set the tab index.
public  SComponentsetToolTipText(String toolTipText)
     C Registers the text to display in a tool tip.
public  SComponentsetUI(SComponentUI ui)
     Set the UI on this component.
public  SComponentsetValueAsText(String text)
     Set the value as Text.
public  SComponentsetVerticalAlignment(int verticalAlignment)
     Sets the alignment of the component along the Y axis.
public  SComponentsetVisible(boolean visible)
     Shows or hides this component depending on the value of parameter .
public  StringtoString()
     To String returns the stream that would be painted.

Field Detail
COUNTER
protected static long COUNTER(Code)



actionListener
protected ActionListener actionListener(Code)



background
protected SColor background(Code)



border
protected SBorder border(Code)



cached
protected boolean cached(Code)



clientProperties
protected Hashtable clientProperties(Code)



componentUrl
protected String componentUrl(Code)



cursor
protected Cursor cursor(Code)



dirty
protected boolean dirty(Code)



enabled
protected boolean enabled(Code)



firingSuspended
protected boolean firingSuspended(Code)



font
protected SFont font(Code)



foreground
protected SColor foreground(Code)



horizontalAlignment
protected int horizontalAlignment(Code)



locale
protected Locale locale(Code)



lookAndFeel
protected SLookAndFeel lookAndFeel(Code)



name
protected String name(Code)



opaque
protected boolean opaque(Code)



parent
protected SContainer parent(Code)



propertyChangeSupport
protected PropertyChangeSupport propertyChangeSupport(Code)



pw
PrintWriter pw(Code)



rendered
protected boolean rendered(Code)



scripts
protected Vector scripts(Code)



size
protected Dimension size(Code)



sw
StringWriter sw(Code)



tabIndex
protected int tabIndex(Code)



toolTipText
protected String toolTipText(Code)



ui
protected SComponentUI ui(Code)



verticalAlignment
protected int verticalAlignment(Code)



visible
protected boolean visible(Code)




Constructor Detail
SComponent
public SComponent()(Code)
Construct a new SComponent;




Method Detail
addActionListener
public SComponent addActionListener(ActionListener l)(Code)
Add an ActionEvent listener.



addComponentListener
public SComponent addComponentListener(ComponentListener listener)(Code)
Adds the specified component listener to receive component events from this component.

This method will set the listener on the current look and feel.




addFocusListener
public SComponent addFocusListener(FocusListener listener)(Code)
Adds the specified focus listener to receive focus events from this component when this component gains input focus.

This method will set the listener on the current look and feel.




addKeyListener
public SComponent addKeyListener(KeyListener listener)(Code)
Adds the specified key listener to receive key events from this component.

This method will set the listener on the current look and feel.




addMouseListener
public SComponent addMouseListener(MouseListener listener)(Code)
Adds the specified mouse listener to receive mouse events from this component.

This method will set the listener on the current look and feel.




addMouseMotionListener
public SComponent addMouseMotionListener(MouseMotionListener listener)(Code)
Adds the specified mouse motion listener to receive mouse motion events from this component.

This method will set the listener on the current look and feel.




addNotify
public void addNotify()(Code)
Notifies this component that it has been added to a container.



addPropertyChangeListener
public synchronized SComponent addPropertyChangeListener(PropertyChangeListener listener) throws TooManyListenersException(Code)

See Also:   com.javelin.swinglets.SComponent.addPropertyChangeListener(java.beans.PropertyChangeListener)



addPropertyChangeListener
public synchronized SComponent addPropertyChangeListener(String propertyName, PropertyChangeListener listener) throws TooManyListenersException(Code)

See Also:   com.javelin.swinglets.SComponent.addPropertyChangeListener(java.lang.Stringjava.beans.PropertyChangeListener)
since:
   JDK 1.2



addScript
public SComponent addScript(SScript script)(Code)
Add the script. This will add one script.



addUIListener
protected SComponent addUIListener(EventListener listener)(Code)
Utility method to add a listener to the current UI.



constructComponentName
protected String constructComponentName()(Code)
Construct a name for this component. Called by getName() when the name is null. This based on an incrementing counter, so that every component is guaranteed to have a unique name within a VM.



dispatchEvent
public void dispatchEvent(AWTEvent event)(Code)
Dispatches an event to this component or one of its sub components.



equals
public boolean equals(Object object)(Code)
Equals is based on the name and class.



firePropertyChange
public void firePropertyChange()(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange



firePropertyChange
final public void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange(java.lang.Stringjava.lang.Objectjava.lang.Object)



firePropertyChange
final protected void firePropertyChange(String propertyName, byte oldValue, byte newValue)(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange(java.lang.Stringjava.lang.Objectjava.lang.Object)



firePropertyChange
final protected void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange(java.lang.Stringjava.lang.Objectjava.lang.Object)



firePropertyChange
final protected void firePropertyChange(String propertyName, short oldValue, short newValue)(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange(java.lang.Stringjava.lang.Objectjava.lang.Object)



firePropertyChange
final protected void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange(java.lang.Stringjava.lang.Objectjava.lang.Object)



firePropertyChange
final protected void firePropertyChange(String propertyName, long oldValue, long newValue)(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange(java.lang.Stringjava.lang.Objectjava.lang.Object)



firePropertyChange
final protected void firePropertyChange(String propertyName, float oldValue, float newValue)(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange(java.lang.Stringjava.lang.Objectjava.lang.Object)



firePropertyChange
final protected void firePropertyChange(String propertyName, double oldValue, double newValue)(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange(java.lang.Stringjava.lang.Objectjava.lang.Object)



firePropertyChange
final protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)

See Also:   com.javelin.swinglets.SComponent.firePropertyChange(java.lang.Stringjava.lang.Objectjava.lang.Object)



getAncestorNamed
public SContainer getAncestorNamed(String name)(Code)
Convenience method for searching above this in the component hierarchy and returns the first object of name it finds. Can return null, if name cannot be found.



getAncestorOfClass
public SContainer getAncestorOfClass(Class clazz)(Code)
Convenience method for searching above this in the component hierarchy and returns the first object of clazz it finds. Can return null, if a clazz cannot be found.



getBackground
public SColor getBackground()(Code)
Gets the background color of this component, or the parents background.



getBorder
public SBorder getBorder()(Code)
Returns the border of this component or null if no border is currently set.



getClientKeys
public Enumeration getClientKeys()(Code)
an enumeration of keys.



getClientProperty
final public Object getClientProperty(Object key)(Code)
Returns the value of the property with the specified key. Only properties added with



getClientProperty
final public Object getClientProperty(Object key, Object defaultValue)(Code)
Returns the value of the property with the specified key. If no value exists the defaul value is returned.



getClientPropertyCount
public int getClientPropertyCount()(Code)
a count of the client properties.



getComponent
public SComponent getComponent(String name)(Code)
Get a sub component by name. This will descend the component hierarchy and return the SComponent, or null.



getComponentUrl
public String getComponentUrl()(Code)
Get the URL for this component. So that its action event will be called back.

If the SwingletManger.getUrl() is set that is prepended.

[URL] + SOURCE_CONTAINER + SOURCE_COMPONENT.




getContentType
public String getContentType()(Code)
Returns the MIME type for the current components.



getCursor
public Cursor getCursor()(Code)
Get the cursor.



getFont
public SFont getFont()(Code)
Gets the font of this component.



getForeground
public SColor getForeground()(Code)
Gets the foreground color of this component.



getHorizontalAlignment
public int getHorizontalAlignment()(Code)
Returns the alignment of the component along the X axis.



getLocale
public Locale getLocale()(Code)
Gets the locale of this component.



getLookAndFeel
public SLookAndFeel getLookAndFeel()(Code)
Get the LookAndFeel



getName
public String getName()(Code)
Gets the name of the component.



getParent
public SContainer getParent()(Code)
Gets the parent of this component.



getScriptCount
public int getScriptCount()(Code)
Get script count.



getScripts
public Enumeration getScripts()(Code)
Get the script.



getSize
public Dimension getSize()(Code)
Returns the size of this component in the form of a



getSwingletManager
public SwingletManager getSwingletManager()(Code)
Get the SwingletManager associated with this session. SwingletManagers are associated by thread. This delegates the property to the SwingletManager method.



getTabIndex
public int getTabIndex()(Code)
Get the tab index.



getToolTipText
public String getToolTipText()(Code)
Return the tooltip string that has been set with setToolTipText()



getTopLevelAncestor
public SContainer getTopLevelAncestor()(Code)
Get the top most component in the containment hierarchy. This will be a SContainer.



getUI
public SComponentUI getUI()(Code)
Get the UI on this component.



getUIClass
public Class getUIClass()(Code)
Returns the name of the L&F class that renders this component.



getVerticalAlignment
public int getVerticalAlignment()(Code)
Returns the alignment of the component along the Y axis.



hasListeners
final protected boolean hasListeners()(Code)
Check if there are any listeners on the bean.
since:
   JDK 1.2



hasListeners
final protected boolean hasListeners(String propertyName)(Code)
Check if there are any listeners for a specific property.



hashCode
public int hashCode()(Code)
Hashcode. Is based on the name.



isCached
public boolean isCached()(Code)
Check whether the painting cached in a String. If this is false then the getSwingletManager().isCached() policy will be checked.



isEnabled
public boolean isEnabled()(Code)
Determines whether this component is enabled.



isFiringSuspended
public boolean isFiringSuspended()(Code)

See Also:   com.javelin.swinglets.SComponent.isFiringSuspended
See Also:   com.javelin.beans.PropertyChangeSupport.isFiringSuspended



isOpaque
public boolean isOpaque()(Code)
Check whether this component is opaque. If true the background is painted, other wise it is inherited from it context.



isVisible
public boolean isVisible()(Code)
Determines whether this component is visible. Components are initially visible.



onFirstPaint
public void onFirstPaint()(Code)
This is the first time this object is painted. This can be used by sub classes to construct the object the first time it is rendered.



onPaintComponent
public void onPaintComponent()(Code)
This is called everytime a component gets rendered can be used by sub classes to make last minute changes based on state



onPaintComponentFooter
public void onPaintComponentFooter()(Code)
This is called AFTER a component footer gets rendered can be used by sub classes to make last minute changes based on state



onPaintComponentHeader
public void onPaintComponentHeader()(Code)
This is called BEFORE a component header gets rendered can be used by sub classes to make last minute changes based on state



onPaintHeader
public void onPaintHeader()(Code)
This is called everytime a component header gets rendered can be used by sub classes to make last minute changes based on state



paint
public void paint(Object out)(Code)
Paint this component header, then body to the Object This can be a PrintWriter, OutputStream or Graphics, depending on the LookAndFeel.



paintComponent
public void paintComponent(Object out)(Code)
Paint this component body.



paintComponentFooter
public void paintComponentFooter(Object out)(Code)
Paint this component footer.



paintComponentHeader
public void paintComponentHeader(Object out)(Code)
Paint this component header.



paintHeader
public void paintHeader(Object out)(Code)
Paint this component in the header.



processActionEvent
public void processActionEvent(ActionEvent event)(Code)
Process an ActionEvent. The default behaviour is to consume the event.



processEvent
protected void processEvent(AWTEvent event)(Code)
Processes events occurring on this component. By default this method calls the appropriate process event method for the given class of event.



putClientProperty
final public SComponent putClientProperty(Object key, Object value)(Code)
Add an arbitrary key/value "client property" to this component.




removeActionListener
public SComponent removeActionListener(ActionListener l)(Code)
Remove an ActionEvent listener.



removeComponentListener
public SComponent removeComponentListener(ComponentListener listener)(Code)
Removes the specified component listener so that it no longer receives component events from this component.

This method will set the listener on the current look and feel.




removeFocusListener
public SComponent removeFocusListener(FocusListener listener)(Code)
Removes the specified focus listener so that it no longer receives focus events from this component.

This method will set the listener on the current look and feel.




removeKeyListener
public SComponent removeKeyListener(KeyListener listener)(Code)
Removes the specified key listener so that it no longer receives key events from this component.

This method will set the listener on the current look and feel.




removeMouseListener
public SComponent removeMouseListener(MouseListener listener)(Code)
Removes the specified mouse listener so that it no longer receives mouse events from this component.

This method will set the listener on the current look and feel.




removeMouseMotionListener
public SComponent removeMouseMotionListener(MouseMotionListener listener)(Code)
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.

This method will set the listener on the current look and feel.




removeNotify
public void removeNotify()(Code)
Notifies this component that it has been remove from its container.



removePropertyChangeListener
public synchronized SComponent removePropertyChangeListener(PropertyChangeListener listener)(Code)

See Also:   com.javelin.swinglets.SComponent.removePropertyChangeListener(java.beans.PropertyChangeListener)



removePropertyChangeListener
public synchronized SComponent removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)

See Also:   com.javelin.swinglets.SComponent.removePropertyChangeListener(java.lang.Stringjava.beans.PropertyChangeListener)
since:
   JDK 1.2



removeScript
public SComponent removeScript(SScript script)(Code)
Remove the script. This will remove one script.



removeUIListener
protected SComponent removeUIListener(EventListener listener)(Code)
Utility method to remove a listener to the current UI.



setBackground
public SComponent setBackground(SColor background)(Code)
Sets the background color of this component.



setBorder
public SComponent setBorder(SBorder border)(Code)
Sets the border of this component. The Border object is responsible for defining the insets for the component (overriding any insets set directly on the component) and for optionally rendering any border decorations within the bounds of those insets.



setCached
public void setCached(boolean cached)(Code)
Set whether the painting cached in a String. To set a thread wide policy set the getSwingletManager().setCached() property.



setCursor
public void setCursor(Cursor cursor)(Code)
Set the cursor.



setEnabled
public SComponent setEnabled(boolean enabled)(Code)
Enables or disables this component depending on the value of parameter. Netscape doesn't implement this. So the browser will have to sniff out Netscape and replace the disabled form elements with IE images.



setFiringSuspended
public void setFiringSuspended(boolean firingSuspended)(Code)

See Also:   com.javelin.swinglets.SComponent.setFiringSuspended(boolean)
See Also:   com.javelin.beans.PropertyChangeSupport.setFiringSuspended(boolean)



setFont
public SComponent setFont(String name, int style, int size)(Code)
Sets the font of this component. Uses SFont to find font.



setFont
public SComponent setFont(SFont font)(Code)
Sets the font of this component.



setForeground
public SComponent setForeground(SColor foreground)(Code)
Sets the foreground color of this component.



setHorizontalAlignment
public SComponent setHorizontalAlignment(int horizontalAlignment)(Code)
Sets the alignment of the component along the X axis. One of SConstants LEFT, CENTER, RIGHT



setLocale
public SComponent setLocale(Locale locale)(Code)
Sets the locale of this component.



setLookAndFeel
public SComponent setLookAndFeel(String lookAndFeel)(Code)
Set the Look and Feel, and update the UI. Because this is multi-user environment look and feel can vary on a per component hierarchy basis.



setLookAndFeel
public SComponent setLookAndFeel(SLookAndFeel lookAndFeel)(Code)
Set the Look and Feel, and update the UI. Because this is multi-user environment look and feel can vary on a per component hierarchy basis.



setName
public SComponent setName(String name)(Code)
Sets the name of the component to the specified string.



setOpaque
public SComponent setOpaque(boolean opaque)(Code)
Sets the opacity background color of this component.



setParent
public SComponent setParent(SContainer parent)(Code)
Sets the parent of this component.



setSize
public SComponent setSize(int width, int height)(Code)
Resizes this component so that it has width



setSize
public SComponent setSize(Dimension size)(Code)
Resizes this component so that it has width



setSwingletManager
public void setSwingletManager(SwingletManager swingletManager)(Code)
Set the SwingletManager associated with this session. If this is null it is removed. This delegates the property to the SwingletManager method.



setTabIndex
public SComponent setTabIndex(int tabIndex)(Code)
Set the tab index.



setToolTipText
public SComponent setToolTipText(String toolTipText)(Code)
C Registers the text to display in a tool tip.



setUI
public SComponent setUI(SComponentUI ui)(Code)
Set the UI on this component.



setValueAsText
public SComponent setValueAsText(String text)(Code)
Set the value as Text. By default this does nothing.



setVerticalAlignment
public SComponent setVerticalAlignment(int verticalAlignment)(Code)
Sets the alignment of the component along the Y axis. One of SConstants TOP, MIDDLE, BOTTOM



setVisible
public SComponent setVisible(boolean visible)(Code)
Shows or hides this component depending on the value of parameter .



toString
public String toString()(Code)
To String returns the stream that would be painted.
This is useful for debugging.
This will not cache the data.



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.