|
| Components |
|
| |||||||||||
| 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
|
+--com.sas.awt.ContainerVisualComponent
|
+--com.sas.awt.ContainerContainerComponent
|
+--com.sas.awt.Container
|
+--com.sas.visuals.CompositeContainer
|
+--com.sas.visuals.BaseButton
|
+--com.sas.visuals.PushButton
|
+--com.sas.visuals.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.
| Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Fields inherited from class com.sas.visuals.PushButton |
contentShift, label, RB_KEY |
| 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 |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.sas.visuals.Alignment |
BEGIN, CENTER, END |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ArrowButton()
Default constructor. |
|
ArrowButton(int orientation)
Constructor that sets the orientation of the arrow. |
|
| Method Summary | |
protected void |
buttonModelArmed(ButtonModelInterface btnModel)
Overridden to change the border style when the button is pressed and armed. |
protected void |
buttonModelDisabled(ButtonModelInterface btnModel)
Overridden to change the foreground color when the button is disabled. |
protected void |
buttonModelPressed(ButtonModelInterface btnModel)
Overridden to change the border style when the button is pressed and armed. |
Dimension |
getMinimumSize()
Get the minimum size of the ArrowButton based on its contents. |
int |
getOrientation()
Get the orientation of the ArrowIcon. |
void |
setBounds(int x,
int y,
int width,
int height)
Set the bounds of the ArrowButton. |
void |
setOrientation(int orientation)
Set the orientation of the ArrowIcon. |
| 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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sas.awt.ContainerInterface |
getComponents, getLayout, invalidate, setLayout, validate |
| Constructor Detail |
public ArrowButton()
public ArrowButton(int orientation)
orientation - ArrowIcon orientation| Method Detail |
public int getOrientation()
Orientationspublic void setOrientation(int orientation)
orientation - the orientation of the arrowIcon; an Orientations value of TOP, BOTTOM, LEFT, or RIGHT.Orientationsprotected void buttonModelArmed(ButtonModelInterface btnModel)
buttonModelArmed in class PushButtonbtnModel - the current state of the buttonprotected void buttonModelPressed(ButtonModelInterface btnModel)
buttonModelPressed in class PushButtonbtnModel - the current state of the buttonprotected void buttonModelDisabled(ButtonModelInterface btnModel)
buttonModelDisabled in class BaseButtonbtnModel - the current state of the buttonpublic Dimension getMinimumSize()
getMinimumSize in class PushButton
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class BaseButtonx - the new x positiony - the new y positionwidth - the new widthheight - the new height
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||