|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
edu.stanford.smi.protegex.owl.ui.resourceselection.ResourceSelectionComboBox
A JComboBox that can be used to select an RDFResource from a sorted list. That special thing about this is that users can type the first letters of the frame name and the list will automatically filter those that match this prefix.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComboBox |
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private Component |
host
|
private ResourceSelectionListener |
listener
|
private ResourceFilterListModel |
model
|
private Color |
oldBackground
|
Fields inherited from class javax.swing.JComboBox |
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ResourceSelectionComboBox(Collection resources,
ResourceSelectionListener aListener)
|
|
ResourceSelectionComboBox(Component aHost,
Collection resources,
ResourceSelectionListener aListener)
|
|
ResourceSelectionComboBox(Component aHost,
Collection resources,
ResourceSelectionListener aListener,
ListCellRenderer renderer)
|
Method Summary | |
void |
firePopupMenuWillBecomeInvisible()
|
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
private void |
okay()
|
static void |
selectFrame(Collection resources,
JComponent host,
int x,
ResourceSelectionListener listener)
|
static void |
selectResource(Collection resources,
JComponent host,
int x,
ResourceSelectionListener listener,
ListCellRenderer renderer)
|
private void |
updateBounds()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Color oldBackground
private Component host
private ResourceSelectionListener listener
private ResourceFilterListModel model
Constructor Detail |
public ResourceSelectionComboBox(Collection resources, ResourceSelectionListener aListener)
public ResourceSelectionComboBox(Component aHost, Collection resources, ResourceSelectionListener aListener)
public ResourceSelectionComboBox(Component aHost, Collection resources, ResourceSelectionListener aListener, ListCellRenderer renderer)
Method Detail |
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void firePopupMenuWillBecomeInvisible()
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
private void okay()
public static void selectFrame(Collection resources, JComponent host, int x, ResourceSelectionListener listener)
public static void selectResource(Collection resources, JComponent host, int x, ResourceSelectionListener listener, ListCellRenderer renderer)
private void updateBounds()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |