jwx!
v0.0.2


wx
Class Window

java.lang.Object
  extended bywx.Object
      extended bywx.EvtHandler
          extended bywx.Window
Direct Known Subclasses:
Control, MDIClientWindow, MenuBar, Panel, SplitterWindow, StatusBar, TopLevelWindow, TreeCtrl

public class Window
extends EvtHandler


Field Summary
static int ALWAYS_SHOW_SB
           
static int BACKINGSTORE
           
static int CAPTION
           
static int CLIP_CHILDREN
           
static int CLIP_SIBLINGS
           
static int DIALOG_EX_CONTEXTHELP
           
static int DIALOG_EX_METAL
           
static int FRAME_DRAWER
           
static int FRAME_EX_CONTEXTHELP
           
static int FRAME_EX_METAL
           
static int FRAME_NO_WINDOW_MENU
           
static int FULL_REPAINT_ON_RESIZE
           
static int HSCROLL
           
static int MB_DOCKABLE
           
static int NO_FULL_REPAINT_ON_RESIZE
           
static int POPUP_WINDOW
           
static int RETAINED
           
static int SIZE_ALLOW_MINUS_ONE
           
static int SIZE_AUTO
           
static int SIZE_AUTO_HEIGHT
           
static int SIZE_AUTO_WIDTH
           
static int SIZE_FORCE
           
static int SIZE_NO_ADJUSTMENTS
           
static int SIZE_USE_EXISTING
           
static int TAB_TRAVERSAL
           
static int TRANSPARENT_WINDOW
           
static int VSCROLL
           
static int WANTS_CHARS
           
static int WS_EX_BLOCK_EVENTS
           
static int WS_EX_PROCESS_IDLE
           
static int WS_EX_PROCESS_UI_UPDATES
           
static int WS_EX_THEMED_BACKGROUND
           
static int WS_EX_TRANSIENT
           
static int WS_EX_VALIDATE_RECURSIVELY
           
 
Constructor Summary
Window(Window parent, int id)
           
Window(Window parent, int id, Point pos)
           
Window(Window parent, int id, Point pos, Size size)
           
Window(Window parent, int id, Point pos, Size size, int style)
           
Window(Window parent, int id, Point pos, Size size, int style, java.lang.String name)
           
 
Method Summary
 boolean acceptsFocus()
           
 boolean acceptsFocusFromKeyboard()
           
 void addChild(Window child)
           
 void cacheBestSize(Size size)
           
 void captureMouse()
           
 void center()
           
 void center(int direction)
           
 void centerOnParent()
           
 void centerOnParent(int dir)
           
 void centerOnScreen()
           
 void centerOnScreen(int dir)
           
 void centre()
           
 void centre(int direction)
           
 void centreOnParent()
           
 void centreOnParent(int dir)
           
 void centreOnScreen()
           
 void centreOnScreen(int dir)
           
 void clearBackground()
           
 Point clientToScreen(Point pt)
           
 boolean close()
           
 boolean close(boolean force)
           
 Point convertDialogToPixels(Point pt)
           
 Size convertDialogToPixels(Size sz)
           
 Point convertPixelsToDialog(Point pt)
           
 Size convertPixelsToDialog(Size sz)
           
 void delete()
           
 boolean destroy()
           
 boolean destroyChildren()
           
 boolean disable()
           
 boolean enable()
           
 boolean enable(boolean enable)
           
static Window findFocus()
           
 Window findWindow(int id)
           
 Window findWindow(java.lang.String name)
           
static Window findWindowAtPointer(Point pt)
           
static Window findWindowById(int id)
           
static Window findWindowById(int id, Window parent)
           
static Window findWindowByLabel(java.lang.String label)
           
static Window findWindowByLabel(java.lang.String label, Window parent)
           
static Window findWindowByName(java.lang.String name)
           
static Window findWindowByName(java.lang.String name, Window parent)
           
 void fit()
           
 void fitInside()
           
 void freeze()
           
 AcceleratorTable getAcceleratorTable()
           
