|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.field.JCInvalidInfo
This class creates an object which holds the invalid info properties.
| Field Summary | |
protected boolean |
beepOnInvalid
|
static int |
CLEAR_FIELD
Use with invalidPolicy to clear the field after invalid entry. |
protected Color |
invalidBackground
|
protected Color |
invalidForeground
|
protected int |
invalidPolicy
|
static int |
RESTORE_DEFAULT
Use with invalidPolicy to restore default value after invalid entry. |
static int |
RESTORE_PREVIOUS
Use with invalidPolicy to restore previous value after invalid entry. |
static int |
SHOW_INVALID
Use with invalidPolicy to display invalid values. |
| Constructor Summary | |
JCInvalidInfo()
Creates a default instance where beepOnInvalid == true,
policy == SHOW_INVALID, and the rest of the values are null. |
|
JCInvalidInfo(boolean beep_on_invalid,
int invalid_policy)
Creates an instance where beepOnInvalid and invalidPolicy are
set as specified and the rest of the values are null. |
|
JCInvalidInfo(boolean beep_on_invalid,
int invalid_policy,
Color invalid_foreground,
Color invalid_background)
Creates a InvalidInfo object with the specified defaultValue and with
invalidPolicy == RESTORE_DEFAULT, beepOnInvalid == true, and
the invalid colors are null. |
|
JCInvalidInfo(Color invalid_foreground,
Color invalid_background)
Creates a InvalidInfo object with the specified invalid colors and with
invalidPolicy == SHOW_INVALID, beepOnInvalid == true, and
defaultValue == null. |
|
JCInvalidInfo(int invalid_policy)
Creates an instance where invalidPolicy is set as specified,
beepOnInvalid == true, and the rest of the values are null. |
|
| Method Summary | |
boolean |
getBeepOnInvalid()
Returns whether the component should beep or not when the user types an invalid entry. |
Color |
getInvalidBackground()
Returns the background color to be used if the invalid policy is SHOW_INVALID. |
Color |
getInvalidForeground()
Returns the foreground color to be used if the invalid policy is SHOW_INVALID. |
int |
getInvalidPolicy()
Returns the invalid policy. |
void |
setBeepOnInvalid(boolean beep_on_invalid)
Sets whether the component should beep or not when the user types an invalid entry. |
void |
setInvalidBackground(Color background)
Sets the background color to be used if the invalid policy is SHOW_INVALID. |
void |
setInvalidForeground(Color foreground)
Sets the foreground color to be used if the invalid policy is SHOW_INVALID. |
void |
setInvalidPolicy(int invalid_policy)
Sets the invalid policy. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SHOW_INVALID
invalidPolicy to display invalid values.
public static final int RESTORE_DEFAULT
invalidPolicy to restore default value after invalid entry.
public static final int RESTORE_PREVIOUS
invalidPolicy to restore previous value after invalid entry.
public static final int CLEAR_FIELD
invalidPolicy to clear the field after invalid entry.
protected boolean beepOnInvalid
protected int invalidPolicy
protected Color invalidForeground
protected Color invalidBackground
| Constructor Detail |
public JCInvalidInfo()
beepOnInvalid == true,
policy == SHOW_INVALID, and the rest of the values are null.
public JCInvalidInfo(boolean beep_on_invalid,
int invalid_policy)
beepOnInvalid and invalidPolicy are
set as specified and the rest of the values are null.
beep_on_invalid - invalid_policy - public JCInvalidInfo(int invalid_policy)
invalidPolicy is set as specified,
beepOnInvalid == true, and the rest of the values are null.
invalid_policy -
public JCInvalidInfo(Color invalid_foreground,
Color invalid_background)
InvalidInfo object with the specified invalid colors and with
invalidPolicy == SHOW_INVALID, beepOnInvalid == true, and
defaultValue == null.
invalid_foreground - invalid_background -
public JCInvalidInfo(boolean beep_on_invalid,
int invalid_policy,
Color invalid_foreground,
Color invalid_background)
InvalidInfo object with the specified defaultValue and with
invalidPolicy == RESTORE_DEFAULT, beepOnInvalid == true, and
the invalid colors are null.
beep_on_invalid - invalid_background - invalid_foreground - invalid_policy - | Method Detail |
public boolean getBeepOnInvalid()
public void setBeepOnInvalid(boolean beep_on_invalid)
beep_on_invalid - public int getInvalidPolicy()
SHOW_INVALID - displays invalid entry (default)RESTORE_DEFAULT - restores the default value on invalid entryRESTORE_PREVIOUS - restores the previous valid entry on invalid entryCLEAR_FIELD - clears the field
public void setInvalidPolicy(int invalid_policy)
SHOW_INVALID - displays invalid entry (default)RESTORE_DEFAULT - restores the default value on invalid entryRESTORE_PREVIOUS - restores the previous valid entry on invalid entryCLEAR_FIELD - clears the field
invalid_policy - public Color getInvalidBackground()
SHOW_INVALID. Null means use the normal background color.
SHOW_INVALIDpublic void setInvalidBackground(Color background)
SHOW_INVALID. Null means use the normal background color.
background - public Color getInvalidForeground()
SHOW_INVALID. Null means use the normal foreground color.
SHOW_INVALIDpublic void setInvalidForeground(Color foreground)
SHOW_INVALID. Null means use the normal foreground color.
foreground -
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||