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

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
All Implemented Interfaces:
XComponent, XSelect
Direct Known Subclasses:
HaviSelectBoolean, HaviSelectOne

public abstract class HaviSelectBase
extends HaviStylableComponent
implements XSelect

Common base class for text components

Author:
Mikko Honkala

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
content, currentFont, currentZoom, defaultBGColor, defaultFont, defaultSize, fInputMode, hintText, minSize, style
 
Constructor Summary
HaviSelectBase()
           
 
Method Summary
 void addItemListener(java.awt.event.ItemListener l)
          add a listener for changes in the range control
 void addSelection(java.lang.Object o)
           
abstract  java.awt.Component createComponent()
           
 int getSelectedIndex()
           
 void removeAll()
           
 void removeItemListener(java.awt.event.ItemListener l)
          remove a listener for changes in the range control
 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.havi.HaviStylableComponent
setBackground
 
Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase
addActionListener, addFocusListener, addHelpListener, addMouseListener, getAddableComponent, getComponent, getDefaultBackgroundColor, getDefaultSize, getEnabled, getFormatter, getHeight, getMinimumSize, getPreferredSize, getSizableComponent, getSize, getStylableComponent, 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.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
 

Constructor Detail

HaviSelectBase

public HaviSelectBase()
Method Detail

createComponent

public abstract java.awt.Component createComponent()

addItemListener

public void addItemListener(java.awt.event.ItemListener l)
add a listener for changes in the range control

Specified by:
addItemListener in interface XSelect

removeItemListener

public void removeItemListener(java.awt.event.ItemListener l)
remove a listener for changes in the range control

Specified by:
removeItemListener in interface XSelect

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


X-Smiles 1.2