jwx!
v0.0.2


wx
Class TextCtrl

java.lang.Object
  extended bywx.Object
      extended bywx.EvtHandler
          extended bywx.Window
              extended bywx.Control
                  extended bywx.TextCtrl

public class TextCtrl
extends Control


Field Summary
static int InvalidTextCoord
           
static int OutOfRangeTextCoord
           
static int TE_AUTO_SCROLL
           
static int TE_AUTO_URL
           
static int TE_BESTWRAP
           
static int TE_CAPITALIZE
           
static int TE_CENTER
           
static int TE_CENTRE
           
static int TE_CHARWRAP
           
static int TE_DONTWRAP
           
static int TE_LEFT
           
static int TE_LINEWRAP
           
static int TE_MULTILINE
           
static int TE_NO_VSCROLL
           
static int TE_NOHIDESEL
           
static int TE_PASSWORD
           
static int TE_PROCESS_ENTER
           
static int TE_PROCESS_TAB
           
static int TE_READONLY
           
static int TE_RICH
           
static int TE_RICH2
           
static int TE_RIGHT
           
static int TE_WORDWRAP
           
 
Fields inherited from class wx.Window
ALWAYS_SHOW_SB, BACKINGSTORE, CAPTION, CLIP_CHILDREN, CLIP_SIBLINGS, DIALOG_EX_CONTEXTHELP, DIALOG_EX_METAL, FRAME_DRAWER, FRAME_EX_CONTEXTHELP, FRAME_EX_METAL, FRAME_NO_WINDOW_MENU, FULL_REPAINT_ON_RESIZE, HSCROLL, MB_DOCKABLE, NO_FULL_REPAINT_ON_RESIZE, POPUP_WINDOW, RETAINED, SIZE_ALLOW_MINUS_ONE, SIZE_AUTO, SIZE_AUTO_HEIGHT, SIZE_AUTO_WIDTH, SIZE_FORCE, SIZE_NO_ADJUSTMENTS, SIZE_USE_EXISTING, TAB_TRAVERSAL, TRANSPARENT_WINDOW, VSCROLL, WANTS_CHARS, WS_EX_BLOCK_EVENTS, WS_EX_PROCESS_IDLE, WS_EX_PROCESS_UI_UPDATES, WS_EX_THEMED_BACKGROUND, WS_EX_TRANSIENT, WS_EX_VALIDATE_RECURSIVELY
 
Constructor Summary
TextCtrl()
           
TextCtrl(Window parent, int id)
           
TextCtrl(Window parent, int id, java.lang.String value)
           
TextCtrl(Window parent, int id, java.lang.String value, Point pos)
           
TextCtrl(Window parent, int id, java.lang.String value, Point pos, Size size)
           
TextCtrl(Window parent, int id, java.lang.String value, Point pos, Size size, int style)
           
TextCtrl(Window parent, int id, java.lang.String value, Point pos, Size size, int style, Validator validator)
           
TextCtrl(Window parent, int id, java.lang.String value, Point pos, Size size, int style, Validator validator, java.lang.String name)
           
 
Method Summary
 void appendText(java.lang.String text)
           
 boolean canCopy()
           
 boolean canCut()
           
 boolean canPaste()
           
 boolean canRedo()
           
 boolean canUndo()
           
 void clear()
           
 void copy()
           
 void cut()
           
 void delete()
           
 void discardEdits()
           
 boolean emulateKeyPress(KeyEvent event)
           
 TextAttr getDefaultStyle()
           
 int getInsertionPoint()
           
 int getLastPosition()
           
 int getLineLength(int lineNo)
           
 java.lang.String getLineText(int lineNo)
           
 int getNumberOfLines()
           
 java.lang.String getRange(int from, int to)
           
 void getSelection(int[] from, int[] to)
           
 java.lang.String getStringSelection()
           
 boolean getStyle(int position, TextAttr style)
           
 java.lang.String getValue()
           
 boolean isEditable()
           
 boolean isModified()
           
 boolean isMultiLine()
           
 boolean isSingleLine()
           
 boolean loadFile(java.lang.String filename)
           
 void markDirty()
           
 void paste()
           
 boolean positionToXY(int pos, int[] x, int[] y)
           
 void redo()
           
 void remove(int from, int to)
           
 void replace(int from, int to, java.lang.String value)
           
 boolean saveFile(java.lang.String filename)
           
 boolean setDefaultStyle(TextAttr style)
           
 void setEditable(boolean editable)
           
 void setInsertionPoint(int pos)
           
 void setInsertionPointEnd()
           
 void setMaxLength(long len)
           
 void setSelection(int from, int to)
           
 boolean setStyle(int start, int end, TextAttr style)
           
 void setValue(java.lang.String value)
           
 void showPosition(int pos)
           
 void undo()
           
 void writeText(java.lang.String text)
           
 int xyToPosition(int x, int y)
           
 
Methods inherited from class wx.Control
command, getLabel, setLabel
 