static Window getActiveWindow()
           
 Size getAdjustedBestSize()
           
 Window getAncestorWithCustomPalette()
           
 Colour getBackgroundColour()
           
 int getBackgroundStyle()
           
 Size getBestFittingSize()
           
 Size getBestSize()
           
 Size getBestVirtualSize()
           
 int getBorder()
           
 int getBorder(int flags)
           
static Window getCapture()
           
 Caret getCaret()
           
 int getCharHeight()
           
 int getCharWidth()
           
 Window[] getChildren()
           
static VisualAttributes getClassDefaultAttributes()
           
static VisualAttributes getClassDefaultAttributes(int variant)
           
 Point getClientAreaOrigin()
           
 Rect getClientRect()
           
 Size getClientSize()
           
 Sizer getContainingSizer()
           
 Cursor getCursor()
           
 VisualAttributes getDefaultAttributes()
           
 Window getDefaultItem()
           
 DropTarget getDropTarget()
           
 EvtHandler getEventHandler()
           
 int getExtraStyle()
           
 Font getFont()
           
 Colour getForegroundColour()
           
 Window getGrandParent()
           
 java.lang.String getHelpText()
           
 int getId()
           
 java.lang.String getLabel()
           
 int getMaxHeight()
           
 Size getMaxSize()
           
 int getMaxWidth()
           
 int getMinHeight()
           
 Size getMinSize()
           
 int getMinWidth()
           
static Point getMousePosition()
           
 java.lang.String getName()
           
 Palette getPalette()
           
 Window getParent()
           
 Point getPosition()
           
 Rect getRect()
           
 int getScrollPos(int orient)
           
 int getScrollRange(int orient)
           
 int getScrollThumb(int orient)
           
 Size getSize()
           
 Sizer getSizer()
           
 void getTextExtent(java.lang.String string, int[] x, int[] y)
           
 void getTextExtent(java.lang.String string, int[] x, int[] y, int[] descent)
           
 void getTextExtent(java.lang.String string, int[] x, int[] y, int[] descent, int[] externalLeading)
           
 void getTextExtent(java.lang.String string, int[] x, int[] y, int[] descent, int[] externalLeading, Font theFont)
           
 boolean getThemeEnabled()
           
 java.lang.String getTitle()
           
 ToolTip getToolTip()
           
static Window getTopLevelParent(Window win)
           
 Rect getUpdateClientRect()
           
 Region getUpdateRegion()
           
 Validator getValidator()
           
 Size getVirtualSize()
           
 int getWindowStyle()
           
 int getWindowStyleFlag()
           
 int getWindowVariant()
           
 boolean hasCapture()
           
 boolean hasCustomPalette()
           
 boolean hasFlag(int flag)
           
 boolean hasScrollbar(int orient)
           
 boolean hasTransparentBackground()
           
 boolean hide()
           
 int hitTest(int x, int y)
           
 int hitTest(Point pt)
           
 void inheritAttributes()
           
 boolean inheritsBackgroundColour()
           
 void initDialog()
           
 void invalidateBestSize()
           
 boolean isBeingDeleted()
           
 boolean isEnabled()
           
 boolean isExposed(int x, int y)
           
 boolean isExposed(int x, int y, int w, int h)
           
 boolean isExposed(Point pt)
           
 boolean isExposed(Rect rect)
           
 boolean isRetained()
           
 boolean isShown()
           
 boolean isTopLevel()
           
 boolean lineDown()
           
 boolean lineUp()
           
 void lower()
           
 void makeModal()
           
 void makeModal(boolean modal)
           
 void move(int x, int y)
           
 void move(int x, int y, int flags)
           
 void move(Point pt)
           
 void move(Point pt, int flags)
           
 void moveAfterInTabOrder(Window win)
           
 void moveBeforeInTabOrder(Window win)
           
 boolean navigate()
           
 boolean navigate(int flags)
           
static int newControlId()
           
static int nextControlId(int id)
           
 boolean pageDown()
           
 boolean pageUp()
           
 EvtHandler popEventHandler()
           
 EvtHandler popEventHandler(boolean deleteHandler)
           
 boolean popupMenu(Menu menu)
           
 boolean popupMenu(Menu menu, int x, int y)
           
 boolean popupMenu(Menu menu, Point pos)
           
 void prepareDC(DC dc)
           
static int prevControlId(int id)
           
 void pushEventHandler(EvtHandler handler)
           
 void raise()
           
 void refresh()
           
 void refresh(boolean eraseBackground)
           
 void refresh(boolean eraseBackground, Rect rect)
           
 void refreshRect(Rect rect)
           
 void refreshRect(Rect rect, boolean eraseBackground)
           
 void releaseMouse()
           
 void removeChild(Window child)
           
 boolean removeEventHandler(EvtHandler handler)
           
 boolean reparent(Window newParent)
           
 Point screenToClient(Point pt)
           
 boolean scrollLines(int lines)
           
 boolean scrollPages(int pages)
           
 void scrollWindow(int dx, int dy)
           
 void scrollWindow(int dx, int dy, Rect rect)
           
 void setAcceleratorTable(AcceleratorTable accel)
           
 boolean setBackgroundColour(Colour colour)
           
 boolean setBackgroundStyle(int style)
           
 void setBestFittingSize()
           
 void setBestFittingSize(Size size)
           
 void setCaret(Caret caret)
           
 void setClientSize(int width, int height)
           
 void setClientSize(Rect rect)
           
 void setClientSize(Size size)
           
 void setContainingSizer(Sizer sizer)
           
 boolean setCursor(Cursor cursor)
           
 Window setDefaultItem(Window child)
           
 void setDropTarget(DropTarget dropTarget)
           
 void setEventHandler(EvtHandler handler)
           
 void setExtraStyle(int exStyle)
           
 void setFocus()
           
 void setFocusFromKbd()
           
 boolean setFont(Font font)
           
 boolean setForegroundColour(Colour colour)
           
 void setHelpText(java.lang.String text)
           
 void setHelpTextForId(java.lang.String text)
           
 void setId(int id)
           
 void setLabel(java.lang.String label)
           
 void setMaxSize(Size maxSize)
           
 void setMinSize(Size minSize)
           
 void setName(java.lang.String name)
           
 void setOwnBackgroundColour(Colour colour)
           
 void setOwnFont(Font font)
           
 void setOwnForegroundColour(Colour colour)
           
 void setPalette(Palette pal)
           
 void setParent(Window parent)
           
 void setPosition(Point pt)
           
 void setScrollbar(int orient, int pos, int thumbvisible, int range)
           
 void setScrollbar(int orient, int pos, int thumbvisible, int range, boolean refresh)
           
 void setScrollPos(int orient, int pos)
           
 void setScrollPos(int orient, int pos, boolean refresh)
           
 void setSize(int width, int height)
           
 void setSize(int x, int y, int width, int height)
           
 void setSize(int x, int y, int width, int height, int sizeFlags)
           
 void setSize(Rect rect)
           
 void setSize(Rect rect, int sizeFlags)
           
 void setSize(Size size)
           
 void setSizeHints(int minW, int minH)
           
 void setSizeHints(int minW, int minH, int maxW)
           
 void setSizeHints(int minW, int minH, int maxW, int maxH)
           
 void setSizeHints(int minW, int minH, int maxW, int maxH, int incW)
           
 void setSizeHints(int minW, int minH, int maxW, int maxH, int incW, int incH)
           
 void setSizeHints(Size minSize)
           
 void setSizeHints(Size minSize, Size maxSize)
           
 void setSizeHints(Size minSize, Size maxSize, Size incSize)
           
 void setSizer(Sizer sizer)
           
 void setSizer(Sizer sizer, boolean deleteOld)
           
 void setSizerAndFit(Sizer sizer)
           
 void setSizerAndFit(Sizer sizer, boolean deleteOld)
           
 void setThemeEnabled(boolean enableTheme)
           
 void setTitle(java.lang.String title)
           
 void setTmpDefaultItem(Window win)
           
 void setToolTip(java.lang.String tip)
           
 void setToolTip(ToolTip tip)
           
 void setValidator(Validator validator)
           
 void setVirtualSize(int x, int y)
           
 void setVirtualSize(Size size)
           
 void setVirtualSizeHints(int minW, int minH)
           
 void setVirtualSizeHints(int minW, int minH, int maxW)
           
 void setVirtualSizeHints(int minW, int minH, int maxW, int maxH)
           
 void setVirtualSizeHints(Size minSize)
           
 void setVirtualSizeHints(Size minSize, Size maxSize)
           
 void setWindowStyle(int style)
           
 void setWindowStyleFlag(int style)
           
 void setWindowVariant(int variant)
           
 boolean shouldInheritColours()
           
 boolean show()
           
 boolean show(boolean show)
           
 void swigReleaseOwnership()
           
 void swigTakeOwnership()
           
 void thaw()
           
 boolean transferDataFromWindow()
           
 boolean transferDataToWindow()
           
 void update()
           
 void updateWindowUI()
           
 void updateWindowUI(int flags)
           
 boolean useBgCol()
           
 boolean validate()
           
 void warpPointer(int x, int y)
           
 
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

