VTT Java
2010 Version

gov.nih.nlm.nls.vtt.GuiControl
Class SelectControl

java.lang.Object
  extended by gov.nih.nlm.nls.vtt.GuiControl.SelectControl
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.CaretListener

public class SelectControl
extends java.lang.Object
implements javax.swing.event.CaretListener

This is the Java class controls selected text and selected markup by mimiking left mouse click (from listen to caret update of CaretListener).

History:

Version:
V-2010
Author:
NLM NLS Development Team, clu

Constructor Summary
SelectControl(VttObj vttObj)
          Create a SelectControl object for VTT selection controller by specifying vttObj.
 
Method Summary
 void caretUpdate(javax.swing.event.CaretEvent e)
          Override methods for update caret.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectControl

public SelectControl(VttObj vttObj)
Create a SelectControl object for VTT selection controller by specifying vttObj.

Parameters:
vttObj - the vttObj Java object
Method Detail

caretUpdate

public void caretUpdate(javax.swing.event.CaretEvent e)
Override methods for update caret. In TextPane, this method is called automatically when caret position is updated. Caret position is updated by left mouse button or arrow keys. Update selection start and end.

Specified by:
caretUpdate in interface javax.swing.event.CaretListener
Parameters:
e - is used to notify interested parties that the text caret has changed in the event source.

VTT Java
2010 Version

Submit a bug or feature

Copyright © 2010 National Library of Medicine