|
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.JPanel tvbrowser.ui.programtable.ProgramTable
public class ProgramTable
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
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 |
---|
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 | |
---|---|
ProgramTable(ProgramTableModel model,
java.awt.event.KeyListener keyListener)
Creates a new instance of ProgramTable. |
Method Summary | |
---|---|
void |
addNotify()
|
void |
clearTimeMarkings()
|
void |
closePopupMenuIfVisible()
Closes the PopupMenu menu if it is visible. |
void |
deSelectItem()
Deselect the selected program. |
Program |
deSelectItem(boolean getProgram)
Deselect the selected program. |
void |
down()
Go to the program under the current program. |
void |
dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
|
void |
dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
|
void |
dragExit(java.awt.dnd.DragSourceEvent dse)
|
void |
dragGestureRecognized(java.awt.dnd.DragGestureEvent evt)
|
void |
dragOver(java.awt.dnd.DragSourceDragEvent dsde)
|
void |
dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
|
void |
forceRepaintAll()
|
BackgroundPainter |
getBackgroundPainter()
|
int |
getColumnWidth()
|
ProgramTableModel |
getModel()
|
java.awt.Dimension |
getPreferredScrollableViewportSize()
|
java.awt.Dimension |
getPreferredSize()
|
Program |
getProgramAt(int x,
int y)
|
Program |
getProgramForMouseEvent(java.awt.event.MouseEvent e)
Gets the program to use for a mouse action. |
ProgramTableLayout |
getProgramTableLayout()
|
int |
getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
|
boolean |
getScrollableTracksViewportHeight()
|
boolean |
getScrollableTracksViewportWidth()
|
int |
getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
|
protected int |
getTimeY(int minutesAfterMidnight)
get the average Y coordinate of the center of the program panels of all columns where the program is running at the given time |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event)
|
void |
handleKeyboardAction(ContextMenuIf action)
|
boolean |
isSelected()
|
void |
left()
Go to the left program of the current program. |
void |
markTime(int time)
|
void |
mouseEventActionFinished()
Called when MouseEventAction was finished. |
void |
paintComponent(java.awt.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 |
showContextMenu(java.awt.event.MouseEvent e)
Show a context menu on the triggered event. |
boolean |
stopAutoScroll()
|
void |
tableCellUpdated(int col,
int row)
|
void |
tableDataChanged(java.lang.Runnable callback)
|
void |
togglePopupFromKeyboard()
Toggles visibility of the PopupMenu for the selected program. |
void |
up()
Go to the program on top of the current program. |
void |
updateBackground()
|
void |
updateLayout()
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, 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, 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, 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 |
Constructor Detail |
---|
public ProgramTable(ProgramTableModel model, java.awt.event.KeyListener keyListener)
model
- program table model to use in the program tablekeyListener
- The key listener for FAYT.Method Detail |
---|
protected 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(java.awt.Graphics grp)
paintComponent
in class javax.swing.JComponent
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public void markTime(int time)
public void clearTimeMarkings()
public Program getProgramAt(int x, int y)
public void forceRepaintAll()
public void updateLayout()
public void scrollBy(int deltaX, int deltaY)
public boolean stopAutoScroll()
protected int getTimeY(int minutesAfterMidnight)
minutesAfterMidnight
-
public void runCallback()
public void tableDataChanged(java.lang.Runnable callback)
tableDataChanged
in interface ProgramTableModelListener
public void tableCellUpdated(int col, int row)
tableCellUpdated
in interface ProgramTableModelListener
public void closePopupMenuIfVisible()
public void togglePopupFromKeyboard()
public void handleKeyboardAction(ContextMenuIf action)
public void right()
public void up()
public void down()
public void left()
public void deSelectItem()
public Program deSelectItem(boolean getProgram)
getProgram
- If the current selected program should be returned.
null
if there was no selected program.public void selectItemAt(int pointX, int pointY)
pointX
- X position of the pointpointY
- Y position of the pointpublic void dragGestureRecognized(java.awt.dnd.DragGestureEvent evt)
dragGestureRecognized
in interface java.awt.dnd.DragGestureListener
public void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
dragEnter
in interface java.awt.dnd.DragSourceListener
public void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
dragOver
in interface java.awt.dnd.DragSourceListener
public void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
dropActionChanged
in interface java.awt.dnd.DragSourceListener
public void dragExit(java.awt.dnd.DragSourceEvent dse)
dragExit
in interface java.awt.dnd.DragSourceListener
public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
dragDropEnd
in interface java.awt.dnd.DragSourceListener
public void selectProgram(Program program)
program
- the program to selectpublic void addNotify()
addNotify
in class javax.swing.JComponent
public void removeNotify()
removeNotify
in class javax.swing.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
public java.awt.Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize
in interface javax.swing.Scrollable
public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement
in interface javax.swing.Scrollable
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface javax.swing.Scrollable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface javax.swing.Scrollable
public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface javax.swing.Scrollable
public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
getToolTipText
in class javax.swing.JComponent
public boolean isSelected()
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.
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |