fi.hut.tml.xsmiles.gui.components.swing
Class SwingUpload

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.general.ComponentBase
      extended byfi.hut.tml.xsmiles.gui.components.swing.SwingStylableComponent
          extended byfi.hut.tml.xsmiles.gui.components.swing.SwingButton
              extended byfi.hut.tml.xsmiles.gui.components.swing.SwingUpload
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, XButton, XComponent, XUpload

public class SwingUpload
extends SwingButton
implements XUpload, java.awt.event.ActionListener

The XForms/Button element

Author:
Mikko Honkala

Field Summary
protected  ComponentFactory factory
           
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingButton
button, icon, name
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingStylableComponent
HELPKEY
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
content, currentFont, currentZoom, defaultBGColor, defaultFont, defaultSize, fInputMode, hintText, minSize, style
 
Constructor Summary
SwingUpload(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.swing.SwingButton
createContent, getComponent, getDefaultBackgroundColor, setActionCommand, setCaptionText, setImage, setImageDisabled, setImagePressed, setImageRollOver, setLabel
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingStylableComponent
addHelpListener, createHint, getFormatter, isCaption, removeHelpListener, setBackground, setHintRecursively, setHintText, sizeComponent
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
addFocusListener, addMouseListener, getAddableComponent, getDefaultSize, getEnabled, getHeight, getMinimumSize, getPreferredSize, 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

SwingUpload

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

Method Detail

init

public void init()
Overrides:
init in class SwingButton

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 SwingButton

removeActionListener

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


X-Smiles 1.2