    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class jclass.bwt.JCTextEvent

    java.lang.Object
       |
       +----java.util.EventObject
               |
               +----java.awt.AWTEvent
                       |
                       +----java.awt.event.TextEvent
                               |
                               +----jclass.bwt.JCTextEvent

public class JCTextEvent
extends TextEvent

JCTextValueEvent is posted by a JCTextComponent when its value changes.

See Also:
  addTextListener

##

JCTextEvent(JCTextComponent, int, int, String)

##

getAllowChange()
  Determines whether the value change be allowed.
getEndPosition()
  Gets the ending position of the text to modify.
getStartPosition()
  Gets the starting position of the text to modify.
getText()
  Gets the string to be inserted.
isDeletion()
  Returns true if text is being deleted.
paramString()
setAllowChange(boolean)
  Determines whether the value change be allowed (default: true).
setEndPosition(int)
  Sets the ending position of the text to modify.
setStartPosition(int)
  Sets the starting position of the text to modify.
setText(String)
  Sets the string to be inserted.

##

JCTextEvent

      public JCTextEvent(JCTextComponent comp,
                         int start,
                         int end,
                         String text)

##

getStartPosition

      public int getStartPosition()

  Gets the starting position of the text to modify.

setStartPosition

      public void setStartPosition(int v)

  Sets the starting position of the text to modify.

getEndPosition

      public int getEndPosition()

  Gets the ending position of the text to modify.

setEndPosition

      public void setEndPosition(int v)

  Sets the ending position of the text to modify.

getText

      public String getText()

  Gets the string to be inserted.

setText

      public void setText(String v)

  Sets the string to be inserted.

isDeletion

      public boolean isDeletion()

  Returns true if text is being deleted.

getAllowChange

      public boolean getAllowChange()

  Determines whether the value change be allowed.

setAllowChange

      public void setAllowChange(boolean v)

  Determines whether the value change be allowed (default: true).

paramString

      public String paramString()

Overrides:
  paramString in class TextEvent

    All Packages  Class Hierarchy  This Package  Previous  Next  Index