VSCROLL

public static final int VSCROLL
See Also:
Constant Field Values

HSCROLL

public static final int HSCROLL
See Also:
Constant Field Values

CAPTION

public static final int CAPTION
See Also:
Constant Field Values

ALWAYS_SHOW_SB

public static final int ALWAYS_SHOW_SB
See Also:
Constant Field Values

CLIP_CHILDREN

public static final int CLIP_CHILDREN
See Also:
Constant Field Values

CLIP_SIBLINGS

public static final int CLIP_SIBLINGS
See Also:
Constant Field Values

TRANSPARENT_WINDOW

public static final int TRANSPARENT_WINDOW
See Also:
Constant Field Values

TAB_TRAVERSAL

public static final int TAB_TRAVERSAL
See Also:
Constant Field Values

WANTS_CHARS

public static final int WANTS_CHARS
See Also:
Constant Field Values

RETAINED

public static final int RETAINED
See Also:
Constant Field Values

BACKINGSTORE

public static final int BACKINGSTORE
See Also:
Constant Field Values

POPUP_WINDOW

public static final int POPUP_WINDOW
See Also:
Constant Field Values

FULL_REPAINT_ON_RESIZE

public static final int FULL_REPAINT_ON_RESIZE
See Also:
Constant Field Values

NO_FULL_REPAINT_ON_RESIZE

public static final int NO_FULL_REPAINT_ON_RESIZE
See Also:
Constant Field Values

WS_EX_VALIDATE_RECURSIVELY

public static final int WS_EX_VALIDATE_RECURSIVELY
See Also:
Constant Field Values

WS_EX_BLOCK_EVENTS

public static final int WS_EX_BLOCK_EVENTS
See Also:
Constant Field Values

WS_EX_TRANSIENT

public static final int WS_EX_TRANSIENT
See Also:
Constant Field Values

WS_EX_THEMED_BACKGROUND

public static final int WS_EX_THEMED_BACKGROUND
See Also:
Constant Field Values

WS_EX_PROCESS_IDLE

public static final int WS_EX_PROCESS_IDLE
See Also:
Constant Field Values

WS_EX_PROCESS_UI_UPDATES

public static final int WS_EX_PROCESS_UI_UPDATES
See Also:
Constant Field Values

FRAME_EX_CONTEXTHELP

public static final int FRAME_EX_CONTEXTHELP
See Also:
Constant Field Values

DIALOG_EX_CONTEXTHELP

public static final int DIALOG_EX_CONTEXTHELP
See Also:
Constant Field Values

FRAME_EX_METAL

public static final int FRAME_EX_METAL
See Also:
Constant Field Values

DIALOG_EX_METAL

public static final int DIALOG_EX_METAL
See Also:
Constant Field Values

FRAME_DRAWER

public static final int FRAME_DRAWER
See Also:
Constant Field Values

FRAME_NO_WINDOW_MENU

public static final int FRAME_NO_WINDOW_MENU
See Also:
Constant Field Values

MB_DOCKABLE

public static final int MB_DOCKABLE
See Also:
Constant Field Values

SIZE_AUTO_WIDTH

public static final int SIZE_AUTO_WIDTH
See Also:
Constant Field Values

SIZE_AUTO_HEIGHT

public static final int SIZE_AUTO_HEIGHT
See Also:
Constant Field Values

SIZE_AUTO

public static final int SIZE_AUTO
See Also:
Constant Field Values

SIZE_USE_EXISTING

public static final int SIZE_USE_EXISTING
See Also:
Constant Field Values

SIZE_ALLOW_MINUS_ONE

public static final int SIZE_ALLOW_MINUS_ONE
See Also:
Constant Field Values

SIZE_NO_ADJUSTMENTS

public static final int SIZE_NO_ADJUSTMENTS
See Also:
Constant Field Values

SIZE_FORCE

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

Window

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

Window

public Window(Window parent,
              int id,
              Point pos,
              Size size,
              int style)

Window

public Window(Window parent,
              int id,
              Point pos,
              Size size)

Window

public Window(Window parent,
              int id,
              Point pos)

Window

public Window(Window parent,
              int id)
Method Detail

delete

public void delete()
Overrides:
delete in class EvtHandler

swigReleaseOwnership

public void swigReleaseOwnership()
Overrides:
swigReleaseOwnership in class EvtHandler

swigTakeOwnership

public void swigTakeOwnership()
Overrides:
swigTakeOwnership in class EvtHandler

getChildren

public Window[] getChildren()

close

public boolean close(boolean force)

close

public boolean close()

destroy

public boolean destroy()

destroyChildren

public boolean destroyChildren()

isBeingDeleted

public boolean isBeingDeleted()

setTitle

public void setTitle(java.lang.String title)

getTitle

public java.lang.String getTitle()

setLabel

public void setLabel(java.lang.String label)

getLabel

public java.lang.String getLabel()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setWindowVariant

public void setWindowVariant(int variant)

getWindowVariant

public int getWindowVariant()

setId

public void setId(int id)

getId

public int getId()

newControlId

public static int newControlId()

nextControlId

public static int nextControlId(int id)

prevControlId

public static int prevControlId(int id)

setSize

public void setSize(int x,
                    int y,
                    int width,
                    int height,
                    int sizeFlags)

setSize

public void setSize(int x,
                    int y,
                    int width,
                    int height)

setSize

public void setSize(int width,
                    int height)

setSize

public void setSize(Size size)

setSize

public void setSize(Rect rect,
                    int sizeFlags)

setSize

public void setSize(Rect rect)

move

public void move(int x,
                 int y,
                 int flags)

move

public void move(int x,
                 int y)

move

public void move(Point pt,
                 int flags)

move

public void move(Point pt)

raise

public void raise()

lower

public void lower()

setClientSize

public void setClientSize(int width,
                          int height)

setClientSize

public void setClientSize(Size size)

setClientSize

public void setClientSize(Rect rect)

getPosition

public Point getPosition()

setPosition

public void setPosition(Point pt)

getSize

public Size getSize()

getRect

public Rect getRect()

getClientSize

public Size getClientSize()

getClientAreaOrigin

public Point getClientAreaOrigin()

getClientRect

public Rect getClientRect()

getBestSize

public Size getBestSize()

invalidateBestSize

public void invalidateBestSize()

cacheBestSize

public void cacheBestSize(Size size)

getAdjustedBestSize

public Size getAdjustedBestSize()

getBestFittingSize

public Size getBestFittingSize()

setBestFittingSize

public void setBestFittingSize(Size size)

setBestFittingSize

public void setBestFittingSize()

centre

public void centre(int direction)

centre

public void centre()

center

public void center(int direction)

center

public void center()

centreOnScreen

public void centreOnScreen(int dir)

centreOnScreen

public void centreOnScreen()

centerOnScreen

