|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcommon.gui.PopupList
A popup control for displaying a arbitrary list of items.
Constructor Summary | |
PopupList()
Create a new PopupList . |
|
PopupList(int visibleRowCount)
Create a new PopupList . |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PopupList()
PopupList
.
public PopupList(int visibleRowCount)
PopupList
.
Method Detail |
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 ListItem
s 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 ListItem
s 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.FocusListener
public final void focusLost(java.awt.event.FocusEvent evt)
focusLost
in interface java.awt.event.FocusListener
public final void windowClosing(java.awt.event.WindowEvent evt)
windowClosing
in interface java.awt.event.WindowListener
public final void windowClosed(java.awt.event.WindowEvent evt)
windowClosed
in interface java.awt.event.WindowListener
public final void windowOpened(java.awt.event.WindowEvent evt)
windowOpened
in interface java.awt.event.WindowListener
public final void windowActivated(java.awt.event.WindowEvent evt)
windowActivated
in interface java.awt.event.WindowListener
public final void windowDeactivated(java.awt.event.WindowEvent evt)
windowDeactivated
in interface java.awt.event.WindowListener
public final void windowIconified(java.awt.event.WindowEvent evt)
windowIconified
in interface java.awt.event.WindowListener
public final void windowDeiconified(java.awt.event.WindowEvent evt)
windowDeiconified
in interface java.awt.event.WindowListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |