com.sas.visuals
Class ArrowButton
com.sas.visuals.ArrowButton
All Implemented Interfaces: ActionSource , CompositeInterface , ContainerInterface , com.sas.awt.print.PrintableInterface, VisualInterface , com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.ComponentInterface, com.sas.DesignTimeDropTargetInterface, com.sas.lang.StringDataInterface, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, com.sas.PublicClonable, ValidatorInterface , com.sas.ViewInterface, Alignment , MultipleValueEventSourceInterface , ResizeToFitInterface , java.awt.event.ActionListener , java.awt.event.FocusListener , java.awt.event.ItemListener , java.awt.image.ImageObserver , java.awt.ItemSelectable , java.awt.MenuContainer , java.beans.PropertyChangeListener , java.io.ObjectInputValidation , java.io.Serializable , java.lang.Cloneable , java.util.EventListener
public class ArrowButton
ArrowButton is a subclass of PushButton that displays an ArrowIcon and uses an
AlarmButtonModel. When the button is pressed an ActionEvent is fired until it is released
or the mouse is dragged out of the bounds of the button.
See Also: Serialized Form
Fields inherited from class com.sas.visuals.BaseButton
actionCommand , actionListenerList , borderPainted , BOTTOM , buttonListener , buttonModel , currentInsets , defaultIcon , disabledIcon , displayTransform , focusGap , focusPainted , gap , hasFocus , horizontalAlignment , horizontalTextAlignment , item , itemListenerList , LEFT , pressedIcon , resizeToFit , RIGHT , rolloverIcon , selectedIcon , text , textPosition , TOP , updateItem , updateText , verticalAlignment , verticalTextAlignment
Constructor Summary
ArrowButton ()
Default constructor.
ArrowButton (int orientation)
Constructor that sets the orientation of the arrow.
Methods inherited from class com.sas.visuals.PushButton
clone , contentShift , getContentShift , getDefaultHeight , getDefaultWidth , getExtendedBeanInfo , getSource , paint , paintBackground , paintFocus , setContentShift , setDefaultHeight , setDefaultWidth , setFont , setHorizontalTextAlignment , setSource , setText , setVerticalTextAlignment
Methods inherited from class com.sas.visuals.BaseButton
actionPerformed , addActionListener , addItemListener , addNotify , buttonModelRollover , buttonModelSelected , computePreferredSize , detachModel , focusGained , focusLost , getActionCommand , getButtonListener , getButtonModel , getContentSize , getDefaultIcon , getDisabledIcon , getDisplayTransform , getFocusGap , getHorizontalAlignment , getHorizontalTextAlignment , getIconTextGap , getInsets , getItem , getKeyAccelerator , getPressedIcon , getRequiredInterfaces , getRolloverIcon , getSelectedIcon , getSelectedObjects , getText , getTextPosition , getVerticalAlignment , getVerticalTextAlignment , isBorderPainted , isFocusPainted , isFocusTraversable , isResizeToFit , isSelected , itemStateChanged , processActionEvent , processEvent , processItemEvent , propertyChange , refresh , refreshItem , removeActionListener , removeItemListener , resizeToFit , setActionCommand , setBorderPainted , setButtonListener , setButtonModel , setDefaultIcon , setDefaultValues , setDisabledIcon , setDisplayTransform , setEnabled , setFocusGap , setFocusPainted , setHorizontalAlignment , setIconTextGap , setInsets , setItem , setKeyAccelerator , setPressedIcon , setResizeToFit , setRolloverIcon , setSelected , setSelectedIcon , setTextPosition , setVerticalAlignment
Methods inherited from class com.sas.awt.ContainerContainerComponent
dragEnter , dragLeave , dragOver , drop , getContainerInterfaceSupportInfo , getErrorHandler , getValidator , isIDEDnDDropBarrier , isIDEDnDDropTarget , isValid , removeNotify , setContainerInterfaceSupportInfo , setErrorHandler , setIDEDnDDropBarrier , setIDEDnDDropTarget , setInsets , setValidator , superAddNotify , superGetInsets , superRemoveNotify , superSetDefaultValues
Methods inherited from class com.sas.awt.ContainerVisualComponent
addLink , addPropertyChangeListener , addVetoableChangeListener , anyPropertyChangeListeners , attachModel , attachView , detachView , dumpComponent , firePropertyChange , firePropertyChange , fireVetoableChange , getBackgroundColor , getBorder , getComponentDescription , getComponentSupportInfo , getEventMethod , getEventValues , getFont , getForegroundColor , getHeight , getHorizontalPosition , getLinkInfo , getModelInterface , getPageBounds , getPreferredSize , getPrePainter , getPrintOptionsPanel , getVerticalPosition , getViewInterfaceSupportInfo , getVisualInterfaceSupportInfo , getWidth , initialize , initializeComponent , isDesignTime , isEnabled , isFocus , isLinked , isTransparent , isVisible , pageExists , print , printFinalize , printInitialize , queryLinks , queryLinks , removeAllLinks , removeInterfaceTraps , removeLink , removePropertyChangeListener , removeVetoableChangeListener , setBackgroundColor , setBorder , setComponentDescription , setComponentSupportInfo , setFocus , setForegroundColor , setHeight , setHorizontalPosition , setLinkInfo , setModelInterface , setPreferredSize , setPrePainter , setRequiredInterfaces , setTransparent , setVerticalPosition , setViewInterfaceSupportInfo , setVisible , setVisualInterfaceSupportInfo , setWidth , superGetFont , superGetMinimumSize , superGetPreferredSize , superIsEnabled , superIsVisible , superPaint , superSetBounds , superSetEnabled , superSetFont , superSetVisible , superUpdate , supportsListenerInterface , supportsRequiredInterfaces , trapInterfaceEvents , update , validateObject
Methods inherited from interface com.sas.awt.VisualInterface
getBackgroundColor , getBorder , getFont , getForegroundColor , getHeight , getHorizontalPosition , getPreferredSize , getPrePainter , getVerticalPosition , getVisualInterfaceSupportInfo , getWidth , isEnabled , isFocus , isTransparent , isVisible , setBackgroundColor , setBorder , setFocus , setForegroundColor , setHeight , setHorizontalPosition , setPreferredSize , setPrePainter , setTransparent , setVerticalPosition , setVisible , setVisualInterfaceSupportInfo , setWidth , superGetFont , superGetMinimumSize , superGetPreferredSize , superIsEnabled , superIsVisible , superPaint , superSetBounds , superSetEnabled , superSetFont , superSetVisible , superUpdate
ArrowButton
public ArrowButton ()
Default constructor.
The arrow orientation is set to TOP by default.
ArrowButton
public ArrowButton (int orientation)
Constructor that sets the orientation of the arrow.
Parameters: orientation
- ArrowIcon orientation
getOrientation
public int getOrientation ()
Get the orientation of the ArrowIcon.
Returns: the arrowIcon can have an orientation of TOP, BOTTOM, LEFT, or RIGHT. See Also: Orientations
setOrientation
public void setOrientation (int orientation)
Set the orientation of the ArrowIcon.
Parameters: orientation
- the orientation of the arrowIcon; an Orientations value of TOP, BOTTOM, LEFT, or RIGHT.See Also: Orientations
buttonModelArmed
protected void buttonModelArmed (ButtonModelInterface btnModel)
Overridden to change the border style when the button is pressed and armed.
Overrides: buttonModelArmed
in class PushButton
Parameters: btnModel
- the current state of the button
buttonModelPressed
protected void buttonModelPressed (ButtonModelInterface btnModel)
Overridden to change the border style when the button is pressed and armed.
Overrides: buttonModelPressed
in class PushButton
Parameters: btnModel
- the current state of the button
buttonModelDisabled
protected void buttonModelDisabled (ButtonModelInterface btnModel)
Overridden to change the foreground color when the button is disabled.
Overrides: buttonModelDisabled
in class BaseButton
Parameters: btnModel
- the current state of the button
getMinimumSize
public java.awt.Dimension getMinimumSize ()
Get the minimum size of the ArrowButton based on its contents.
Specified by: getMinimumSize
in interface VisualInterface
Overrides: getMinimumSize
in class PushButton
Returns: the minimum size of the ArrowButton See Also: VisualInterface.getMinimumSize()
setBounds
public void setBounds (int x,
int y,
int width,
int height)
Set the bounds of the ArrowButton.
This also changes the displayed size of the ArrowIcon if the new size
is smaller than the current size.
Specified by: setBounds
in interface VisualInterface
Overrides: setBounds
in class BaseButton
Parameters: x
- the new x positiony
- the new y positionwidth
- the new widthheight
- the new heightSee Also: VisualInterface.setBounds(int, int, int, int)
Copyright © 2009 SAS Institute Inc. All Rights Reserved.