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()
      Constructor.
  • Method Details

    • getPrefRowCount

      public int getPrefRowCount()
      Returns the preferred number of rows.
    • setPrefRowCount

      public void setPrefRowCount(int aValue)
      Sets the preferred number of rows.
    • getMaxRowCount

      public int getMaxRowCount()
      Returns the maximum number of rows.
    • setMaxRowCount

      public void setMaxRowCount(int aValue)
      Sets the maximum number of rows.
    • getPopup

      public PopupWindow getPopup()
      Returns the popup.
    • show

      public void show(View aView, double aX, double aY)
      Shows this popup list in a popup window at given XY relative to view.
    • hide

      public void hide()
      Hides the node.
    • setItems

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

      protected void fireActionEvent(ViewEvent anEvent)
      Override to hide popup window.
      Overrides:
      fireActionEvent in class View
    • handlePopupWindowShowingChanged

      protected void handlePopupWindowShowingChanged()
      Called when PopupWindow is shown/hidden.
    • handleClientViewKeyPressEvent

      protected void handleClientViewKeyPressEvent(ViewEvent anEvent)
      Called when owner View has KeyPress events.