Package snap.view

Class BrowserCol<T>

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

public class BrowserCol<T> extends ListView<T>
A ListView subclass to act as a BrowserView column.
  • Field Details

    • _index

      protected int _index
  • Constructor Details

    • BrowserCol

      public BrowserCol(BrowserView<T> aBrsr)
      Constructor.
  • Method Details

    • getBrowser

      public BrowserView<T> getBrowser()
      Returns the browser.
    • getIndex

      public int getIndex()
      Returns the column index.
    • processEvent

      protected void processEvent(ViewEvent anEvent)
      Override to have browser select this column on MouseRelease.
      Overrides:
      processEvent in class ListView<T>
    • fireActionEvent

      protected void fireActionEvent(ViewEvent anEvent)
      Override to suppress ListView and fire Browser.
      Overrides:
      fireActionEvent in class View
    • getPrefWidthImpl

      protected double getPrefWidthImpl(double aH)
      Override to return Browser.PrefColWidth.
      Overrides:
      getPrefWidthImpl in class ListView<T>