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

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.SwingSelectBase
              extended byfi.hut.tml.xsmiles.gui.components.swing.SwingSelectOne
                  extended byfi.hut.tml.xsmiles.gui.components.swing.SwingSelectOneMinimal
All Implemented Interfaces:
java.util.EventListener, java.awt.event.ItemListener, java.awt.ItemSelectable, XComponent, XSelect, XSelectOne

public class SwingSelectOneMinimal
extends SwingSelectOne
implements XSelectOne, java.awt.event.ItemListener

select one minimal mode

Author:
Mikko Honkala

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingSelectOne
selectComponent
 
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
SwingSelectOneMinimal(boolean open)
           
 
Method Summary
 void addSelection(java.lang.Object o)
           
 java.awt.Component createComponent()
          Creates the visual component of this control.
 java.awt.Color getDefaultBackgroundColor()
          the default background color for this type of component null = default.
 int getSelectedIndex()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
          the selection events from a menu arrive here
 void removeAll()
           
 void removeSelection(java.lang.Object o)
           
 void setSelected(java.lang.Object o)
           
 void setSelectedIndex(int index)
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingSelectOne
getSelectedObjects, init, notifyChange
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingSelectBase
addItemListener, removeItemListener
 
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
addActionListener, addFocusListener, addMouseListener, getAddableComponent, getComponent, getDefaultSize, getEnabled, getHeight, getMinimumSize, getPreferredSize, getSizableComponent, getSize, getStylableComponent, getStyle, getWidth, getX, getY, removeActionListener, 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.XSelect
addItemListener, removeItemListener
 
Methods inherited from interface fi.hut.tml.xsmiles.gui.components.XComponent
addActionListener, addFocusListener, addHelpListener, addMouseListener, getComponent, getEnabled, getHeight, getSize, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setEnabled, setFocus, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom
 
Methods inherited from interface java.awt.ItemSelectable
addItemListener, removeItemListener
 

Constructor Detail

SwingSelectOneMinimal

public SwingSelectOneMinimal(boolean open)
Method Detail

createComponent

public java.awt.Component createComponent()
Creates the visual component of this control.

Specified by:
createComponent in class SwingSelectOne

getDefaultBackgroundColor

public java.awt.Color getDefaultBackgroundColor()
the default background color for this type of component null = default.

Overrides:
getDefaultBackgroundColor in class ComponentBase

addSelection

public void addSelection(java.lang.Object o)
Specified by:
addSelection in interface XSelect

removeSelection

public void removeSelection(java.lang.Object o)
Specified by:
removeSelection in interface XSelect

removeAll

public void removeAll()
Specified by:
removeAll in interface XSelect

setSelected

public void setSelected(java.lang.Object o)
Specified by:
setSelected in interface XSelect

setSelectedIndex

public void setSelectedIndex(int index)
Specified by:
setSelectedIndex in interface XSelect

getSelectedIndex

public int getSelectedIndex()
Specified by:
getSelectedIndex in interface XSelect

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
the selection events from a menu arrive here

Specified by:
itemStateChanged in interface java.awt.event.ItemListener


X-Smiles 1.2