All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.datesbeans.DateSupport

java.lang.Object
    |
    +----com.ibm.datesbeans.DateSupport

public class DateSupport
extends java.lang.Object
implements java.io.Serializable, java.awt.event.KeyListener
The given bean can inspect the process of inputting a date by the user. This bean automatically executes conversion of the text in the component into date and checking it to a defined format.

Since:
DatesBeans 1.0

Constructor Index

 o DateSupport()
Construct a DateSupport.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Adds a PropertyChangeListener.
 o getAboutThisBean()
Returns a special formatted string intended for use by the editor of this property.
 o getErrorBackground()
Gets color, used for filling background of a component at incorrect input of date by user.
 o getErrorForeground()
Gets color, used for selection of the text of a component at incorrect input of date by user.
 o getInputComponent()
Gets the component of text editing.
 o getInputDate()
Gets the date for setting the text property in a component.
 o getPattern()
Gets the pattern for formatting/parsing date.
 o getResult()
Gets the current result of parsing text from a component.
 o isChangeBackground()
Gets true, if allows usage of errorBackground color at incorrect input of date by user.
 o isChangeForeground()
Gets true, if allows usage of errorForeground color at incorrect input of date by user.
 o keyPressed(KeyEvent)
Handling keyPressed event.
 o keyReleased(KeyEvent)
Handling keyReleased event.
 o keyTyped(KeyEvent)
Handling keyTyped event.
 o removePropertyChangeListener(PropertyChangeListener)
Removes a PropertyChangeListener.
 o setAboutThisBean(String)
Setter method for the aboutThisBean property to be available in the properties list.
 o setChangeBackground(boolean)
Sets true, if allow usage of errorBackground color at incorrect input of date by user.
 o setChangeForeground(boolean)
Sets changeForeround property value.
 o setErrorBackground(Color)
Sets color, used for filling background of a component at incorrect input of date by user.
 o setErrorForeground(Color)
Sets color, used for selection of the text of a component at incorrect input of date by user.
 o setInputComponent(Component)
Sets the component of text editing.
 o setInputDate(Date)
Sets the date for setting the text property in a component.
 o setPattern(String)
Sets the pattern for formatting/parsing date.

Constructor Detail

 o DateSupport
public DateSupport()
          Construct a DateSupport.

Method Detail

 o addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener newListener)
          Adds a PropertyChangeListener.
Parameters:
newListener - The PropertyChangeListener to be added
 o getAboutThisBean
public java.lang.String getAboutThisBean()
          Returns a special formatted string intended for use by the editor of this property.
Returns:
the special formatted string for use by the editor of this property
 o getErrorBackground
public java.awt.Color getErrorBackground()
          Gets color, used for filling background of a component at incorrect input of date by user.
Returns:
color, used for filling background of a component at incorrect input of date by user
See Also:
setErrorBackground
 o getErrorForeground
public java.awt.Color getErrorForeground()
          Gets color, used for selection of the text of a component at incorrect input of date by user.
Returns:
color, used for selection of the text of a component at incorrect input of date by user
See Also:
setErrorForeground
 o getInputComponent
public java.awt.Component getInputComponent()
          Gets the component of text editing.
Returns:
the component of text editing
See Also:
setInputComponent
 o getInputDate
public java.util.Date getInputDate()
          Gets the date for setting the text property in a component.
Returns:
the date for setting the text property in a component
See Also:
setInputDate
 o getPattern
public java.lang.String getPattern()
          Gets the pattern for formatting/parsing date.
Returns:
the pattern for formatting/parsing date
See Also:
setPattern
 o getResult
public java.util.Date getResult()
          Gets the current result of parsing text from a component.
Returns:
the current result of parsing text from a component
 o isChangeBackground
public boolean isChangeBackground()
          Gets true, if allows usage of errorBackground color at incorrect input of date by user.
Returns:
true, if allows usage of errorBackground color at incorrect input of date by user
See Also:
setChangeBackground
 o isChangeForeground
public boolean isChangeForeground()
          Gets true, if allows usage of errorForeground color at incorrect input of date by user.
Returns:
true, if allows usage of errorForeground color at incorrect input of date by user
See Also:
setChangeForeground
 o keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
          Handling keyPressed event. DO NOT OVERRIDE THIS METHOD!
 o keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
          Handling keyReleased event. DO NOT OVERRIDE THIS METHOD!
 o keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
          Handling keyTyped event. DO NOT OVERRIDE THIS METHOD!
 o removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a PropertyChangeListener.
Parameters:
listener - The PropertyChangeListener to be removed
 o setAboutThisBean
public void setAboutThisBean(java.lang.String newValue)
          Setter method for the aboutThisBean property to be available in the properties list. This method should not be used to set the aboutThisBean property value.
Parameters:
newValue - the special formatted string
 o setChangeBackground
public void setChangeBackground(boolean value)
          Sets true, if allow usage of errorBackground color at incorrect input of date by user.
Parameters:
value - new value
See Also:
isChangeBackground
 o setChangeForeground
public void setChangeForeground(boolean value)
          Sets changeForeround property value.
Parameters:
value - new value
See Also:
isChangeForeground
 o setErrorBackground
public void setErrorBackground(java.awt.Color value)
          Sets color, used for filling background of a component at incorrect input of date by user.
Parameters:
value - new value of color, used for filling background of a component at incorrect input of date by user
See Also:
getErrorBackground
 o setErrorForeground
public void setErrorForeground(java.awt.Color value)
          Sets color, used for selection of the text of a component at incorrect input of date by user.
Parameters:
value - new value of color, used for selection of the text of a component at incorrect input of date by user
See Also:
getErrorForeground
 o setInputComponent
public void setInputComponent(java.awt.Component value)
          Sets the component of text editing.
Parameters:
value - new value of component of text editing
See Also:
getInputComponent
 o setInputDate
public void setInputDate(java.util.Date value)
          Sets the date for setting the text property in a component.
Parameters:
value - new value of date for setting the text property in a component
See Also:
getInputDate
 o setPattern
public void setPattern(java.lang.String value)
          Sets the pattern for formatting/parsing date.
Parameters:
value - new value of pattern for formatting/parsing date
See Also:
getPattern

All Packages  Class Hierarchy  This Package  Previous  Next  Index