Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.javatools.ui.combo
Class FixListComboModel

java.lang.Object
  extended by oracle.javatools.ui.combo.FixListComboModel
All Implemented Interfaces:
javax.swing.ComboBoxModel, javax.swing.ListModel

public class FixListComboModel
extends java.lang.Object
implements javax.swing.ComboBoxModel

A model for use in a JFixListCombo


Constructor Summary
FixListComboModel(javax.swing.JList scrollList, javax.swing.JList fixList, boolean fixListBelow)
           
 
Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
          Currently does nothing
 java.lang.Object getElementAt(int index)
          Select the item specifid by the index.
 boolean getFixListBelow()
           
 java.lang.Object getSelectedItem()
           
 int getSize()
           
 void removeListDataListener(javax.swing.event.ListDataListener l)
          Currently does nothing
 void setFixListBelow(boolean fixListBelow)
           
 void setSelectedItem(java.lang.Object anItem)
          Select the ite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixListComboModel

public FixListComboModel(javax.swing.JList scrollList,
                         javax.swing.JList fixList,
                         boolean fixListBelow)
Method Detail

getSelectedItem

public java.lang.Object getSelectedItem()
Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel

setSelectedItem

public void setSelectedItem(java.lang.Object anItem)
Select the ite. The item can be in either the fixed or scrollable area.

Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel
Parameters:
anItem -

getElementAt

public java.lang.Object getElementAt(int index)
Select the item specifid by the index. The fix list and scroll list are appended to each other from top to bottom, and the index spans this combined list.

Specified by:
getElementAt in interface javax.swing.ListModel
Parameters:
index -
Returns:
element at specified index

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel

getFixListBelow

public boolean getFixListBelow()

setFixListBelow

public void setFixListBelow(boolean fixListBelow)

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener l)
Currently does nothing

Specified by:
addListDataListener in interface javax.swing.ListModel
Parameters:
l -

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Currently does nothing

Specified by:
removeListDataListener in interface javax.swing.ListModel
Parameters:
l -

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.