public class PopupList
extends java.lang.Object
implements java.awt.event.FocusListener, java.awt.event.WindowListener
| Constructor and Description |
|---|
PopupList()
Create a new
PopupList. |
PopupList(int visibleRowCount)
Create a new
PopupList. |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
Add an
java.awt.event.ActionListener. |
void |
cancel()
Cancel the popup.
|
void |
disableKeyStrokeCycling()
Deprecated.
As of CC 0.9.0, this method does nothing.
|
void |
enableKeyStrokeCycling(java.lang.String anActionName)
Deprecated.
As of CC 0.9.0, this method does nothing.
|
void |
focusGained(java.awt.event.FocusEvent evt) |
void |
focusLost(java.awt.event.FocusEvent evt) |
java.lang.Object |
getSelectedActualItem()
Returns the selected actual item.
|
ListItem |
getSelectedItem()
Returns the selected item.
|
void |
setItems(java.util.List theItems)
Set the items to show.
|
void |
setRequestTextAreaFocusOnCancel(boolean b)
Set whether focus should go to the main text area if this popup is
cancelled.
|
void |
setSelectedActualItem(java.lang.Object actualItem)
Sets the selected actual item.
|
void |
show(org.gjt.sp.jedit.View view)
Show this popup in a window.
|
static PopupList |
show(org.gjt.sp.jedit.View view,
java.util.List items,
java.awt.event.ActionListener listener)
Show this popup.
|
static PopupList |
show(org.gjt.sp.jedit.View view,
java.util.List items,
java.lang.Object selectedActualItem,
java.awt.event.ActionListener listener)
Show this popup.
|
void |
windowActivated(java.awt.event.WindowEvent evt)
Handle a window activated event.
|
void |
windowClosed(java.awt.event.WindowEvent evt)
Handle a window closed event.
|
void |
windowClosing(java.awt.event.WindowEvent evt)
Handle a window closing event.
|
void |
windowDeactivated(java.awt.event.WindowEvent evt)
Handle a window deactivated event.
|
void |
windowDeiconified(java.awt.event.WindowEvent evt)
Handle a window deiconified event.
|
void |
windowIconified(java.awt.event.WindowEvent evt)
Handle a window iconified event.
|
void |
windowOpened(java.awt.event.WindowEvent evt)
Handle a window opened event.
|
public PopupList()
PopupList.public PopupList(int visibleRowCount)
PopupList.public void enableKeyStrokeCycling(java.lang.String anActionName)
public void disableKeyStrokeCycling()
public void setItems(java.util.List theItems)
public ListItem getSelectedItem()
public java.lang.Object getSelectedActualItem()
getSelectedItem().getActualItem().public void setSelectedActualItem(java.lang.Object actualItem)
public void setRequestTextAreaFocusOnCancel(boolean b)
false.public void show(org.gjt.sp.jedit.View view)
public void cancel()
public void addActionListener(java.awt.event.ActionListener listener)
java.awt.event.ActionListener.public static PopupList show(org.gjt.sp.jedit.View view, java.util.List items, java.lang.Object selectedActualItem, java.awt.event.ActionListener listener)
view - The view requesting the popup.items - The list of ListItems to show.selectedActualItem - The ListItem.getActualItem() that is selected.listener - The java.awt.event.ActionListener to invoke
when a selection is made.public static PopupList show(org.gjt.sp.jedit.View view, java.util.List items, java.awt.event.ActionListener listener)
view - The view requesting the popup.items - The list of ListItems to show.listener - The java.awt.event.ActionListener to invoke
when a selection is made.public final void focusGained(java.awt.event.FocusEvent evt)
focusGained in interface java.awt.event.FocusListenerpublic final void focusLost(java.awt.event.FocusEvent evt)
focusLost in interface java.awt.event.FocusListenerpublic final void windowClosing(java.awt.event.WindowEvent evt)
windowClosing in interface java.awt.event.WindowListenerpublic final void windowClosed(java.awt.event.WindowEvent evt)
windowClosed in interface java.awt.event.WindowListenerpublic final void windowOpened(java.awt.event.WindowEvent evt)
windowOpened in interface java.awt.event.WindowListenerpublic final void windowActivated(java.awt.event.WindowEvent evt)
windowActivated in interface java.awt.event.WindowListenerpublic final void windowDeactivated(java.awt.event.WindowEvent evt)
windowDeactivated in interface java.awt.event.WindowListenerpublic final void windowIconified(java.awt.event.WindowEvent evt)
windowIconified in interface java.awt.event.WindowListenerpublic final void windowDeiconified(java.awt.event.WindowEvent evt)
windowDeiconified in interface java.awt.event.WindowListener