|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
fi.hut.tml.xsmiles.gui.components.awt.XAComponent
fi.hut.tml.xsmiles.gui.components.swing.XAButton
Similar functionality as normal AWT button. Features:
| Nested Class Summary | |
class |
XAButton.MouseHandler
|
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static int |
DISABLED
|
static int |
FOCUSED
|
static int |
NORMAL
|
static int |
PRESSED
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
XAButton()
|
|
XAButton(java.lang.String iName)
|
|
XAButton(java.lang.String i1Name,
java.lang.String i2Name)
|
|
XAButton(java.lang.String i1Name,
java.lang.String i2Name,
java.lang.String i3Name)
|
|
XAButton(java.lang.String i1Name,
java.lang.String i2Name,
java.lang.String i3Name,
boolean val)
|
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
|
java.lang.String |
getActionCommand()
|
java.lang.String |
getLabel()
|
java.awt.Dimension |
getPreferredSize()
|
int |
getState()
|
boolean |
isActive()
|
boolean |
isEnabled()
|
void |
paint(java.awt.Graphics g)
|
protected java.lang.String |
paramString()
|
protected void |
processActionEvent(java.awt.event.ActionEvent e)
|
void |
removeActionListener(java.awt.event.ActionListener l)
|
void |
set3D(boolean val)
Does button 3d pop-up. |
void |
setActionCommand(java.lang.String command)
|
void |
setActive(boolean b)
|
void |
setBounds(int x,
int y,
int w,
int h)
|
void |
setEnabled(boolean enabled)
|
void |
setGray(boolean val)
|
void |
setImage(java.lang.String fn)
|
void |
setImage(XAImageIcon i)
|
void |
setImageDisabled(java.lang.String fn)
|
void |
setimagePressed(java.lang.String fn)
|
void |
setImagePressed(XAImageIcon i)
|
void |
setImageRollOver(java.lang.String fn)
|
void |
setImageRollOver(XAImageIcon i)
|
void |
setLabel(java.lang.String l)
|
void |
setSize(java.awt.Dimension d)
|
void |
setSize(int w,
int h)
|
void |
setState(int s)
|
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NORMAL
public static final int FOCUSED
public static final int PRESSED
public static final int DISABLED
| Constructor Detail |
public XAButton(java.lang.String iName)
public XAButton(java.lang.String i1Name,
java.lang.String i2Name)
public XAButton(java.lang.String i1Name,
java.lang.String i2Name,
java.lang.String i3Name,
boolean val)
i1Name - normal imagei2Name - RollOveri3Name - Pressedval - Display greyfiltered image for disabled
public XAButton(java.lang.String i1Name,
java.lang.String i2Name,
java.lang.String i3Name)
public XAButton()
| Method Detail |
public void addActionListener(java.awt.event.ActionListener l)
public void set3D(boolean val)
public java.lang.String getActionCommand()
public java.lang.String getLabel()
protected java.lang.String paramString()
protected void processActionEvent(java.awt.event.ActionEvent e)
public void removeActionListener(java.awt.event.ActionListener l)
public void setActionCommand(java.lang.String command)
public void setLabel(java.lang.String l)
public void setEnabled(boolean enabled)
public boolean isEnabled()
public void paint(java.awt.Graphics g)
paint in class XAComponentpublic void setActive(boolean b)
public boolean isActive()
public void setImage(XAImageIcon i)
public void setImagePressed(XAImageIcon i)
public void setImageRollOver(XAImageIcon i)
public void setImage(java.lang.String fn)
public void setimagePressed(java.lang.String fn)
public void setImageRollOver(java.lang.String fn)
public void setImageDisabled(java.lang.String fn)
public void setGray(boolean val)
public int getState()
getState in class XAComponentpublic void setState(int s)
public java.awt.Dimension getPreferredSize()
public void setSize(java.awt.Dimension d)
public void setSize(int w,
int h)
public void setBounds(int x,
int y,
int w,
int h)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||