|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.TextComponent | +--java.awt.TextField | +--com.sssw.rt.atlas.AtTextField | +--com.sssw.rt.form.AgcTextField | +--com.sssw.rt.form.AgcValueField | +--com.sssw.rt.form.AgcIntegerField
The AgcIntegerField control displays Integer data to, or accepts input from, the user. It can be bound to a database column.
Field Summary | |
static int |
NO_LIMIT
This value represents no maximum or no minimum limit. |
Fields inherited from class com.sssw.rt.form.AgcTextField |
NO_LIMIT |
Fields inherited from class com.sssw.rt.atlas.AtTextField |
ENFORCE_CASE_LOWER,
ENFORCE_CASE_NONE,
ENFORCE_CASE_UPPER |
Fields inherited from class java.awt.TextComponent |
textListener |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
AgcIntegerField()
|
Method Summary | |
Integer |
getIntegerValue()
Gets the field value as an Integer, which may be null. |
int |
getMaxValue()
Returns the maximum value as a primitive int. |
int |
getMinValue()
Returns the minimum value as a primitive int. |
int |
getValue()
Gets the field value as a primitive int. |
void |
setIntegerValue(Integer n)
Sets the field value. |
void |
setMaxValue(int value)
Sets the maximum value. |
void |
setMinValue(int value)
Sets the minimum value. |
void |
setValue(int value)
Sets the field value as a primitive int. |
Methods inherited from class com.sssw.rt.form.AgcValueField |
format,
getDisplayPattern,
getDisplayStyle,
parse,
setDisplayPattern,
setDisplayStyle |
Methods inherited from class com.sssw.rt.form.AgcTextField |
getBackgroundColor,
getEditable,
getEmptyStringIsNull,
getFontIdentifier,
getMaxLength,
getMinLength,
getTextColor,
setBackgroundColor,
setEmptyStringIsNull,
setFontIdentifier,
setMaxLength,
setMinLength,
setTextColor |
Methods inherited from class com.sssw.rt.atlas.AtTextField |
deliverMouseEvent,
deliverMouseMoveEvent,
doAtCommand,
enableAtCommands,
getEnforceCase,
getHelper,
getToolTipText,
getToolTipText,
grabFocus,
grabTabstopFocus,
isFocusTraversable,
isRequestFocusEnabled,
preprocessKeyEvent,
processEvent,
requestFocus,
setEnforceCase,
setRequestFocusEnabled,
setToolTipText |
Methods inherited from class java.awt.TextField |
addActionListener,
addNotify,
echoCharIsSet,
getColumns,
getEchoChar,
getMinimumSize,
getMinimumSize,
getPreferredSize,
getPreferredSize,
minimumSize,
minimumSize,
paramString,
preferredSize,
preferredSize,
processActionEvent,
removeActionListener,
setColumns,
setEchoChar,
setEchoCharacter,
setText |
Methods inherited from class java.awt.TextComponent |
addTextListener,
getCaretPosition,
getSelectedText,
getSelectionEnd,
getSelectionStart,
getText,
isEditable,
processTextEvent,
removeNotify,
removeTextListener,
select,
selectAll,
setCaretPosition,
setEditable,
setSelectionEnd,
setSelectionStart |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Methods implemented from interface com.sssw.rt.form.AgiControl |
getBackgroundImage,
getBackgroundImageMode,
getComponent,
getHelpInfo,
setBackgroundImage,
setBackgroundImageMode,
setHelpInfo |
Field Detail |
public static final int NO_LIMIT
AgcIntegerField.setMaxValue(int)
,
AgcIntegerField.setMinValue(int)
Constructor Detail |
public AgcIntegerField()
Method Detail |
public int getValue()
If the field is empty, getValue() returns 0.
This example illustrates how to get the field's value.
int value; value = ControlName1.getValue();
public Integer getIntegerValue()
This example illustrates how to get the field's value.
Integer value; value = ControlName1.getIntegerValue();
public void setIntegerValue(Integer n)
n
- the Integer value (can be null).This example illustrates how to set the field's value.
Integer value = new Integer(17); ControlName1.setIntegerValue(value);
public void setValue(int value)
value
- the value to set.This example illustrates how to set the field's value.
int value = 17; ControlName1.setValue(value);
public int getMaxValue()
public int getMinValue()
public void setMaxValue(int value)
value
- the primitive int value.
If the user tries to enter a larger value, a validationFailed event is fired.
Use the constant AgcIntegerField.NO_LIMIT
to disable the limit.
AgcIntegerField.NO_LIMIT
public void setMinValue(int value)
value
- the primitive int value.
If the user tries to enter a smaller value, a validationFailed event is fired.
Use the constant AgcIntegerField.NO_LIMIT
to disable the limit.
AgcIntegerField.NO_LIMIT
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |