edu.columbia.cs.cgui.rjfc.swing.text
Class RJTextComponentImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--edu.columbia.cs.cgui.rjfc.awt.RComponentImpl
                          |
                          +--edu.columbia.cs.cgui.rjfc.awt.RContainerImpl
                                |
                                +--edu.columbia.cs.cgui.rjfc.swing.RJComponentImpl
                                      |
                                      +--edu.columbia.cs.cgui.rjfc.swing.text.RJTextComponentImpl
All Implemented Interfaces:
RComponent, RContainer, Remote, RJComponent, RJTextComponent, Serializable
Direct Known Subclasses:
RJEditorPaneImpl, RJTextAreaImpl, RJTextFieldImpl

public class RJTextComponentImpl
extends RJComponentImpl
implements RJTextComponent

See Also:
Serialized Form

Fields inherited from class edu.columbia.cs.cgui.rjfc.awt.RComponentImpl
data, hash
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface edu.columbia.cs.cgui.rjfc.swing.text.RJTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
 
Fields inherited from interface edu.columbia.cs.cgui.rjfc.swing.RJComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from interface edu.columbia.cs.cgui.rjfc.awt.RComponent
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
protected RJTextComponentImpl()
           
  RJTextComponentImpl(Hashtable hash)
           
  RJTextComponentImpl(JTextComponent passedIn, Hashtable hash)
           
 
Method Summary
 void addCaretListener(RCaretListener listenervar0)
           
 void addInputMethodListener(RInputMethodListener lvar0)
           
 Keymap addKeymap(String nmvar0, Keymap parentvar1)
           
 void copy()
           
 void cut()
           
 AccessibleContext getAccessibleContext()
           
 Action[] getActions()
           
 Caret getCaret()
           
 Color getCaretColor()
           
 int getCaretPosition()
           
 Color getDisabledTextColor()
           
 Document getDocument()
           
 char getFocusAccelerator()
           
 Highlighter getHighlighter()
           
 InputMethodRequests getInputMethodRequests()
           
 Keymap getKeymap()
           
 Keymap getKeymap(String nmvar0)
           
 Insets getMargin()
           
 Dimension getPreferredScrollableViewportSize()
           
 int getScrollableBlockIncrement(Rectangle visibleRectvar0, int orientationvar1, int directionvar2)
           
 boolean getScrollableTracksViewportHeight()
           
 boolean getScrollableTracksViewportWidth()
           
 int getScrollableUnitIncrement(Rectangle visibleRectvar0, int orientationvar1, int directionvar2)
           
 String getSelectedText()
           
 Color getSelectedTextColor()
           
 Color getSelectionColor()
           
 int getSelectionEnd()
           
 int getSelectionStart()
           
 String getText()
           
 String getText(int offsvar0, int lenvar1)
           
 RTextUI getUI()
           
 boolean isEditable()
           
 boolean isFocusTraversable()
           
 void loadKeymap(Keymap mapvar0, JTextComponent.KeyBinding[] bindingsvar1, Action[] actionsvar2)
           
 Rectangle modelToView(int posvar0)
           
 void moveCaretPosition(int posvar0)
           
 void paste()
           
 void read(Reader invar0, Object descvar1)
           
 void removeCaretListener(RCaretListener listenervar0)
           
 Keymap removeKeymap(String nmvar0)
           
 void removeNotify()
           
 void replaceSelection(String contentvar0)
           
 void select(int selectionStartvar0, int selectionEndvar1)
           
 void selectAll()
           
 void setCaret(Caret cvar0)
           
 void setCaretColor(Color cvar0)
           
 void setCaretPosition(int positionvar0)
           
 void setDisabledTextColor(Color cvar0)
           
 void setDocument(Document docvar0)
           
 void setEditable(boolean bvar0)
           
 void setFocusAccelerator(char aKeyvar0)
           
 void setHighlighter(Highlighter hvar0)
           
 void setKeymap(Keymap mapvar0)
           
 void setMargin(Insets mvar0)
           
 void setSelectedTextColor(Color cvar0)
           
 void setSelectionColor(Color cvar0)
           
 void setSelectionEnd(int selectionEndvar0)
           
 void setSelectionStart(int selectionStartvar0)
           
 void setText(String tvar0)
           
 void setUI(RTextUI uivar0)
           
 void updateUI()
           
 int viewToModel(Point ptvar0)
           
 void write(Writer outvar0)
           
 
Methods inherited from class edu.columbia.cs.cgui.rjfc.swing.RJComponentImpl
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class edu.columbia.cs.cgui.rjfc.awt.RContainerImpl
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate
 
Methods inherited from class edu.columbia.cs.cgui.rjfc.awt.RComponentImpl
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, finalize, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getRJFCWrappedData, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setData, setDropTarget, setHash, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.columbia.cs.cgui.rjfc.swing.RJComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from interface edu.columbia.cs.cgui.rjfc.awt.RContainer
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate
 
Methods inherited from interface edu.columbia.cs.cgui.rjfc.awt.RComponent
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getRJFCWrappedData, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setData, setDropTarget, setHash, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus
 

Constructor Detail

RJTextComponentImpl

public RJTextComponentImpl(JTextComponent passedIn,
                           Hashtable hash)
                    throws RemoteException

RJTextComponentImpl

public RJTextComponentImpl(Hashtable hash)
                    throws RemoteException

RJTextComponentImpl

protected RJTextComponentImpl()
                       throws RemoteException
Method Detail

getUI

public RTextUI getUI()
              throws RemoteException
Specified by:
getUI in interface RJTextComponent

setUI

public void setUI(RTextUI uivar0)
           throws RemoteException
Specified by:
setUI in interface RJTextComponent

updateUI

public void updateUI()
              throws RemoteException
Specified by:
updateUI in interface RJTextComponent
Overrides:
updateUI in class RJComponentImpl

addCaretListener

public void addCaretListener(RCaretListener listenervar0)
                      throws RemoteException
Specified by:
addCaretListener in interface RJTextComponent

removeCaretListener

public void removeCaretListener(RCaretListener listenervar0)
                         throws RemoteException
Specified by:
removeCaretListener in interface RJTextComponent

setDocument

public void setDocument(Document docvar0)
                 throws RemoteException
Specified by:
setDocument in interface RJTextComponent

getDocument

public Document getDocument()
                     throws RemoteException
Specified by:
getDocument in interface RJTextComponent

getActions

public Action[] getActions()
                    throws RemoteException
Specified by:
getActions in interface RJTextComponent

setMargin

public void setMargin(Insets mvar0)
               throws RemoteException
Specified by:
setMargin in interface RJTextComponent

getMargin

public Insets getMargin()
                 throws RemoteException
Specified by:
getMargin in interface RJTextComponent

getCaret

public Caret getCaret()
               throws RemoteException
Specified by:
getCaret in interface RJTextComponent

setCaret

public void setCaret(Caret cvar0)
              throws RemoteException
Specified by:
setCaret in interface RJTextComponent

getHighlighter

public Highlighter getHighlighter()
                           throws RemoteException
Specified by:
getHighlighter in interface RJTextComponent

setHighlighter

public void setHighlighter(Highlighter hvar0)
                    throws RemoteException
Specified by:
setHighlighter in interface RJTextComponent

setKeymap

public void setKeymap(Keymap mapvar0)
               throws RemoteException
Specified by:
setKeymap in interface RJTextComponent

getKeymap

public Keymap getKeymap()
                 throws RemoteException
Specified by:
getKeymap in interface RJTextComponent

addKeymap

public Keymap addKeymap(String nmvar0,
                        Keymap parentvar1)
                 throws RemoteException
Specified by:
addKeymap in interface RJTextComponent

removeKeymap

public Keymap removeKeymap(String nmvar0)
                    throws RemoteException
Specified by:
removeKeymap in interface RJTextComponent

getKeymap

public Keymap getKeymap(String nmvar0)
                 throws RemoteException
Specified by:
getKeymap in interface RJTextComponent

loadKeymap

public void loadKeymap(Keymap mapvar0,
                       JTextComponent.KeyBinding[] bindingsvar1,
                       Action[] actionsvar2)
                throws RemoteException
Specified by:
loadKeymap in interface RJTextComponent

getCaretColor

public Color getCaretColor()
                    throws RemoteException
Specified by:
getCaretColor in interface RJTextComponent

setCaretColor

public void setCaretColor(Color cvar0)
                   throws RemoteException
Specified by:
setCaretColor in interface RJTextComponent

getSelectionColor

public Color getSelectionColor()
                        throws RemoteException
Specified by:
getSelectionColor in interface RJTextComponent

setSelectionColor

public void setSelectionColor(Color cvar0)
                       throws RemoteException
Specified by:
setSelectionColor in interface RJTextComponent

getSelectedTextColor

public Color getSelectedTextColor()
                           throws RemoteException
Specified by:
getSelectedTextColor in interface RJTextComponent

setSelectedTextColor

public void setSelectedTextColor(Color cvar0)
                          throws RemoteException
Specified by:
setSelectedTextColor in interface RJTextComponent

getDisabledTextColor

public Color getDisabledTextColor()
                           throws RemoteException
Specified by:
getDisabledTextColor in interface RJTextComponent

setDisabledTextColor

public void setDisabledTextColor(Color cvar0)
                          throws RemoteException
Specified by:
setDisabledTextColor in interface RJTextComponent

replaceSelection

public void replaceSelection(String contentvar0)
                      throws RemoteException
Specified by:
replaceSelection in interface RJTextComponent

getText

public String getText(int offsvar0,
                      int lenvar1)
               throws RemoteException,
                      BadLocationException
Specified by:
getText in interface RJTextComponent

modelToView

public Rectangle modelToView(int posvar0)
                      throws RemoteException,
                             BadLocationException
Specified by:
modelToView in interface RJTextComponent

viewToModel

public int viewToModel(Point ptvar0)
                throws RemoteException
Specified by:
viewToModel in interface RJTextComponent

cut

public void cut()
         throws RemoteException
Specified by:
cut in interface RJTextComponent

copy

public void copy()
          throws RemoteException
Specified by:
copy in interface RJTextComponent

paste

public void paste()
           throws RemoteException
Specified by:
paste in interface RJTextComponent

moveCaretPosition

public void moveCaretPosition(int posvar0)
                       throws RemoteException
Specified by:
moveCaretPosition in interface RJTextComponent

setFocusAccelerator

public void setFocusAccelerator(char aKeyvar0)
                         throws RemoteException
Specified by:
setFocusAccelerator in interface RJTextComponent

getFocusAccelerator

public char getFocusAccelerator()
                         throws RemoteException
Specified by:
getFocusAccelerator in interface RJTextComponent

read

public void read(Reader invar0,
                 Object descvar1)
          throws RemoteException,
                 IOException
Specified by:
read in interface RJTextComponent

write

public void write(Writer outvar0)
           throws RemoteException,
                  IOException
Specified by:
write in interface RJTextComponent

removeNotify

public void removeNotify()
                  throws RemoteException
Specified by:
removeNotify in interface RJTextComponent
Overrides:
removeNotify in class RJComponentImpl

isFocusTraversable

public boolean isFocusTraversable()
                           throws RemoteException
Specified by:
isFocusTraversable in interface RJTextComponent
Overrides:
isFocusTraversable in class RJComponentImpl

setCaretPosition

public void setCaretPosition(int positionvar0)
                      throws RemoteException
Specified by:
setCaretPosition in interface RJTextComponent

getCaretPosition

public int getCaretPosition()
                     throws RemoteException
Specified by:
getCaretPosition in interface RJTextComponent

setText

public void setText(String tvar0)
             throws RemoteException
Specified by:
setText in interface RJTextComponent

getText

public String getText()
               throws RemoteException
Specified by:
getText in interface RJTextComponent

getSelectedText

public String getSelectedText()
                       throws RemoteException
Specified by:
getSelectedText in interface RJTextComponent

isEditable

public boolean isEditable()
                   throws RemoteException
Specified by:
isEditable in interface RJTextComponent

setEditable

public void setEditable(boolean bvar0)
                 throws RemoteException
Specified by:
setEditable in interface RJTextComponent

getSelectionStart

public int getSelectionStart()
                      throws RemoteException
Specified by:
getSelectionStart in interface RJTextComponent

setSelectionStart

public void setSelectionStart(int selectionStartvar0)
                       throws RemoteException
Specified by:
setSelectionStart in interface RJTextComponent

getSelectionEnd

public int getSelectionEnd()
                    throws RemoteException
Specified by:
getSelectionEnd in interface RJTextComponent

setSelectionEnd

public void setSelectionEnd(int selectionEndvar0)
                     throws RemoteException
Specified by:
setSelectionEnd in interface RJTextComponent

select

public void select(int selectionStartvar0,
                   int selectionEndvar1)
            throws RemoteException
Specified by:
select in interface RJTextComponent

selectAll

public void selectAll()
               throws RemoteException
Specified by:
selectAll in interface RJTextComponent

getPreferredScrollableViewportSize

public Dimension getPreferredScrollableViewportSize()
                                             throws RemoteException
Specified by:
getPreferredScrollableViewportSize in interface RJTextComponent

getScrollableUnitIncrement

public int getScrollableUnitIncrement(Rectangle visibleRectvar0,
                                      int orientationvar1,
                                      int directionvar2)
                               throws RemoteException
Specified by:
getScrollableUnitIncrement in interface RJTextComponent

getScrollableBlockIncrement

public int getScrollableBlockIncrement(Rectangle visibleRectvar0,
                                       int orientationvar1,
                                       int directionvar2)
                                throws RemoteException
Specified by:
getScrollableBlockIncrement in interface RJTextComponent

getScrollableTracksViewportWidth

public boolean getScrollableTracksViewportWidth()
                                         throws RemoteException
Specified by:
getScrollableTracksViewportWidth in interface RJTextComponent

getScrollableTracksViewportHeight

public boolean getScrollableTracksViewportHeight()
                                          throws RemoteException
Specified by:
getScrollableTracksViewportHeight in interface RJTextComponent

getAccessibleContext

public AccessibleContext getAccessibleContext()
                                       throws RemoteException
Specified by:
getAccessibleContext in interface RJTextComponent
Overrides:
getAccessibleContext in class RJComponentImpl

getInputMethodRequests

public InputMethodRequests getInputMethodRequests()
                                           throws RemoteException
Specified by:
getInputMethodRequests in interface RJTextComponent
Overrides:
getInputMethodRequests in class RComponentImpl

addInputMethodListener

public void addInputMethodListener(RInputMethodListener lvar0)
                            throws RemoteException
Specified by:
addInputMethodListener in interface RJTextComponent
Overrides:
addInputMethodListener in class RComponentImpl