fi.hut.tml.xsmiles.gui.components.havi
Class HaviSelectOneCompact

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.components.general.ComponentBase
      extended byfi.hut.tml.xsmiles.gui.components.havi.HaviStylableComponent
          extended byfi.hut.tml.xsmiles.gui.components.havi.HaviSelectBase
              extended byfi.hut.tml.xsmiles.gui.components.havi.HaviSelectOne
                  extended byfi.hut.tml.xsmiles.gui.components.havi.HaviSelectOneCompact
All Implemented Interfaces:
java.util.EventListener, org.ftv.ui.event.HItemListener, java.awt.ItemSelectable, XComponent, XSelect, XSelectOne
Direct Known Subclasses:
HaviSelectManyCompact

public class HaviSelectOneCompact
extends HaviSelectOne
implements XSelectOne, org.ftv.ui.event.HItemListener

select one compact mode

Author:
Mikko Honkala

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.havi.HaviSelectOne
multiple, selectComponent
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
content, currentFont, currentZoom, defaultBGColor, defaultFont, defaultSize, fInputMode, hintText, style
 
Constructor Summary
HaviSelectOneCompact()
           
 
Method Summary
 void addSelection(java.lang.Object o)
           
 java.awt.Component createComponent()
           
 void currentItemChanged(org.ftv.ui.event.HItemEvent hItemEvent)
           
 java.awt.Component getAddableComponent()
           
 java.awt.Component getContentComponent()
          the selection events from a list arrive here
 java.awt.Color getDefaultBackgroundColor()
          the default background color for this type of component null = default.
protected  int getListSelectionModel()
           
 java.awt.Dimension getMinimumSize()
          return the minimum size for this component at zoom level 1.0
 int getSelectedIndex()
           
 java.awt.Component getSizableComponent()
           
 java.awt.Component getStylableComponent()
           
 void removeAll()
           
 void removeSelection(java.lang.Object o)
           
 void selectionChanged(org.ftv.ui.event.HItemEvent hItemEvent)
           
 void setSelected(java.lang.Object o)
           
 void setSelectedIndex(int index)
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.havi.HaviSelectOne
getSelectedObjects, notifyChange
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.havi.HaviSelectBase
addItemListener, removeItemListener
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.havi.HaviStylableComponent
setBackground
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
addActionListener, addFocusListener, addHelpListener, addMouseListener, getComponent, getDefaultSize, getEnabled, getFormatter, getHeight, getPreferredSize, getSize, getStyle, getWidth, getX, getY, removeActionListener, removeFocusListener, removeHelpListener, removeMouseListener, setBounds, setDefaultSize, setEnabled, setFocus, setFont, setForeground, setHintText, setInputMode, setStyle, setVisible, setZoom, sizeComponent, 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

HaviSelectOneCompact

public HaviSelectOneCompact()
Method Detail

createComponent

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

getListSelectionModel

protected int getListSelectionModel()

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
Overrides:
addSelection in class HaviSelectBase

removeSelection

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

removeAll

public void removeAll()
Specified by:
removeAll in interface XSelect
Overrides:
removeAll in class HaviSelectBase

setSelected

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

setSelectedIndex

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

getSelectedIndex

public int getSelectedIndex()
Specified by:
getSelectedIndex in interface XSelect
Overrides:
getSelectedIndex in class HaviSelectBase

getContentComponent

public java.awt.Component getContentComponent()
the selection events from a list arrive here


getAddableComponent

public java.awt.Component getAddableComponent()
Overrides:
getAddableComponent in class ComponentBase

getSizableComponent

public java.awt.Component getSizableComponent()
Overrides:
getSizableComponent in class ComponentBase

getStylableComponent

public java.awt.Component getStylableComponent()
Overrides:
getStylableComponent in class ComponentBase

currentItemChanged

public void currentItemChanged(org.ftv.ui.event.HItemEvent hItemEvent)
Specified by:
currentItemChanged in interface org.ftv.ui.event.HItemListener

selectionChanged

public void selectionChanged(org.ftv.ui.event.HItemEvent hItemEvent)
Specified by:
selectionChanged in interface org.ftv.ui.event.HItemListener


X-Smiles 1.2