com.creamtec.ajaxswing.gui.peer
Class AjaxSwingTextComponentPeer

java.lang.Object
  extended by com.creamtec.ajaxswing.gui.peer.AjaxSwingComponentPeer
      extended by com.creamtec.ajaxswing.gui.peer.AjaxSwingTextComponentPeer
All Implemented Interfaces:
java.awt.peer.ComponentPeer, java.awt.peer.TextComponentPeer
Direct Known Subclasses:
AjaxSwingTextAreaPeer, AjaxSwingTextFieldPeer

public class AjaxSwingTextComponentPeer
extends AjaxSwingComponentPeer
implements java.awt.peer.TextComponentPeer


Field Summary
 
Fields inherited from interface java.awt.peer.ComponentPeer
DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE
 
Constructor Summary
AjaxSwingTextComponentPeer(java.awt.Component target)
           
 
Method Summary
 long filterEvents(long mask)
           
 int getCaretPosition()
           
 java.awt.Rectangle getCharacterBounds(int i)
           
 int getIndexAtPoint(int x, int y)
           
 java.awt.im.InputMethodRequests getInputMethodRequests()
           
 int getSelectionEnd()
           
 int getSelectionStart()
           
 java.lang.String getText()
           
 boolean isFocusable()
           
 void select(int selStart, int selEnd)
           
 void setCaretPosition(int pos)
           
 void setEditable(boolean editable)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class com.creamtec.ajaxswing.gui.peer.AjaxSwingComponentPeer
applyShape, canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createDelegate, createImage, createImage, createVolatileImage, destroyBuffers, disable, dispose, enable, flip, flip, getAppropriateGraphicsConfiguration, getBackBuffer, getBounds, getColorModel, getDelegate, getDelegateComponent, getFontMetrics, getGraphics, getGraphicsConfiguration, getImage, getLocationOnScreen, getMinimumSize, getPreferredSize, getTarget, getToolkit, handleEvent, handlesWheelScrolling, hide, isFocusTraversable, isObscured, isReparentSupported, layout, minimumSize, paint, preferredSize, prepareImage, print, repaint, reparent, requestFocus, requestFocus, requestFocus, reshape, setBackground, setBounds, setBounds, setBounds, setCursor, setDelegate, setDelegateComponent, setEnabled, setFont, setForeground, setTarget, setVisible, setZOrder, show, updateCursorImmediately, updateGraphicsData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.peer.ComponentPeer
canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, disable, dispose, enable, flip, getBackBuffer, getBounds, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, getToolkit, handleEvent, handlesWheelScrolling, hide, isObscured, isReparentSupported, layout, minimumSize, paint, preferredSize, prepareImage, print, repaint, reparent, requestFocus, reshape, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, show, updateCursorImmediately
 

Constructor Detail

AjaxSwingTextComponentPeer

public AjaxSwingTextComponentPeer(java.awt.Component target)
Method Detail

setEditable

public void setEditable(boolean editable)
Specified by:
setEditable in interface java.awt.peer.TextComponentPeer

getText

public java.lang.String getText()
Specified by:
getText in interface java.awt.peer.TextComponentPeer

setText

public void setText(java.lang.String text)
Specified by:
setText in interface java.awt.peer.TextComponentPeer

getSelectionStart

public int getSelectionStart()
Specified by:
getSelectionStart in interface java.awt.peer.TextComponentPeer

getSelectionEnd

public int getSelectionEnd()
Specified by:
getSelectionEnd in interface java.awt.peer.TextComponentPeer

select

public void select(int selStart,
                   int selEnd)
Specified by:
select in interface java.awt.peer.TextComponentPeer

setCaretPosition

public void setCaretPosition(int pos)
Specified by:
setCaretPosition in interface java.awt.peer.TextComponentPeer

getCaretPosition

public int getCaretPosition()
Specified by:
getCaretPosition in interface java.awt.peer.TextComponentPeer

filterEvents

public long filterEvents(long mask)
Specified by:
filterEvents in interface java.awt.peer.TextComponentPeer

getCharacterBounds

public java.awt.Rectangle getCharacterBounds(int i)
Specified by:
getCharacterBounds in interface java.awt.peer.TextComponentPeer

getIndexAtPoint

public int getIndexAtPoint(int x,
                           int y)
Specified by:
getIndexAtPoint in interface java.awt.peer.TextComponentPeer

isFocusable

public boolean isFocusable()
Specified by:
isFocusable in interface java.awt.peer.ComponentPeer
Overrides:
isFocusable in class AjaxSwingComponentPeer

getInputMethodRequests

public java.awt.im.InputMethodRequests getInputMethodRequests()
Specified by:
getInputMethodRequests in interface java.awt.peer.TextComponentPeer


Copyright © 2000-2012 CreamTec LLC. All Rights Reserved.