|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JList util.ui.ProgramList
public class ProgramList
This Class extends a JList for showing Programs
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JList |
---|
javax.swing.JList.AccessibleJList, javax.swing.JList.DropLocation |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static java.lang.String |
DATE_SEPARATOR
Key for separator list entry |
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(javax.swing.ListModel programs)
Creates the JList and adds the default MouseListeners (PopUpBox) |
|
ProgramList(javax.swing.ListModel programs,
PluginPictureSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox) |
|
ProgramList(javax.swing.ListModel programs,
ProgramPanelSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox) |
|
ProgramList(Program[] programArr)
Creates the JList and adds the default MouseListeners (PopUpBox) |
|
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(java.util.Vector<Program> programArr)
Creates the JList and adds the default MouseListeners (PopUpBox) |
|
ProgramList(java.util.Vector<Program> programVector,
PluginPictureSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox) |
|
ProgramList(java.util.Vector<Program> programVector,
ProgramPanelSettings settings)
Creates the JList and adds the default MouseListeners (PopUpBox) |
Method Summary | |
---|---|
void |
addDateSeparators()
Adds date separators to this list. |
void |
addMouseAndKeyListeners(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 |
addMouseListeners(ContextMenuIf caller)
Deprecated. since 3.3.1 use addMouseAndKeyListeners(ContextMenuIf) instead. |
void |
addNotify()
Add a ChangeListener to all Programs for repainting |
void |
contentsChanged(javax.swing.event.ListDataEvent e)
|
int |
getNewIndexForOldIndex(int index)
Gets the new index of a row after adding of date separators. |
static java.lang.String |
getNextActionTooltip()
|
static java.lang.String |
getPreviousActionTooltip()
|
Program |
getProgramForKeyEvent(java.awt.event.KeyEvent e)
Gets the program to use for a key action. |
Program |
getProgramForMouseEvent(java.awt.event.MouseEvent e)
Gets the program to use for a mouse action. |
Program[] |
getSelectedPrograms()
|
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event)
|
void |
intervalAdded(javax.swing.event.ListDataEvent e)
|
void |
intervalRemoved(javax.swing.event.ListDataEvent e)
|
void |
keyEventActionFinished()
Called when KeyEventAction was finished. |
void |
mouseEventActionFinished()
Called when MouseEventAction was finished. |
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 |
scrollToNextDayIfAvailable()
Scrolls the list to next day from the current view position (if next day is available) |
void |
scrollToPreviousDayIfAvailable()
Scrolls the list to previous day from the current view position (if previous day is available) |
void |
setModel(javax.swing.ListModel model)
|
void |
showContextMenu(java.awt.event.MouseEvent e)
Show a context menu on the triggered event. |
void |
showContextMenu(Program program)
Show a context menu on the triggered program. |
void |
stateChanged(javax.swing.event.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, getUI, getUIClassID, getValueIsAdjusting, getVisibleRowCount, indexToLocation, isSelectedIndex, isSelectionEmpty, locationToIndex, paramString, removeListSelectionListener, removeSelectionInterval, setCellRenderer, setDragEnabled, setDropMode, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setListData, 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, transferFocusBackward, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DATE_SEPARATOR
Constructor Detail |
---|
public ProgramList(java.util.Vector<Program> programArr)
programArr
- Array of Programs to showpublic ProgramList(Program[] programArr)
programArr
- Array of Programs to showpublic ProgramList(javax.swing.ListModel programs)
programs
- Model with Programs to showpublic ProgramList(java.util.Vector<Program> programVector, ProgramPanelSettings settings)
programVector
- Array of Programs to showsettings
- The settings for the program panel.public ProgramList(Program[] programArr, ProgramPanelSettings settings)
programArr
- Array of Programs to showsettings
- The settings for the program panel.public ProgramList(javax.swing.ListModel programs, ProgramPanelSettings settings)
programs
- Model with Programs to showsettings
- The settings for the program panel.public ProgramList(java.util.Vector<Program> programVector, PluginPictureSettings settings)
programVector
- Array of Programs to showsettings
- The plugin picture settings for the program panel.public ProgramList(Program[] programArr, PluginPictureSettings settings)
programArr
- Array of Programs to showsettings
- The plugin picture settings for the program panel.public ProgramList(javax.swing.ListModel programs, PluginPictureSettings settings)
programs
- Model with Programs to showsettings
- The plugin picture settings for the program panel.Method Detail |
---|
public void addNotify()
addNotify
in class javax.swing.JComponent
public void removeNotify()
removeNotify
in class javax.swing.JComponent
public void addMouseListeners(ContextMenuIf caller)
addMouseAndKeyListeners(ContextMenuIf)
instead.
null
for caller.
caller
- The ContextMenuIf that called this.public void addMouseAndKeyListeners(ContextMenuIf caller)
null
for caller.
caller
- The ContextMenuIf that called this.public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public void contentsChanged(javax.swing.event.ListDataEvent e)
contentsChanged
in interface javax.swing.event.ListDataListener
public void intervalAdded(javax.swing.event.ListDataEvent e)
intervalAdded
in interface javax.swing.event.ListDataListener
public void intervalRemoved(javax.swing.event.ListDataEvent e)
intervalRemoved
in interface javax.swing.event.ListDataListener
public Program[] getSelectedPrograms()
public void pluginActivated(PluginProxy plugin)
pluginActivated
in interface PluginStateListener
public void pluginDeactivated(PluginProxy plugin)
pluginDeactivated
in interface PluginStateListener
public void pluginLoaded(PluginProxy plugin)
pluginLoaded
in interface PluginStateListener
public void pluginUnloaded(PluginProxy plugin)
pluginUnloaded
in interface PluginStateListener
public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
getToolTipText
in class javax.swing.JList
public void addDateSeparators() throws TvBrowserException
TvBrowserException
- Thrown if used ListModel is not #javax.swing.DefaultListModel
or a child class of it.public void setModel(javax.swing.ListModel model)
setModel
in class javax.swing.JList
public void scrollToNextDayIfAvailable()
public void scrollToPreviousDayIfAvailable()
public int getNewIndexForOldIndex(int index)
index
- The old index of the row.
public static java.lang.String getPreviousActionTooltip()
public static java.lang.String getNextActionTooltip()
public Program getProgramForMouseEvent(java.awt.event.MouseEvent e)
ProgramMouseActionListener
getProgramForMouseEvent
in interface ProgramMouseActionListener
e
- The mouse event that was triggered for a user mouse interaction.
null
if no program was affected.public void mouseEventActionFinished()
ProgramMouseActionListener
mouseEventActionFinished
in interface ProgramMouseActionListener
public void showContextMenu(java.awt.event.MouseEvent e)
ProgramContextMenuListener
showContextMenu
in interface ProgramContextMenuListener
e
- The MouseEvent that has triggered the popup event.public Program getProgramForKeyEvent(java.awt.event.KeyEvent e)
ProgramKeyActionListener
getProgramForKeyEvent
in interface ProgramKeyActionListener
e
- The key event that was triggered for a user keyboard interaction.
null
if no program was affected.public void keyEventActionFinished()
ProgramKeyActionListener
keyEventActionFinished
in interface ProgramKeyActionListener
public void showContextMenu(Program program)
ProgramKeyContextMenuListener
showContextMenu
in interface ProgramKeyContextMenuListener
program
- The program that has triggered the popup event.
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |