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

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.AWTSelectBase
              extended byfi.hut.tml.xsmiles.gui.components.awt.AWTSelectOne
                  extended byfi.hut.tml.xsmiles.gui.components.awt.AWTSelectOneCompact
All Implemented Interfaces:
java.util.EventListener, java.awt.event.ItemListener, java.awt.ItemSelectable, XComponent, XSelect, XSelectOne
Direct Known Subclasses:
AWTSelectManyCompact

public class AWTSelectOneCompact
extends AWTSelectOne
implements XSelectOne, java.awt.event.ItemListener

select one compact mode

Author:
Mikko Honkala

Field Summary
protected  java.awt.List list
          the listbox
protected  boolean multiple
           
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTSelectOne
selectComponent
 
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, style
 
Constructor Summary
AWTSelectOneCompact()
           
 
Method Summary
 void addSelection(java.lang.Object o)
           
 java.awt.Component createComponent()
           
 java.awt.Color getDefaultBackgroundColor()
          the default background color for this type of component null = default.
 java.awt.Dimension getMinimumSize()
          return the minimum size for this component at zoom level 1.0
 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.awt.AWTSelectOne
getSelectedObjects, init, notifyChange
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.awt.AWTSelectBase
addItemListener, removeItemListener
 
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
addActionListener, addFocusListener, addMouseListener, getAddableComponent, getComponent, getDefaultSize, getEnabled, getFormatter, getHeight, 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
 

Field Detail

list

protected java.awt.List list
the listbox


multiple

protected boolean multiple
Constructor Detail

AWTSelectOneCompact

public AWTSelectOneCompact()
Method Detail

createComponent

public java.awt.Component createComponent()
Specified by:
createComponent in class AWTSelectOne

getDefaultBackgroundColor

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

Overrides:
getDefaultBackgroundColor in class ComponentBase

getMinimumSize

public java.awt.Dimension getMinimumSize()
return the minimum size for this component at zoom level 1.0

Overrides:
getMinimumSize 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