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