fi.hut.tml.xsmiles.gui.components.awt
Class AWTUpload

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.general.ComponentBase
      extended byfi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
          extended byfi.hut.tml.xsmiles.gui.components.awt.AWTButton
              extended byfi.hut.tml.xsmiles.gui.components.awt.AWTUpload
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, XButton, XComponent, XUpload

public class AWTUpload
extends AWTButton
implements XUpload, java.awt.event.ActionListener

The XForms/Button element

Author:
Mikko Honkala, awt mod juha

Field Summary
protected  ComponentFactory factory
           
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTButton
button, iconUrl, name
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
hiddenFrame
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
content, currentFont, currentZoom, defaultBGColor, defaultFont, defaultSize, fInputMode, hintText, minSize, style
 
Constructor Summary
AWTUpload(java.lang.String captionText, ComponentFactory cf)
          Constructs a new XButton (XForms/button).
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvent)
           
 void addActionListener(java.awt.event.ActionListener tl)
          At the moment ALL events are delegated through a simple actionListener
 void init()
           
 void removeActionListener(java.awt.event.ActionListener tl)
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTButton
createContent, getComponent, getDefaultBackgroundColor, setActionCommand, setCaptionText, setImage, setImageDisabled, setImagePressed, setImageRollOver, setLabel
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTStylableComponent
addHelpListener, createHint, getHiddenFrame, getPreferredSize, isCaption, removeHelpListener, setBackground, setHintRecursively, setHintText, sizeComponent
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
addFocusListener, addMouseListener, getAddableComponent, getDefaultSize, getEnabled, getFormatter, getHeight, getMinimumSize, getSizableComponent, getSize, getStylableComponent, getStyle, getWidth, getX, getY, removeFocusListener, removeMouseListener, setBounds, setDefaultSize, setEnabled, setFocus, setFont, setForeground, setInputMode, setStyle, setVisible, setZoom, sizeComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.hut.tml.xsmiles.gui.components.XComponent
addFocusListener, addHelpListener, addMouseListener, getComponent, getEnabled, getHeight, getSize, getStyle, getWidth, getX, getY, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setEnabled, setFocus, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom
 

Field Detail

factory

protected ComponentFactory factory
Constructor Detail

AWTUpload

public AWTUpload(java.lang.String captionText,
                 ComponentFactory cf)
Constructs a new XButton (XForms/button).

Method Detail

init

public void init()
Overrides:
init in class AWTButton

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionEvent)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

addActionListener

public void addActionListener(java.awt.event.ActionListener tl)
Description copied from interface: XComponent
At the moment ALL events are delegated through a simple actionListener

Specified by:
addActionListener in interface XComponent
Overrides:
addActionListener in class AWTButton

removeActionListener

public void removeActionListener(java.awt.event.ActionListener tl)
Specified by:
removeActionListener in interface XComponent
Overrides:
removeActionListener in class AWTButton


X-Smiles 1.2