com.ccg.swing
Class HistoryComboBoxModel

java.lang.Object
  extended by com.ccg.swing.HistoryComboBoxModel
All Implemented Interfaces:
ActionListener, EventListener

public class HistoryComboBoxModel
extends Object
implements ActionListener

Not ready for prime time - please ignore for now.

 class Example {
   public void main(String[] args) {
     com.ccg.swing.HistoryComboBoxModel o = new com.ccg.swing.HistoryComboBoxModel();
          System.out.println(o);
   }
 }
 

Since:
1.0
Version:
$Revision: 1.1 $
Author:
$Author: pkb $ #see [class][#method]|Text

Constructor Summary
HistoryComboBoxModel()
          Initializes object to...
HistoryComboBoxModel(Enumeration e)
           
HistoryComboBoxModel(Object[] data)
           
 
Method Summary
 void actionPerformed(ActionEvent ae)
           
 boolean attachJComboBox(JComboBox jcb)
           
 JComboBox createAndAttachJComboBox()
          One line summary...
 MutableComboBoxModel createMutableComboBoxModel()
           
 void detachJComboBox(JComboBox jcb)
           
 int getHistorySize()
          Get how many entries should be "remembered" in the history list
protected  void insertItem(Object o)
           
 boolean isItemOk(Object o)
           
protected  void removeItem(int index)
           
protected  void removeItem(Object o, int index)
           
 void setHistorySize(int val)
          Set how many entries should be "remembered" in the history list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryComboBoxModel

public HistoryComboBoxModel()
Initializes object to... It performs the following tasks:

Since:
1.0 #see [class][#meth]|Text

HistoryComboBoxModel

public HistoryComboBoxModel(Object[] data)

HistoryComboBoxModel

public HistoryComboBoxModel(Enumeration e)
Method Detail

setHistorySize

public void setHistorySize(int val)
Set how many entries should be "remembered" in the history list

Parameters:
val - New int value to assign.
See Also:
getHistorySize()

getHistorySize

public int getHistorySize()
Get how many entries should be "remembered" in the history list

Returns:
Current int value assigned.
See Also:
setHistorySize(int)

createAndAttachJComboBox

public JComboBox createAndAttachJComboBox()
One line summary... Describe...

Parameters:
arg1 - arg1-describe
arg2 - arg2-describe
Returns:
ret-description
Throws:
exc - Why thrown
Since:
1.0 #see [class][#meth]|Text

createMutableComboBoxModel

public MutableComboBoxModel createMutableComboBoxModel()

attachJComboBox

public boolean attachJComboBox(JComboBox jcb)

detachJComboBox

public void detachJComboBox(JComboBox jcb)

isItemOk

public boolean isItemOk(Object o)

removeItem

protected void removeItem(int index)

removeItem

protected void removeItem(Object o,
                          int index)

insertItem

protected void insertItem(Object o)

actionPerformed

public void actionPerformed(ActionEvent ae)
Specified by:
actionPerformed in interface ActionListener


Copyright 1998-1998-2006 null. All Rights Reserved.