TV-Browser 2.7.5 API

util.ui
Class ProgramList

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JList
                  extended by util.ui.ProgramList
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, ListDataListener, Scrollable, PluginStateListener

public class ProgramList
extends JList
implements ChangeListener, ListDataListener, PluginStateListener

This Class extends a JList for showing Programs

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JList
JList.AccessibleJList, JList.DropLocation
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JList
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ProgramList(ListModel programs)
          Creates the JList and adds the default MouseListeners (PopUpBox)
ProgramList(ListModel programs, boolean showOnlyDateAndTitle)
          Deprecated. Since 2.2.2 Use ProgramList(ListModel, ProgramPanelSettings) instead.
ProgramList(ListModel programs, PluginPictureSettings settings)
          Creates the JList and adds the default MouseListeners (PopUpBox)
ProgramList(ListModel programs, PluginPictureSettings settings, int axis)
          Deprecated. Since 2.7 Use ProgramList(ListModel, ProgramPanelSettings) instead.
ProgramList(ListModel programs, ProgramPanelSettings settings)
          Creates the JList and adds the default MouseListeners (PopUpBox)
ProgramList(ListModel programs, ProgramPanelSettings settings, int axis)
          Deprecated. Since 2.7
ProgramList(Program[] programArr)
          Creates the JList and adds the default MouseListeners (PopUpBox)
ProgramList(Program[] programArr, boolean showOnlyDateAndTitle)
          Deprecated. Since 2.2.2 Use ProgramList(Program[], ProgramPanelSettings) instead.
ProgramList(Program[] programArr, PluginPictureSettings settings)
          Creates the JList and adds the default MouseListeners (PopUpBox)
ProgramList(Program[] programArr, ProgramPanelSettings settings)
          Creates the JList and adds the default MouseListeners (PopUpBox)
ProgramList(Vector<Program> programArr)
          Creates the JList and adds the default MouseListeners (PopUpBox)
ProgramList(Vector<Program> programArr, boolean showOnlyDateAndTitle)
          Deprecated. Since 2.2.2 Use ProgramList(Vector, ProgramPanelSettings) instead.
ProgramList(Vector<Program> programVector, PluginPictureSettings settings)
          Creates the JList and adds the default MouseListeners (PopUpBox)
ProgramList(Vector<Program> programVector, ProgramPanelSettings settings)
          Creates the JList and adds the default MouseListeners (PopUpBox)
 
Method Summary
 void addMouseListeners(ContextMenuIf caller)
          Add a Mouse-Listener for the Popup-Box The caller ContextMenuIfs menus are not shown, if you want to have all available menus just use null for caller.
 void addNotify()
          Add a ChangeListener to all Programs for repainting
 void contentsChanged(ListDataEvent e)
           
 Program[] getSelectedPrograms()
           
 void intervalAdded(ListDataEvent e)
           
 void intervalRemoved(ListDataEvent e)
           
 void pluginActivated(PluginProxy plugin)
           
 void pluginDeactivated(PluginProxy plugin)
           
 void pluginLoaded(PluginProxy plugin)
           
 void pluginUnloaded(PluginProxy plugin)
           
 void removeNotify()
          Remove a ChangeListener to all Programs
 void stateChanged(ChangeEvent e)
           
 
Methods inherited from class javax.swing.JList
addListSelectionListener, addSelectionInterval, clearSelection, createSelectionModel, ensureIndexIsVisible, fireSelectionValueChanged, getAccessibleContext, getAnchorSelectionIndex, getCellBounds, getCellRenderer, getDragEnabled, getDropLocation, getDropMode, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLastVisibleIndex, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPreferredScrollableViewportSize, getPrototypeCellValue, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getToolTipText, getUI, getUIClassID, getValueIsAdjusting, getVisibleRowCount, indexToLocation, isSelectedIndex, isSelectionEmpty, locationToIndex, paramString, removeListSelectionListener, removeSelectionInterval, setCellRenderer, setDragEnabled, setDropMode, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setListData, setModel, setPrototypeCellValue, setSelectedIndex, setSelectedIndices, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionInterval, setSelectionMode, setSelectionModel, setUI, setValueIsAdjusting, setVisibleRowCount, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProgramList

public ProgramList(Vector<Program> programArr)
Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programArr - Array of Programs to show

ProgramList

public ProgramList(Program[] programArr)
Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programArr - Array of Programs to show