public void centerOnScreen(int dir)

centerOnScreen

public void centerOnScreen()

centreOnParent

public void centreOnParent(int dir)

centreOnParent

public void centreOnParent()

centerOnParent

public void centerOnParent(int dir)

centerOnParent

public void centerOnParent()

fit

public void fit()

fitInside

public void fitInside()

setSizeHints

public void setSizeHints(int minW,
                         int minH,
                         int maxW,
                         int maxH,
                         int incW,
                         int incH)

setSizeHints

public void setSizeHints(int minW,
                         int minH,
                         int maxW,
                         int maxH,
                         int incW)

setSizeHints

public void setSizeHints(int minW,
                         int minH,
                         int maxW,
                         int maxH)

setSizeHints

public void setSizeHints(int minW,
                         int minH,
                         int maxW)

setSizeHints

public void setSizeHints(int minW,
                         int minH)

setSizeHints

public void setSizeHints(Size minSize,
                         Size maxSize,
                         Size incSize)

setSizeHints

public void setSizeHints(Size minSize,
                         Size maxSize)

setSizeHints

public void setSizeHints(Size minSize)

setVirtualSizeHints

public void setVirtualSizeHints(int minW,
                                int minH,
                                int maxW,
                                int maxH)

setVirtualSizeHints

public void setVirtualSizeHints(int minW,
                                int minH,
                                int maxW)

setVirtualSizeHints

public void setVirtualSizeHints(int minW,
                                int minH)

setVirtualSizeHints

public void setVirtualSizeHints(Size minSize,
                                Size maxSize)

setVirtualSizeHints

public void setVirtualSizeHints(Size minSize)

getMinWidth

public int getMinWidth()

getMinHeight

public int getMinHeight()

getMaxWidth

public int getMaxWidth()

getMaxHeight

public int getMaxHeight()

getMaxSize

public Size getMaxSize()

getMinSize

public Size getMinSize()

setMinSize

public void setMinSize(Size minSize)

setMaxSize

public void setMaxSize(Size maxSize)

setVirtualSize

public void setVirtualSize(int x,
                           int y)

setVirtualSize

public void setVirtualSize(Size size)

getVirtualSize

public Size getVirtualSize()

getBestVirtualSize

public Size getBestVirtualSize()

show

public boolean show(boolean show)

show

public boolean show()

hide

public boolean hide()

enable

public boolean enable(boolean enable)

enable

public boolean enable()

disable

public boolean disable()

isShown

public boolean isShown()

isEnabled

public boolean isEnabled()

setWindowStyleFlag

public void setWindowStyleFlag(int style)

getWindowStyleFlag

public int getWindowStyleFlag()

setWindowStyle

public void setWindowStyle(int style)

getWindowStyle

public int getWindowStyle()

hasFlag

public boolean hasFlag(int flag)

isRetained

public boolean isRetained()

setExtraStyle

public void setExtraStyle(int exStyle)

getExtraStyle

public int getExtraStyle()

makeModal

public void makeModal(boolean modal)

makeModal

public void makeModal()

setThemeEnabled

public void setThemeEnabled(boolean enableTheme)

getThemeEnabled

public boolean getThemeEnabled()

setFocus

public void setFocus()

setFocusFromKbd

public void setFocusFromKbd()

findFocus

public static Window findFocus()

acceptsFocus

public boolean acceptsFocus()

acceptsFocusFromKeyboard

public boolean acceptsFocusFromKeyboard()

getDefaultItem

public Window getDefaultItem()

setDefaultItem

public Window setDefaultItem(Window child)

setTmpDefaultItem

public void setTmpDefaultItem(Window win)

navigate

public boolean navigate(int flags)

navigate

public boolean navigate()

moveBeforeInTabOrder

public void moveBeforeInTabOrder(Window win)

moveAfterInTabOrder

public void moveAfterInTabOrder(Window win)

getParent

public Window getParent()

getGrandParent

public Window getGrandParent()

isTopLevel

public boolean isTopLevel()

setParent

public void setParent(Window parent)

reparent

public boolean reparent(Window newParent)

addChild

public void addChild(Window child)

removeChild

public void removeChild(Window child)

findWindow

public Window findWindow(int id)

findWindow

public Window findWindow(java.lang.String name)

findWindowById

public static Window findWindowById(int id,
                                    Window parent)

findWindowById

public static Window findWindowById(int id)

findWindowByName

public static Window findWindowByName(java.lang.String name,
                                      Window parent)

findWindowByName

public static Window findWindowByName(java.lang.String name)

findWindowByLabel

public static Window findWindowByLabel(java.lang.String label,
                                       Window parent)

findWindowByLabel

public static Window findWindowByLabel(java.lang.String label)

getEventHandler

public EvtHandler getEventHandler()

setEventHandler

public void setEventHandler(EvtHandler handler)

pushEventHandler

public void pushEventHandler(EvtHandler handler)

popEventHandler

public EvtHandler popEventHandler(boolean deleteHandler)

popEventHandler

public EvtHandler popEventHandler()

removeEventHandler

public boolean removeEventHandler(EvtHandler handler)

setValidator

public void setValidator(Validator validator)

getValidator

public Validator getValidator()

validate

public boolean validate()

transferDataToWindow

public boolean transferDataToWindow()

transferDataFromWindow

public boolean transferDataFromWindow()

initDialog

public void initDialog()

setAcceleratorTable

public void setAcceleratorTable(AcceleratorTable accel)

getAcceleratorTable

public AcceleratorTable getAcceleratorTable()

convertPixelsToDialog

public Point convertPixelsToDialog(Point pt)

convertDialogToPixels

public Point convertDialogToPixels(Point pt)

convertPixelsToDialog

public Size convertPixelsToDialog(Size sz)

convertDialogToPixels

public Size convertDialogToPixels(Size sz)

warpPointer

public void warpPointer(int x,
                        int y)

captureMouse

public void captureMouse()

releaseMouse

public void releaseMouse()

getCapture

public static Window getCapture()

hasCapture

public boolean hasCapture()

refresh

public void refresh(boolean eraseBackground,
                    Rect rect)

refresh

public void refresh(boolean eraseBackground)

refresh

public void refresh()

refreshRect

public void refreshRect(Rect rect,
                        boolean eraseBackground)

refreshRect

public void refreshRect(Rect rect)

update

public void update()

clearBackground

public void clearBackground()

freeze

public void freeze()

thaw

public void thaw()

prepareDC

public void prepareDC(DC dc)

getUpdateRegion

public Region getUpdateRegion()

getUpdateClientRect

public Rect getUpdateClientRect()

isExposed

public boolean isExposed(int x,
                         int y)

isExposed

public boolean isExposed(int x,
                         int y,
                         int w,
                         int h)

isExposed

public boolean isExposed(Point pt)

isExposed

public boolean isExposed(Rect rect)

getDefaultAttributes

public VisualAttributes getDefaultAttributes()

getClassDefaultAttributes

public static VisualAttributes getClassDefaultAttributes(int variant)

getClassDefaultAttributes

public static VisualAttributes getClassDefaultAttributes()

setBackgroundColour

public boolean setBackgroundColour(Colour colour)

setOwnBackgroundColour

public void setOwnBackgroundColour(Colour colour)

getBackgroundColour

public Colour getBackgroundColour()

inheritsBackgroundColour

public boolean inheritsBackgroundColour()

useBgCol

public boolean useBgCol()

setForegroundColour

public boolean setForegroundColour(Colour colour)

setOwnForegroundColour

public void setOwnForegroundColour(Colour colour)

getForegroundColour

public Colour getForegroundColour()

setBackgroundStyle

public boolean setBackgroundStyle(int style)

getBackgroundStyle

public int getBackgroundStyle()

hasTransparentBackground

public boolean hasTransparentBackground()

setFont

public boolean setFont(Font font)

setOwnFont

public void setOwnFont(Font font)

getFont

public Font getFont()

setCursor

public boolean setCursor(Cursor cursor)

getCursor

