SilverStream
Application Server 3.5

com.sssw.rt.form
Class AgcSlider

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
All Implemented Interfaces:
Accessible, AgiControl, AgiHelpInfo, ImageObserver, MenuContainer, Serializable

public class AgcSlider
extends PvBaseCanvas

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.

Properties:
Control Type, Data Column, Enabled, Height, Help Page, Initial Value, Left, Maximum Value, Minimum Value, Name, Tool Tip, Top, Visible, Width
Events:
focusGained, focusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, validationFailed, validationTest, valueChanged, valueChanging
See Also:
Serialized Form

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 javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isManagingFocus, isOpaque, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, print, printAll, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
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.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus
 
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

AgcSlider

public AgcSlider()
Method Detail

addAgiValueChangingListener

public void addAgiValueChangingListener(AgiValueChangingListener listener)
Parameters:
listener -  

removeAgiValueChangingListener

public void removeAgiValueChangingListener(AgiValueChangingListener listener)
Parameters:
listener -  

getValue

public int getValue()
Get the value as a primitive int.
Example:
  int value;
  value = Slider1.getValue();
 
See Also:
AgcSlider.setValue(int)

setValue

public void setValue(int v)
Assigns the slider's value.
Parameters:
v - the int value to set
Example:

The following code fragment illustrates how to set the current value of an Integer Spinner field to four.

  Slider1.setValue(4);
 
See Also:
AgcSlider.getValue()

getIntegerValue

public Integer getIntegerValue()
Get the value as an Integer.

setIntegerValue

public void setIntegerValue(Integer value)
Assigns the slider's value.
Parameters:
value - the Integer value to set

getMinValue

public int getMinValue()
Returns an integer that represents the lowest value that the control can be set to.
Usage:

Use the setMinValue() method to assign this value.

Example:

The following code fragment illustrates how to obtain the minimum value.

  int MinValue;
  MinValue = Slider1.getMinValue();
 
See Also:
AgcSlider.getMaxValue(), Maximum Value property, AgcSlider.setMinValue(int), AgcSlider.setMaxValue(int), Minimum Value property

setMinValue

public void setMinValue(int v)
Assigns the lowest int value that the control can be set to.
Parameters:
v - an integer that represents the lowest value that the control can be set to
Usage:

Use 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.

Example:

The following code fragment illustrates how to assign a minimum value to an Integer Spinner control (AgcIntegerSpinnerField)

  Slider1.setMinValue(5);
 
See Also:
AgcSlider.getMaxValue(), AgcSlider.setMaxValue(int), Maximum Value property, AgcSlider.getMinValue(), Minimum Value property

getMaxValue

public int getMaxValue()
Returns an integer that represents the highest value that the control can be set to.
Usage:

Use the setMaxValue() method to assign this value.

Example:

The following code fragment illustrates how to obtain the maximum value.

  int MaxValue;
  MaxValue = Slider1.getMaxValue();
 
See Also:
AgcSlider.setMaxValue(int), Maximum Value property, AgcSlider.setMinValue(int), Minimum Value property

setMaxValue

public void setMaxValue(int v)
Assigns the highest int value that the control can be set to.
Parameters:
v - specifies the control's maximum value
Usage:

Use 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.

Example:

The following code fragment illustrates how to assign a maximum value to the Integer Spinner control.

  Slider1.setMaxValue(5);
 
See Also:
AgcSlider.getMaxValue(), Maximum Value property, AgcSlider.setMinValue(int), Minimum Value property

SilverStream
Application Server 3.5