ProgramList

public ProgramList(ListModel programs)
Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programs - Model with Programs to show

ProgramList

public ProgramList(Vector<Program> programVector,
                   ProgramPanelSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programVector - Array of Programs to show
settings - The settings for the program panel.
Since:
2.2.2

ProgramList

public ProgramList(Program[] programArr,
                   ProgramPanelSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programArr - Array of Programs to show
settings - The settings for the program panel.
Since:
2.2.2

ProgramList

public ProgramList(ListModel programs,
                   ProgramPanelSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programs - Model with Programs to show
settings - The settings for the program panel.
Since:
2.2.2

ProgramList

public ProgramList(Vector<Program> programVector,
                   PluginPictureSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programVector - Array of Programs to show
settings - The plugin picture settings for the program panel.
Since:
2.6

ProgramList

public ProgramList(Program[] programArr,
                   PluginPictureSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programArr - Array of Programs to show
settings - The plugin picture settings for the program panel.
Since:
2.6

ProgramList

public ProgramList(ListModel programs,
                   PluginPictureSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programs - Model with Programs to show
settings - The plugin picture settings for the program panel.
Since:
2.6

ProgramList

public ProgramList(Vector<Program> programArr,
                   boolean showOnlyDateAndTitle)
Deprecated. Since 2.2.2 Use ProgramList(Vector, ProgramPanelSettings) instead.

Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programArr - Array of Programs to show
showOnlyDateAndTitle - If this panel should only show date time and title.
Since:
2.2.1

ProgramList

public ProgramList(Program[] programArr,
                   boolean showOnlyDateAndTitle)
Deprecated. Since 2.2.2 Use ProgramList(Program[], ProgramPanelSettings) instead.

Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programArr - Array of Programs to show
showOnlyDateAndTitle - If this panel should only show date time and title.
Since:
2.2.1

ProgramList

public ProgramList(ListModel programs,
                   boolean showOnlyDateAndTitle)
Deprecated. Since 2.2.2 Use ProgramList(ListModel, ProgramPanelSettings) instead.

Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programs - Model with Programs to show
showOnlyDateAndTitle - If this panel should only show date time and title.
Since:
2.2.1

ProgramList

public ProgramList(ListModel programs,
                   ProgramPanelSettings settings,
                   int axis)
Deprecated. Since 2.7

Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programs - The program list.
settings - The program panel settings.
axis - The axis for the progress bar of the program table.

ProgramList

public ProgramList(ListModel programs,
                   PluginPictureSettings settings,
                   int axis)
Deprecated. Since 2.7 Use ProgramList(ListModel, ProgramPanelSettings) instead.

Creates the JList and adds the default MouseListeners (PopUpBox)

Parameters:
programs - Model with Programs to show
settings - The plugin picture settings for the program panel.
axis - The orientation of the progress bar.
Method Detail

addNotify

public void addNotify()
Add a ChangeListener to all Programs for repainting

Overrides:
addNotify in class JComponent

removeNotify

public void removeNotify()
Remove a ChangeListener to all Programs

Overrides:
removeNotify in class JComponent

addMouseListeners

public void addMouseListeners(ContextMenuIf caller)
Add a Mouse-Listener for the Popup-Box The caller ContextMenuIfs menus are not shown, if you want to have all available menus just use null for caller.

Parameters:
caller - The ContextMenuIf that called this.

stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

contentsChanged

public void contentsChanged(ListDataEvent e)
Specified by:
contentsChanged in interface ListDataListener

intervalAdded

public void intervalAdded(ListDataEvent e)
Specified by:
intervalAdded in interface ListDataListener

intervalRemoved

public void intervalRemoved(ListDataEvent e)
Specified by:
intervalRemoved in interface ListDataListener

getSelectedPrograms

public Program[] getSelectedPrograms()
Returns:
The selected programs;
Since:
2.2

pluginActivated

public void pluginActivated(PluginProxy plugin)
Specified by:
pluginActivated in interface PluginStateListener

pluginDeactivated

public void pluginDeactivated(PluginProxy plugin)
Specified by:
pluginDeactivated in interface PluginStateListener

pluginLoaded

public void pluginLoaded(PluginProxy plugin)
Specified by:
pluginLoaded in interface PluginStateListener

pluginUnloaded

public void pluginUnloaded(PluginProxy plugin)
Specified by:
pluginUnloaded in interface PluginStateListener

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)