Methods inherited from class wx.Window
acceptsFocus, acceptsFocusFromKeyboard, addChild, cacheBestSize, captureMouse, center, center, centerOnParent, centerOnParent, centerOnScreen, centerOnScreen, centre, centre, centreOnParent, centreOnParent, centreOnScreen, centreOnScreen, clearBackground, clientToScreen, close, close, convertDialogToPixels, convertDialogToPixels, convertPixelsToDialog, convertPixelsToDialog, destroy, destroyChildren, disable, enable, enable, findFocus, findWindow, findWindow, findWindowAtPointer, findWindowById, findWindowById, findWindowByLabel, findWindowByLabel, findWindowByName, findWindowByName, fit, fitInside, freeze, getAcceleratorTable, getActiveWindow, getAdjustedBestSize, getAncestorWithCustomPalette, getBackgroundColour, getBackgroundStyle, getBestFittingSize, getBestSize, getBestVirtualSize, getBorder, getBorder, getCapture, getCaret, getCharHeight, getCharWidth, getChildren, getClassDefaultAttributes, getClassDefaultAttributes, getClientAreaOrigin, getClientRect, getClientSize, getContainingSizer, getCursor, getDefaultAttributes, getDefaultItem, getDropTarget, getEventHandler, getExtraStyle, getFont, getForegroundColour, getGrandParent, getHelpText, getId, getMaxHeight, getMaxSize, getMaxWidth, getMinHeight, getMinSize, getMinWidth, getMousePosition, getName, getPalette, getParent, getPosition, getRect, getScrollPos, getScrollRange, getScrollThumb, getSize, getSizer, getTextExtent, getTextExtent, getTextExtent, getTextExtent, getThemeEnabled, getTitle, getToolTip, getTopLevelParent, getUpdateClientRect, getUpdateRegion, getValidator, getVirtualSize, getWindowStyle, getWindowStyleFlag, getWindowVariant, hasCapture, hasCustomPalette, hasFlag, hasScrollbar, hasTransparentBackground, hide, hitTest, hitTest, inheritAttributes, inheritsBackgroundColour, initDialog, invalidateBestSize, isBeingDeleted, isEnabled, isExposed, isExposed, isExposed, isExposed, isRetained, isShown, isTopLevel, lineDown, lineUp, lower, makeModal, makeModal, move, move, move, move, moveAfterInTabOrder, moveBeforeInTabOrder, navigate, navigate, newControlId, nextControlId, pageDown, pageUp, popEventHandler, popEventHandler, popupMenu, popupMenu, popupMenu, prepareDC, prevControlId, pushEventHandler, raise, refresh, refresh, refresh, refreshRect, refreshRect, releaseMouse, removeChild, removeEventHandler, reparent, screenToClient, scrollLines, scrollPages, scrollWindow, scrollWindow, setAcceleratorTable, setBackgroundColour, setBackgroundStyle, setBestFittingSize, setBestFittingSize, setCaret, setClientSize, setClientSize, setClientSize, setContainingSizer, setCursor, setDefaultItem, setDropTarget, setEventHandler, setExtraStyle, setFocus, setFocusFromKbd, setFont, setForegroundColour, setHelpText, setHelpTextForId, setId, setMaxSize, setMinSize, setName, setOwnBackgroundColour, setOwnFont, setOwnForegroundColour, setPalette, setParent, setPosition, setScrollbar, setScrollbar, setScrollPos, setScrollPos, setSize, setSize, setSize, setSize, setSize, setSize, setSizeHints, setSizeHints, setSizeHints, setSizeHints, setSizeHints, setSizeHints, setSizeHints, setSizeHints, setSizer, setSizer, setSizerAndFit, setSizerAndFit, setThemeEnabled, setTitle, setTmpDefaultItem, setToolTip, setToolTip, setValidator, setVirtualSize, setVirtualSize, setVirtualSizeHints, setVirtualSizeHints, setVirtualSizeHints, setVirtualSizeHints, setVirtualSizeHints, setWindowStyle, setWindowStyleFlag, setWindowVariant, shouldInheritColours, show, show, swigReleaseOwnership, swigTakeOwnership, thaw, transferDataFromWindow, transferDataToWindow, update, updateWindowUI, updateWindowUI, useBgCol, validate, warpPointer
 
Methods inherited from class wx.EvtHandler
addPendingEvent, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, getEvtHandlerEnabled, getNextHandler, getPreviousHandler, postEvent, processEvent, processPendingEvents, setEvtHandlerEnabled, setNextHandler, setPreviousHandler
 
Methods inherited from class wx.Object
_, getTanslation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TE_NO_VSCROLL

public static final int TE_NO_VSCROLL
See Also:
Constant Field Values

TE_AUTO_SCROLL

public static final int TE_AUTO_SCROLL
See Also:
Constant Field Values

TE_READONLY

public static final int TE_READONLY
See Also:
Constant Field Values

TE_MULTILINE

public static final int TE_MULTILINE
See Also:
Constant Field Values

TE_PROCESS_TAB

public static final int TE_PROCESS_TAB
See Also:
Constant Field Values

TE_LEFT

public static final int TE_LEFT
See Also:
Constant Field Values

TE_CENTER

public static final int TE_CENTER
See Also:
Constant Field Values

TE_RIGHT

public static final int TE_RIGHT
See Also:
Constant Field Values

TE_CENTRE

public static final int TE_CENTRE
See Also:
Constant Field Values

TE_RICH

public static final int TE_RICH
See Also:
Constant Field Values

TE_PROCESS_ENTER

public static final int TE_PROCESS_ENTER
See Also:
Constant Field Values

TE_PASSWORD

public static final int TE_PASSWORD
See Also:
Constant Field Values

TE_AUTO_URL

public static final int TE_AUTO_URL
See Also:
Constant Field Values

TE_NOHIDESEL

public static final int TE_NOHIDESEL
See Also:
Constant Field Values

TE_DONTWRAP

public static final int TE_DONTWRAP
See Also:
Constant Field Values

TE_CHARWRAP

public static final int TE_CHARWRAP
See Also:
Constant Field Values

TE_WORDWRAP

public static final int TE_WORDWRAP
See Also:
Constant Field Values

TE_BESTWRAP

public static final int TE_BESTWRAP
See Also:
Constant Field Values

TE_LINEWRAP

public static final int TE_LINEWRAP
See Also:
Constant Field Values

TE_RICH2

public static final int TE_RICH2
See Also:
Constant Field Values

TE_CAPITALIZE

public static final int TE_CAPITALIZE
See Also:
Constant Field Values

OutOfRangeTextCoord

public static final int OutOfRangeTextCoord
See Also:
Constant Field Values

InvalidTextCoord

public static final int InvalidTextCoord
See Also:
Constant Field Values
Constructor Detail

TextCtrl

public TextCtrl()

TextCtrl

public TextCtrl(Window parent,
                int id,
                java.lang.String value,
                Point pos,
                Size size,
                int style,
                Validator validator,
                java.lang.String name)

TextCtrl

public TextCtrl(Window parent,
                int id,
                java.lang.String value,
                Point pos,
                Size size,
                int style,
                Validator validator)

TextCtrl

public TextCtrl(Window parent,
                int id,
                java.lang.String value,
                Point pos,
                Size size,
                int style)

TextCtrl

public TextCtrl(Window parent,
                int id,
                java.lang.String value,
                Point pos,
                Size size)

TextCtrl

public TextCtrl(Window parent,
                int id,
                java.lang.String value,
                Point pos)

TextCtrl

public TextCtrl(Window parent,
                int id,
                java.lang.String value)

TextCtrl

public TextCtrl(Window parent,
                int id)
Method Detail

delete

public void delete()
Overrides:
delete in class Control

appendText

public void appendText(java.lang.String text)

canCopy

public boolean canCopy()

canCut

public boolean canCut()

canPaste

public boolean canPaste()

canRedo

public boolean canRedo()

canUndo

public boolean canUndo()

clear

public void clear()

copy

public void copy()

cut

public void cut()

discardEdits

public void discardEdits()

emulateKeyPress

public boolean emulateKeyPress(KeyEvent event)

getDefaultStyle

public TextAttr getDefaultStyle()

getInsertionPoint

public int getInsertionPoint()

getLastPosition

public int getLastPosition()

getLineLength

public int getLineLength(int lineNo)

getLineText

public java.lang.String getLineText(int lineNo)

getNumberOfLines

public int getNumberOfLines()

getRange

public java.lang.String getRange(int from,
                                 int to)

getSelection

public void getSelection(int[] from,
                         int[] to)

getStringSelection

public java.lang.String getStringSelection()

getStyle

public boolean getStyle(int position,
                        TextAttr style)

getValue

public java.lang.String getValue()

isEditable

public boolean isEditable()

isModified

public boolean isModified()

isMultiLine

public boolean isMultiLine()

isSingleLine

public boolean isSingleLine()

loadFile

public boolean loadFile(java.lang.String filename)

markDirty

public void markDirty()

paste

public void paste()

positionToXY

public boolean positionToXY(int pos,
                            int[] x,
                            int[] y)

redo

public void redo()

remove

public void remove(int from,
                   int to)

replace

public void replace(int from,
                    int to,
                    java.lang.String value)

saveFile

public boolean saveFile(java.lang.String filename)

setDefaultStyle

public boolean setDefaultStyle(TextAttr style)

setEditable

public void setEditable(boolean editable)

setInsertionPoint

public void setInsertionPoint(int pos)

setInsertionPointEnd

public void setInsertionPointEnd()

setMaxLength

public void setMaxLength(long len)

setSelection

public void setSelection(int from,
                         int to)

setStyle

public boolean setStyle(int start,
                        int end,
                        TextAttr style)

setValue

public void setValue(java.lang.String value)

showPosition

public void showPosition(int pos)

undo

public void undo()

writeText

public void writeText(java.lang.String text)

xyToPosition

public int xyToPosition(int x,
                        int y)

jwx!
v0.0.2


© 2006 Amit G Mendapara.