public Cursor getCursor()

setCaret

public void setCaret(Caret caret)

getCaret

public Caret getCaret()

getCharHeight

public int getCharHeight()

getCharWidth

public int getCharWidth()

getTextExtent

public void getTextExtent(java.lang.String string,
                          int[] x,
                          int[] y,
                          int[] descent,
                          int[] externalLeading,
                          Font theFont)

getTextExtent

public void getTextExtent(java.lang.String string,
                          int[] x,
                          int[] y,
                          int[] descent,
                          int[] externalLeading)

getTextExtent

public void getTextExtent(java.lang.String string,
                          int[] x,
                          int[] y,
                          int[] descent)

getTextExtent

public void getTextExtent(java.lang.String string,
                          int[] x,
                          int[] y)

clientToScreen

public Point clientToScreen(Point pt)

screenToClient

public Point screenToClient(Point pt)

hitTest

public int hitTest(int x,
                   int y)

hitTest

public int hitTest(Point pt)

getBorder

public int getBorder(int flags)

getBorder

public int getBorder()

updateWindowUI

public void updateWindowUI(int flags)

updateWindowUI

public void updateWindowUI()

popupMenu

public boolean popupMenu(Menu menu,
                         Point pos)

popupMenu

public boolean popupMenu(Menu menu)

popupMenu

public boolean popupMenu(Menu menu,
                         int x,
                         int y)

hasScrollbar

public boolean hasScrollbar(int orient)

setScrollbar

public void setScrollbar(int orient,
                         int pos,
                         int thumbvisible,
                         int range,
                         boolean refresh)

setScrollbar

public void setScrollbar(int orient,
                         int pos,
                         int thumbvisible,
                         int range)

setScrollPos

public void setScrollPos(int orient,
                         int pos,
                         boolean refresh)

setScrollPos

public void setScrollPos(int orient,
                         int pos)

getScrollPos

public int getScrollPos(int orient)

getScrollThumb

public int getScrollThumb(int orient)

getScrollRange

public int getScrollRange(int orient)

scrollWindow

public void scrollWindow(int dx,
                         int dy,
                         Rect rect)

scrollWindow

public void scrollWindow(int dx,
                         int dy)

scrollLines

public boolean scrollLines(int lines)

scrollPages

public boolean scrollPages(int pages)

lineUp

public boolean lineUp()

lineDown

public boolean lineDown()

pageUp

public boolean pageUp()

pageDown

public boolean pageDown()

setHelpText

public void setHelpText(java.lang.String text)

setHelpTextForId

public void setHelpTextForId(java.lang.String text)

getHelpText

public java.lang.String getHelpText()

setToolTip

public void setToolTip(java.lang.String tip)

setToolTip

public void setToolTip(ToolTip tip)

getToolTip

public ToolTip getToolTip()

setDropTarget

public void setDropTarget(DropTarget dropTarget)

getDropTarget

public DropTarget getDropTarget()

setSizer

public void setSizer(Sizer sizer,
                     boolean deleteOld)

setSizer

public void setSizer(Sizer sizer)

setSizerAndFit

public void setSizerAndFit(Sizer sizer,
                           boolean deleteOld)

setSizerAndFit

public void setSizerAndFit(Sizer sizer)

getSizer

public Sizer getSizer()

setContainingSizer

public void setContainingSizer(Sizer sizer)

getContainingSizer

public Sizer getContainingSizer()

getPalette

public Palette getPalette()

setPalette

public void setPalette(Palette pal)

hasCustomPalette

public boolean hasCustomPalette()

getAncestorWithCustomPalette

public Window getAncestorWithCustomPalette()

inheritAttributes

public void inheritAttributes()

shouldInheritColours

public boolean shouldInheritColours()

findWindowAtPointer

public static Window findWindowAtPointer(Point pt)

getMousePosition

public static Point getMousePosition()

getActiveWindow

public static Window getActiveWindow()

getTopLevelParent

public static Window getTopLevelParent(Window win)

jwx!
v0.0.2


© 2006 Amit G Mendapara.