|
JClass 4.5.0 API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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
public static final int RESTORE_DEFAULT
public static final int RESTORE_PREVIOUS
public static final int CLEAR_FIELD
protected boolean beepOnInvalid
protected int invalidPolicy
protected Color invalidForeground
protected Color invalidBackground
Constructor Detail |
public JCInvalidInfo()
public JCInvalidInfo(boolean beep_on_invalid, int invalid_policy)
public JCInvalidInfo(int invalid_policy)
public JCInvalidInfo(Color invalid_foreground, Color invalid_background)
public JCInvalidInfo(boolean beep_on_invalid, int invalid_policy, Color invalid_foreground, Color invalid_background)
Method Detail |
public boolean getBeepOnInvalid()
public void setBeepOnInvalid(boolean beep_on_invalid)
public int getInvalidPolicy()
public void setInvalidPolicy(int invalid_policy)
public Color getInvalidBackground()
public void setInvalidBackground(Color background)
public Color getInvalidForeground()
public void setInvalidForeground(Color foreground)
|
Copyright© 1999-2000 KL Group Inc. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |