Package snap.view

Class PopupList<T>

All Implemented Interfaces:
PropChange.DoChange, Selectable<T>, XMLArchiver.Archivable

public class PopupList<T> extends ListView<T>
A ListView subclass that displays in a PopupWindow.
  • Constructor Details

    • PopupList

      public PopupList()
      Creates a new PopupList.
  • Method Details

    • getPopup

      public PopupWindow getPopup()
      Returns the popup.
    • show

      public void show(View aView, double aX, double aY)
      Shows the node.
    • hide

      public void hide()
      Hides the node.
    • setItemsList

      public void setItemsList(List<T> theItems)
      Override to resize if showing.
      Specified by:
      setItemsList in interface Selectable<T>
      Overrides:
      setItemsList in class ListView<T>
    • fireActionEvent

      protected void fireActionEvent(ViewEvent anEvent)
      Override to hide popuplist.
      Overrides:
      fireActionEvent in class View
    • processPopupListKeyPressEvent

      protected void processPopupListKeyPressEvent(ViewEvent anEvent)
      Called when owner View has KeyPress events.
    • popupWindowShowingChanged

      protected void popupWindowShowingChanged()
      Called when PopupWindow is shown/hidden.