SilverStream
Application Server 3.5

com.sssw.rt.form
Class AgcDateField

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

public class AgcDateField
extends AgcValueField

The AgcDateField control displays java.sql.Date values to, or accepts input from, the user.

AgcDateField controls may also be bound to a database column.

See Also:
Serialized Form

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
AgcDateField()
           
 
Method Summary
 Date getValue()
          Returns the field's value as a java.sql.Date.
 void setValue(Date value)
          Sets the field's value as a java.sql.Date value.
 
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.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
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
 

Constructor Detail

AgcDateField

public AgcDateField()
Method Detail

getValue

public Date getValue()
Returns the field's value as a java.sql.Date.
Usage:

Note that the value of an AgcDateField is a java.sql.Date, not a java.util.Date.

Example:

This example illustrates how to get the field's value.

  java.sql.Date value;
  value = ControlName1.getValue();
 

setValue

public void setValue(Date value)
Sets the field's value as a java.sql.Date value.
Parameters:
value - the java.sql.Date value.
Usage:

Note that the value of an AgcDateField is a java.sql.Date, not a java.util.Date.

Example:

This example illustrates how to set the field's value.

  java.sql.Date value = new java.sql.Date(97, 3, 5);
  ControlName1.setValue(value);
 

SilverStream
Application Server 3.5