SilverStream
Application Server 3.5

com.sssw.rt.form
Class AgcButtonImage

java.lang.Object
 |
 +--java.awt.Component
       |
       +--java.awt.Container
             |
             +--javax.swing.JComponent
                   |
                   +--javax.swing.JPanel
                         |
                         +--com.sssw.rt.atlas.AtPanel
                               |
                               +--com.sssw.rt.form.PvBasePanel
                                     |
                                     +--com.sssw.rt.form.AgcButtonRaw
                                           |
                                           +--com.sssw.rt.form.AgcButtonImage
All Implemented Interfaces:
Accessible, AgiControl, AgiHelpInfo, ImageObserver, MenuContainer, Serializable

public class AgcButtonImage
extends AgcButtonRaw

The AgcButtonImage control (Image Button) is a means for associating a single or multiple .GIF or .JPG images with one of the following button types: Toggle, Radio, or Push.

Once the type of button control has been chosen (by specifying the Button Type property) the Image button takes on some of the properties associated with that button type. For example, if Button Type = Radio Button, then a Radio Button Group can be established for the Image button. Note, however, that even though the button type affects some of the properties of the image button, image buttons are always instances of the AgcButtonImage class.

The primary image for the button is called the Up Image. This image is displayed when the button is in the up, or unpressed, state. A different image can be specified to display when the button is in the down, or pressed, state. If the button is a Push button type, then the down image is displayed only while the user is holding the mouse button down while the cursor is over the button. If the button is a Toggle or Radio button type, then the down image displays when the button is in the pressed state.

Any SilverStream button control can be defined as the default button for the form or the cancel button for the form. When a button is defined as the default button for the form, its actionPerformed event fires when the user presses Enter while on the form regardless of the control that has focus (unless the control that has focus supports an event for the Enter key, for example Text Area). When a button is defined as the cancel button for a form, its actionPerformed event fires when the user presses the ESC key while focus is anywhere on the form.

Properties:
Button Type, Cancel Button, Caption Expression, Caption Text, Control Type, Default Button, Down Image, Enabled, Font Name, Font Size, Font Style, Height, Help Page, Hover Image, Hover Mode, Hover Text Color, Left, Name, Radio Button Group, Tool Tip, Top, Transparent, Up Image, Visible, Width
Events:
actionPerformed, focusGained, focusLost, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, validationFailed, validationTest, valueChanged
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.form.AgcButtonRaw
IMAGEPOSITION_ABOVE, IMAGEPOSITION_BELOW, IMAGEPOSITION_BENEATH, IMAGEPOSITION_LEFT, IMAGEPOSITION_RIGHT
 
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
AgcButtonImage()
           
 
Methods inherited from class com.sssw.rt.form.AgcButtonRaw
addActionListener, getButtonGroup, getDisabledDownImage, getDisabledTextColor, getDisabledUpImage, getDownImage, getDownToolTipText, getForeground, getHoverImage, getHoverMode, getHoverTextColor, getImagePosition, getPush, getRadio, getState, getText, getTextBackgroundColor, getTextColor, getToggle, getUpImage, getValue, removeActionListener, setBackground, setButtonGroup, setCheckedValue, setDisabledDownImage, setDisabledTextColor, setDisabledUpImage, setDownImage, setDownToolTipText, setForeground, setHoverImage, setHoverMode, setHoverTextColor, setImagePosition, setPush, setRadio, setState, setText, setTextBackgroundColor, setTextColor, setToggle, setUncheckedValue, setUpImage, setValue, simulateClick
 
Methods inherited from class com.sssw.rt.form.PvBasePanel
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, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, 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, 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

AgcButtonImage

public AgcButtonImage()

SilverStream
Application Server 3.5