|
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.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.sssw.rt.atlas.AtPanel | +--com.sssw.rt.atlas.AtCanvas | +--com.sssw.rt.form.PvBaseCanvas | +--com.sssw.rt.form.AgcSlider
A control that represents an integer whose value the user can increment or decrement within a certain range. It can be bound to a database column.
Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Fields inherited from class com.sssw.rt.atlas.AtPanel |
BGIMAGE_DRAW_CENTERED,
BGIMAGE_DRAW_NORMAL,
BGIMAGE_DRAW_STRETCH,
BGIMAGE_DRAW_TILED |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
AgcSlider()
|
Method Summary | |
void |
addAgiValueChangingListener(AgiValueChangingListener listener)
|
Integer |
getIntegerValue()
Get the value as an Integer. |
int |
getMaxValue()
Returns an integer that represents the highest value that the control can be set to. |
int |
getMinValue()
Returns an integer that represents the lowest value that the control can be set to. |
int |
getValue()
Get the value as a primitive int. |
void |
removeAgiValueChangingListener(AgiValueChangingListener listener)
|
void |
setIntegerValue(Integer value)
Assigns the slider's value. |
void |
setMaxValue(int v)
Assigns the highest int value that the control can be set to. |
void |
setMinValue(int v)
Assigns the lowest int value that the control can be set to. |
void |
setValue(int v)
Assigns the slider's value. |
Methods inherited from class com.sssw.rt.form.PvBaseCanvas |
getBackgroundColor,
getFontIdentifier,
setBackgroundColor,
setFontIdentifier |
Methods inherited from class com.sssw.rt.atlas.AtPanel |
addImpl,
addNotify,
clientPaint,
clientPaint,
deliverMouseEvent,
deliverMouseMoveEvent,
doAtCommand,
drawTiledImage,
enableAtCommands,
getBackgroundImage,
getBackgroundImageMode,
getHelper,
getTransparent,
hide,
hideToolTip,
imageUpdate,
isFocusTraversable,
isOptimizedDrawingEnabled,
ownedImage,
paintBorder,
paintComponent,
paintImmediately,
paintImmediately,
paintNow,
preprocessKeyEvent,
processEvent,
reshape,
setBackgroundImage,
setBackgroundImageMode,
setTransparent,
show,
showToolTip |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
printComponents,
processContainerEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
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 |
getComponent,
getHelpInfo,
setHelpInfo |
Constructor Detail |
public AgcSlider()
Method Detail |
public void addAgiValueChangingListener(AgiValueChangingListener listener)
listener
- public void removeAgiValueChangingListener(AgiValueChangingListener listener)
listener
- public int getValue()
int value; value = Slider1.getValue();
AgcSlider.setValue(int)
public void setValue(int v)
v
- the int value to setThe following code fragment illustrates how to set the current value of an Integer Spinner field to four.
Slider1.setValue(4);
AgcSlider.getValue()
public Integer getIntegerValue()
public void setIntegerValue(Integer value)
value
- the Integer value to setpublic int getMinValue()
Use the setMinValue() method to assign this value.
The following code fragment illustrates how to obtain the minimum value.
int MinValue; MinValue = Slider1.getMinValue();
AgcSlider.getMaxValue()
,
Maximum Value property,
AgcSlider.setMinValue(int)
,
AgcSlider.setMaxValue(int)
,
Minimum Value propertypublic void setMinValue(int v)
v
- an integer that represents the lowest value that the control can be set toUse the getMinValue() method to determine this value. The AgcIntegerSpinnerField control provides the NO_LIMIT constant which allows the control to be incremented or decremented with no limit.
The following code fragment illustrates how to assign a minimum value to an Integer Spinner control (AgcIntegerSpinnerField)
Slider1.setMinValue(5);
AgcSlider.getMaxValue()
,
AgcSlider.setMaxValue(int)
,
Maximum Value property,
AgcSlider.getMinValue()
,
Minimum Value propertypublic int getMaxValue()
Use the setMaxValue()
method to assign this value.
The following code fragment illustrates how to obtain the maximum value.
int MaxValue; MaxValue = Slider1.getMaxValue();
AgcSlider.setMaxValue(int)
,
Maximum Value property,
AgcSlider.setMinValue(int)
,
Minimum Value propertypublic void setMaxValue(int v)
v
- specifies the control's maximum valueUse the getMaxValue() method to obtain this value. The AgcIntegerSpinnerField control provides the NO_LIMIT constant which allows the control to be incremented or decremented with no limit.
The following code fragment illustrates how to assign a maximum value to the Integer Spinner control.
Slider1.setMaxValue(5);
AgcSlider.getMaxValue()
,
Maximum Value property,
AgcSlider.setMinValue(int)
,
Minimum Value property
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |