sears.gui
Class MainWindow

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by sears.gui.MainWindow
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class MainWindow
extends javax.swing.JFrame
implements java.awt.event.MouseListener, java.awt.event.WindowListener

Class MainWindow.
Summary:
This is the main Interface of the sears project. It contains a JTable to displays the subtitles, and menus to interact and launch actions.

See Also:
Serialized Form

Nested Class Summary
protected  class MainWindow.SubtitleFileTransfertHandler
          Class SubtitleFileTransfertHandler.
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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
protected static java.lang.String ACTION_KEY_ABOUT
          about action key.
protected static java.lang.String ACTION_KEY_ACCENT_REPAIR
          Accent action key, to Accent repair.
protected static java.lang.String ACTION_KEY_APPEND
          Append action key, to append ST.
protected static java.lang.String ACTION_KEY_CHAIN_REPAIR
          Chain action key, to chain repair.
protected static java.lang.String ACTION_KEY_DELAY
          Delay action key, to delay ST.
protected static java.lang.String ACTION_KEY_FIND
          find action key.
protected static java.lang.String ACTION_KEY_GOTO_SUB
          gotoSub action key.
protected static java.lang.String ACTION_KEY_HTML_REPAIR
          HTML action key, to html repair.
protected static java.lang.String ACTION_KEY_MAGIC_RESYNCHRO
          magicResynchro action key.
protected static java.lang.String ACTION_KEY_MIX
          find action key.
protected static java.lang.String ACTION_KEY_NEXT
          Next action key.
protected static java.lang.String ACTION_KEY_NORMALIZE_DURATION
          NormalizeDuration action key, to time repair.
protected static java.lang.String ACTION_KEY_OPEN
          Open action key, to open a subtitle file
protected static java.lang.String ACTION_KEY_OPTIONS
          Options action key.
protected static java.lang.String ACTION_KEY_ORDER_REPAIR
          Order action key, to order repair.
protected static java.lang.String ACTION_KEY_PAUSE
          Pause action key.
protected static java.lang.String ACTION_KEY_PLAY
          Play action key.
protected static java.lang.String ACTION_KEY_PREVIOUS
          Previous action key.
protected static java.lang.String ACTION_KEY_QUIT
          Quit action key, to save current file.
protected static java.lang.String ACTION_KEY_REMOVE_ALL_ANCHORS
          remoaveAllAnchors action key.
protected static java.lang.String ACTION_KEY_RESYNCH
          Resynch action key, to resynch ST.
protected static java.lang.String ACTION_KEY_SAVE
          Save action key, to save current file.
protected static java.lang.String ACTION_KEY_SAVE_AS
          SaveAs action key, to save current file.
protected static java.lang.String ACTION_KEY_SELECT_VIDEO
          Select video action key.
protected static java.lang.String ACTION_KEY_SPLIT
          Split action key, to split ST.
protected static java.lang.String ACTION_KEY_STOP
          Stop action key.
protected static java.lang.String ACTION_KEY_TIME_REPAIR
          Time action key, to time repair.
protected static java.lang.String ACTION_KEY_TRACKER_TRIGGER
          TrackTrigger action key.
static MainWindow instance
          The instance of the mainWindow
protected  PlayerInterface player
          The Player
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MainWindow()
          Constructor MainWindow.
 
Method Summary
 void aboutAction()
          Method dialogAction.
 boolean accentRepairAction()
          Method accentRepairAction.
 void addFB(FindDialog fd)
           
 boolean appendAction()
          Method appendAction.
static void centerFrame(java.awt.Window window)
          Method centerFrame.
 boolean chainRepairAction()
          Method chainRepairAction.
protected  boolean delayAction()
          Method delayAction.
 void dispose()
           
 void fileChanged()
          Method fileChanged
Summary:
Set the fileChanged status flag to true.
 void finalize()
           
 void find(FindDialog dialog, boolean direction)
          find a word or a sub string in the subtitle file
 void fireFindStop()
           
protected  SearsAction getAction(java.lang.String key)
          Method getAction.
static boolean getResetFlag()
           
 SubtitleFile getSubtitleFile()
          Method getSubtitleFile.
 SearsUndoManager getUndoManager()
          Returns the UndoManager
 void gotoSubAction()
          Method gotoSubAction.
 boolean htmlRepairAction()
          Method htmlRepairAction.
protected  boolean magicResynchroAction()
          Method magicResynchroAction.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void nextAction()
          Method nextAction.
protected  void openAction()
          Method openAction.
 void openFile(java.io.File file)
          Method openFile.
 void openFile(java.io.File file, java.lang.String charset)
          Opens a file with the specific charset
 void optionsAction()
          Method optionsAction.
 boolean orderRepairAction()
          Method orderRepairAction.
 void pauseAction()
          Method pauseAction.
 void playAction()
          Method playAction.
 void previousAction()
          Method previousAction.
 void quitAction()
          Method quitAction.
protected  boolean resynchroAction()
          Method resynchroAction.
protected  void saveAction()
          Method saveAction.
protected  void saveAsAction()
          Method saveAsAction.
 void selectVideoAction()
          Method selectVideoAction.
protected static void setResetFlag(boolean resetOnExit)
           
 void setSubtitleFile(SubtitleFile newSubtitleFile)
          Sets a new subtitle file
 java.io.File showBrowser(javax.swing.filechooser.FileFilter filter)
          Method showBrowser.
 java.io.File showBrowser(javax.swing.filechooser.FileFilter filter, java.io.File sourceFile)
          Method showBrowser.
 java.lang.String showOpenErrorDialog(java.lang.String message, java.lang.String detail, boolean reOpenChoice)
           
 void showSaveErrorDialog(java.lang.String message, java.lang.String detail)
           
 java.io.File showSRTBrowser()
          Method showSRTBrowser.
 java.io.File showVideoBrowser()
          Method showVideoBrowser.
 boolean splitAction()
          Method splitAction.
 void stopAction()
          Method stopAction.
 boolean timeRepairAction()
          Method timeRepairAction.
 void trackerTriggerAction()
          Method trackerTriggerAction.
 void updateTableAndActions()
          Method updateTableAndActions.
 void updateWholeTable()
          Method updateWholeTable.
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

instance

public static MainWindow instance
The instance of the mainWindow


player

protected PlayerInterface player
The Player


ACTION_KEY_OPEN

protected static java.lang.String ACTION_KEY_OPEN
Open action key, to open a subtitle file


ACTION_KEY_SAVE

protected static java.lang.String ACTION_KEY_SAVE
Save action key, to save current file.


ACTION_KEY_SAVE_AS

protected static java.lang.String ACTION_KEY_SAVE_AS
SaveAs action key, to save current file.


ACTION_KEY_QUIT

protected static java.lang.String ACTION_KEY_QUIT
Quit action key, to save current file.


ACTION_KEY_DELAY

protected static java.lang.String ACTION_KEY_DELAY
Delay action key, to delay ST.


ACTION_KEY_RESYNCH

protected static java.lang.String ACTION_KEY_RESYNCH
Resynch action key, to resynch ST.


ACTION_KEY_SPLIT

protected static java.lang.String ACTION_KEY_SPLIT
Split action key, to split ST.


ACTION_KEY_APPEND

protected static java.lang.String ACTION_KEY_APPEND
Append action key, to append ST.


ACTION_KEY_ACCENT_REPAIR

protected static java.lang.String ACTION_KEY_ACCENT_REPAIR
Accent action key, to Accent repair.


ACTION_KEY_CHAIN_REPAIR

protected static java.lang.String ACTION_KEY_CHAIN_REPAIR
Chain action key, to chain repair.


ACTION_KEY_HTML_REPAIR

protected static java.lang.String ACTION_KEY_HTML_REPAIR
HTML action key, to html repair.


ACTION_KEY_ORDER_REPAIR

protected static java.lang.String ACTION_KEY_ORDER_REPAIR
Order action key, to order repair.


ACTION_KEY_TIME_REPAIR

protected static java.lang.String ACTION_KEY_TIME_REPAIR
Time action key, to time repair.


ACTION_KEY_NORMALIZE_DURATION

protected static java.lang.String ACTION_KEY_NORMALIZE_DURATION
NormalizeDuration action key, to time repair.


ACTION_KEY_SELECT_VIDEO

protected static java.lang.String ACTION_KEY_SELECT_VIDEO
Select video action key.


ACTION_KEY_OPTIONS

protected static java.lang.String ACTION_KEY_OPTIONS
Options action key.


ACTION_KEY_PLAY

protected static java.lang.String ACTION_KEY_PLAY
Play action key.


ACTION_KEY_STOP

protected static java.lang.String ACTION_KEY_STOP
Stop action key.


ACTION_KEY_PAUSE

protected static java.lang.String ACTION_KEY_PAUSE
Pause action key.


ACTION_KEY_PREVIOUS

protected static java.lang.String ACTION_KEY_PREVIOUS
Previous action key.


ACTION_KEY_NEXT

protected static java.lang.String ACTION_KEY_NEXT
Next action key.


ACTION_KEY_TRACKER_TRIGGER

protected static java.lang.String ACTION_KEY_TRACKER_TRIGGER
TrackTrigger action key.


ACTION_KEY_GOTO_SUB

protected static java.lang.String ACTION_KEY_GOTO_SUB
gotoSub action key.


ACTION_KEY_MAGIC_RESYNCHRO

protected static java.lang.String ACTION_KEY_MAGIC_RESYNCHRO
magicResynchro action key.


ACTION_KEY_REMOVE_ALL_ANCHORS

protected static java.lang.String ACTION_KEY_REMOVE_ALL_ANCHORS
remoaveAllAnchors action key.


ACTION_KEY_ABOUT

protected static java.lang.String ACTION_KEY_ABOUT
about action key.


ACTION_KEY_FIND

protected static java.lang.String ACTION_KEY_FIND
find action key.


ACTION_KEY_MIX

protected static java.lang.String ACTION_KEY_MIX
find action key.

Constructor Detail

MainWindow

public MainWindow()
Constructor MainWindow.
Summary:
Constructor of the class. construct the GUI.

Method Detail

getUndoManager

public SearsUndoManager getUndoManager()
Returns the UndoManager

Returns:
the undoManager

getAction

protected SearsAction getAction(java.lang.String key)
Method getAction.
Summary:
Return the SearsActions that correspond to the given key.

Parameters:
key - The String Action key to search for.
Returns:
SearsAction The SearsAction that correspond to the key, or null if not found.

delayAction

protected boolean delayAction()
Method delayAction.
Summary:
Use this method to set a delay on subtitles. It will show a dialog to enter a delay to the selected subtitles.

Returns:
(boolean) True if action succeeds.

addFB

public void addFB(FindDialog fd)

updateWholeTable

public void updateWholeTable()
Method updateWholeTable.
Summary:
Updates the whole table.


resynchroAction

protected boolean resynchroAction()
Method resynchroAction.
Summary:
Use this method to resynchro subtitles. If user has selected the Two source point, the dialog shown will be pre-filled with good values.

Returns:
boolean true if action succeed.

magicResynchroAction

protected boolean magicResynchroAction()
Method magicResynchroAction.
Summary:
Apply a magic resynchro


saveAsAction

protected void saveAsAction()
Method saveAsAction.
Summary:
Method called when want to save the subtitle file. open a JFolderChooser to chooser where to save the file.


saveAction

protected void saveAction()
Method saveAction.
Summary:
Method called when want to save the subtitle file.


quitAction

public void quitAction()
Method quitAction.
Summary:
Use this method to quit Sears.


dispose

public void dispose()
Overrides:
dispose in class java.awt.Window

openAction

protected void openAction()
Method openAction.
Summary:
Use this method to open a subtitle file. Displays a dialog to choose the file to open.


showBrowser

public java.io.File showBrowser(javax.swing.filechooser.FileFilter filter)
Method showBrowser.
Summary:
This method shows a browser, to permits subtitle file selection. Open the browser at the current subtitle file location, if any.

Parameters:
filter - The file filter
Returns:
File

showBrowser

public java.io.File showBrowser(javax.swing.filechooser.FileFilter filter,
                                java.io.File sourceFile)
Method showBrowser.
Summary:
This method shows a browser, to permits subtitle file selection. Open the browser at the given file location.

Parameters:
filter - The file filter.
sourceFile - Open the browser in the file's parent path.
Returns:
File

showSRTBrowser

public java.io.File showSRTBrowser()
Method showSRTBrowser.
Summary:
This method shows a browser, to permits subtitle file selection.

Returns:
File

showVideoBrowser

public java.io.File showVideoBrowser()
Method showVideoBrowser.
Summary:
This method shows a browser, to permits video selection.

Returns:
File

openFile

public void openFile(java.io.File file,
                     java.lang.String charset)
Opens a file with the specific charset

Parameters:
file - the file to open
charset - the charset name

showOpenErrorDialog

public java.lang.String showOpenErrorDialog(java.lang.String message,
                                            java.lang.String detail,
                                            boolean reOpenChoice)

showSaveErrorDialog

public void showSaveErrorDialog(java.lang.String message,
                                java.lang.String detail)

setSubtitleFile

public void setSubtitleFile(SubtitleFile newSubtitleFile)
Sets a new subtitle file

Parameters:
newSubtitleFile - the new subtitle file, if it's null this method is no op

openFile

public void openFile(java.io.File file)
Method openFile.
Summary:
This method open a subtitle file, and put it in the table.

Parameters:
file - The subtitle file to open

centerFrame

public static void centerFrame(java.awt.Window window)
Method centerFrame.
Summary:
center frame on screen.

Parameters:
window - The window to center.

orderRepairAction

public boolean orderRepairAction()
Method orderRepairAction.
Summary:
This method is called when user wants to repair the order of the subtitle file. It will check chronology, order ST's with their start time, and finally fix ST's numbers.

Returns:
boolean true if action succeeded

updateTableAndActions

public void updateTableAndActions()
Method updateTableAndActions.
Summary:
update the whole table, the actions and the window name.


pauseAction

public void pauseAction()
Method pauseAction.
Summary:
This method when user wants to pause the video


trackerTriggerAction

public void trackerTriggerAction()
Method trackerTriggerAction.
Summary:
This method is called when user wants to change the tracker mode.


nextAction

public void nextAction()
Method nextAction.
Summary:
This method is called when user wants to move forward in the video.


previousAction

public void previousAction()
Method previousAction.
Summary:
This method is called when user wants to go backward in the video.


stopAction

public void stopAction()
Method stopAction.
Summary:
This method is called when user wants to stop the video.


playAction

public void playAction()
Method playAction.
Summary:
This method is called when user wants to play the video.


accentRepairAction

public boolean accentRepairAction()
Method accentRepairAction.
Summary:
This method is called when user wants to remove the accents and special characters from the selected subtitle file.

Returns:
true if action succeeded.

htmlRepairAction

public boolean htmlRepairAction()
Method htmlRepairAction.
Summary:
This method is called when user wants to remove the htmls.

Returns:
true if action succeeded

selectVideoAction

public void selectVideoAction()
Method selectVideoAction.
Summary:
This method is called when user wants to select the video file.


chainRepairAction

public boolean chainRepairAction()
Method chainRepairAction.
Summary:
This method is called when user wants to chain repair. It will apply several repair action.

Returns:
boolean true if action succeeded

getSubtitleFile

public SubtitleFile getSubtitleFile()
Method getSubtitleFile.
Summary:
Return the subtitleFile.

Returns:
the subtitleFile

optionsAction

public void optionsAction()
Method optionsAction.
Summary:
This method is called when user wants to change sears options. It will display the options dialog, and set the sears properties.


aboutAction

public void aboutAction()
Method dialogAction.
Summary:
This method is called when user wants to see the about dialog window. It will display the about dialog..


find

public void find(FindDialog dialog,
                 boolean direction)
find a word or a sub string in the subtitle file

Parameters:
dialog - the dialog which calls the method
direction - the direction of the search (false: forward, true: backward)

fireFindStop

public void fireFindStop()

gotoSubAction

public void gotoSubAction()
Method gotoSubAction.
Summary:
This method permits to set the video position to the selected subtitle.


timeRepairAction

public boolean timeRepairAction()
Method timeRepairAction.
Summary:
This method is called when user wants to time repair. It will correct the time superposition problem. When subtitle ends after next ST start time.

Returns:
boolean true if action succeeded

splitAction

public boolean splitAction()
Method splitAction.
Summary:
This method is called when user wants to split STs file in two files. Must have selected the ST to split from.

Returns:
boolean true if action succeed.

appendAction

public boolean appendAction()
Method appendAction.
Summary:
This method is called when user wants to make an append Action.

Returns:
result true if action succeeded.

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

fileChanged

public void fileChanged()
Method fileChanged
Summary:
Set the fileChanged status flag to true.


mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

setResetFlag

protected static void setResetFlag(boolean resetOnExit)

getResetFlag

public static boolean getResetFlag()

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object