public class ProgramTable extends JPanel implements ProgramTableModelListener, DragGestureListener, DragSourceListener, PluginStateListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ProgramTable(ProgramTableModel model)
Creates a new instance of ProgramTable.
|
Modifier and Type | Method and Description |
---|---|
void |
addNotify() |
void |
deSelectItem()
Deselect the selected program.
|
void |
down()
Go to the program under the current program.
|
void |
dragDropEnd(DragSourceDropEvent dsde) |
void |
dragEnter(DragSourceDragEvent dsde) |
void |
dragExit(DragSourceEvent dse) |
void |
dragGestureRecognized(DragGestureEvent evt) |
void |
dragOver(DragSourceDragEvent dsde) |
void |
dropActionChanged(DragSourceDragEvent dsde) |
void |
forceRepaintAll() |
BackgroundPainter |
getBackgroundPainter() |
int |
getColumnWidth() |
ProgramTableModel |
getModel() |
Dimension |
getPreferredSize() |
Program |
getProgramAt(int x,
int y) |
ProgramTableLayout |
getProgramTableLayout() |
int |
getTimeY(int minutesAfterMidnight) |
void |
left()
Go to the left program of the current program.
|
void |
paintComponent(Graphics grp) |
void |
pluginActivated(PluginProxy plugin) |
void |
pluginDeactivated(PluginProxy plugin) |
void |
pluginLoaded(PluginProxy plugin) |
void |
pluginUnloaded(PluginProxy plugin) |
void |
removeNotify() |
void |
right()
Go to the right program of the current program.
|
void |
runCallback()
runs the Runnable callback that scrolls to the wanted place
in the ProgramTable
|
void |
scrollBy(int deltaX,
int deltaY) |
void |
selectItemAt(int pointX,
int pointY)
Selects the program at the point(x,y)
|
void |
selectProgram(Program program)
Select (highlight) a program in the program table.
|
void |
setColumnWidth(int columnWidth) |
protected void |
setModel(ProgramTableModel model) |
void |
setProgramTableLayout(ProgramTableLayout layout) |
void |
showPopoupFromKeyboard()
Opens the PopupMenu for the selected program.
|
void |
startDoubleClickPluginFromKeyboard()
Starts the double click Plugin.
|
void |
startLeftSingleClickPluginFromKeyboard()
Starts the left single click Plugin.
|
void |
startMiddleClickPluginFromKeyboard()
Starts the middle click Plugin.
|
void |
tableCellUpdated(int col,
int row) |
void |
tableDataChanged(Runnable callback) |
void |
up()
Go to the program on top of the current program.
|
void |
updateBackground() |
void |
updateLayout() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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
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
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
public ProgramTable(ProgramTableModel model)
model
- program table model to use in the program tableprotected void setModel(ProgramTableModel model)
public ProgramTableModel getModel()
public ProgramTableLayout getProgramTableLayout()
public void setProgramTableLayout(ProgramTableLayout layout)
public void setColumnWidth(int columnWidth)
public int getColumnWidth()
public void updateBackground()
public BackgroundPainter getBackgroundPainter()
public void paintComponent(Graphics grp)
paintComponent
in class JComponent
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public Program getProgramAt(int x, int y)
public void forceRepaintAll()
public void updateLayout()
public void scrollBy(int deltaX, int deltaY)
public int getTimeY(int minutesAfterMidnight)
public void runCallback()
public void tableDataChanged(Runnable callback)
tableDataChanged
in interface ProgramTableModelListener
public void tableCellUpdated(int col, int row)
tableCellUpdated
in interface ProgramTableModelListener
public void showPopoupFromKeyboard()
public void startMiddleClickPluginFromKeyboard()
public void startLeftSingleClickPluginFromKeyboard()
public void startDoubleClickPluginFromKeyboard()
public void right()
public void up()
public void down()
public void left()
public void deSelectItem()
public void selectItemAt(int pointX, int pointY)
pointX
- X position of the pointpointY
- Y position of the pointpublic void dragGestureRecognized(DragGestureEvent evt)
dragGestureRecognized
in interface DragGestureListener
public void dragEnter(DragSourceDragEvent dsde)
dragEnter
in interface DragSourceListener
public void dragOver(DragSourceDragEvent dsde)
dragOver
in interface DragSourceListener
public void dropActionChanged(DragSourceDragEvent dsde)
dropActionChanged
in interface DragSourceListener
public void dragExit(DragSourceEvent dse)
dragExit
in interface DragSourceListener
public void dragDropEnd(DragSourceDropEvent dsde)
dragDropEnd
in interface DragSourceListener
public void selectProgram(Program program)
program
- the program to selectpublic void addNotify()
addNotify
in class JComponent
public void removeNotify()
removeNotify
in class JComponent
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
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)