jwx!
v0.0.2


wx
Class TreeCtrl

java.lang.Object
  extended bywx.Object
      extended bywx.EvtHandler
          extended bywx.Window
              extended bywx.TreeCtrl

public class TreeCtrl
extends Window


Field Summary
static int TR_AQUA_BUTTONS
           
static int TR_DEFAULT_STYLE
           
static int TR_EDIT_LABELS
           
static int TR_EXTENDED
           
static int TR_FULL_ROW_HIGHLIGHT
           
static int TR_HAS_BUTTONS
           
static int TR_HAS_VARIABLE_ROW_HEIGHT
           
static int TR_HIDE_ROOT
           
static int TR_LINES_AT_ROOT
           
static int TR_MAC_BUTTONS
           
static int TR_MULTIPLE
           
static int TR_NO_BUTTONS
           
static int TR_NO_LINES
           
static int TR_ROW_LINES
           
static int TR_SINGLE
           
static int TR_TWIST_BUTTONS
           
static int TREE_EXPAND_COLLAPSE
           
static int TREE_EXPAND_COLLAPSE_RESET
           
static int TREE_EXPAND_EXPAND
           
static int TREE_EXPAND_TOGGLE
           
static int TREE_HITTEST_ABOVE
           
static int TREE_HITTEST_BELOW
           
static int TREE_HITTEST_NOWHERE
           
static int TREE_HITTEST_ONITEM
           
static int TREE_HITTEST_ONITEMBUTTON
           
static int TREE_HITTEST_ONITEMICON
           
static int TREE_HITTEST_ONITEMINDENT
           
static int TREE_HITTEST_ONITEMLABEL
           
static int TREE_HITTEST_ONITEMLOWERPART
           
static int TREE_HITTEST_ONITEMRIGHT
           
static int TREE_HITTEST_ONITEMSTATEICON
           
static int TREE_HITTEST_ONITEMUPPERPART
           
static int TREE_HITTEST_TOLEFT
           
static int TREE_HITTEST_TORIGHT
           
static int TREE_INSERT_FIRST
           
static int TREE_INSERT_LAST
           
 
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
TreeCtrl()
           
TreeCtrl(Window parent)
           
TreeCtrl(Window parent, int id)
           
TreeCtrl(Window parent, int id, Point pos)
           
TreeCtrl(Window parent, int id, Point pos, Size size)
           
TreeCtrl(Window parent, int id, Point pos, Size size, int style)
           
TreeCtrl(Window parent, int id, Point pos, Size size, int style, Validator validator)
           
TreeCtrl(Window parent, int id, Point pos, Size size, int style, Validator validator, java.lang.String name)
           
 
Method Summary
 TreeItemId addRoot(java.lang.String text)
           
 TreeItemId addRoot(java.lang.String text, int image)
           
 TreeItemId addRoot(java.lang.String text, int image, int selectedImage)
           
 TreeItemId addRoot(java.lang.String text, int image, int selectedImage, TreeItemData data)
           
 TreeItemId appendItem(TreeItemId parent, java.lang.String text)
           
 TreeItemId appendItem(TreeItemId parent, java.lang.String text, int image)
           
 TreeItemId appendItem(TreeItemId parent, java.lang.String text, int image, int selectedImage)
           
 TreeItemId appendItem(TreeItemId parent, java.lang.String text, int image, int selectedImage, TreeItemData data)
           
 void collapse(TreeItemId item)
           
 void collapseAndReset(TreeItemId item)
           
 void delete()
           
 void delete(TreeItemId item)
           
 void deleteAllItems()
           
 void editLabel(TreeItemId item)
           
 void ensureVisible(TreeItemId item)
           
 void expand(TreeItemId item)
           
 int getChildrenCount(TreeItemId item)
           
 int getChildrenCount(TreeItemId item, boolean recursively)
           
 int getCount()
           
 TextCtrl getEditControl()
           
 TreeItemId getFirstChild(TreeItemId item, int[] cookie)
           
 TreeItemId getFirstVisibleItem()
           
 ImageList getImageList()
           
 long getIndent()
           
 TreeItemData getItemData(TreeItemId item)
           
 int getItemImage(TreeItemId item)
           
 java.lang.Object getItemObject(TreeItemId item)
           
 TreeItemId getItemParent(TreeItemId item)
           
 java.lang.String getItemText(TreeItemId item)
           
 TreeItemId getLastChild(TreeItemId item)
           
 TreeItemId getNextChild(TreeItemId item, int[] cookie)
           
 TreeItemId getNextSibling(TreeItemId item)
           
 TreeItemId getNextVisible(TreeItemId item)
           
 TreeItemId getPrevSibling(TreeItemId item)
           
 TreeItemId getPrevVisible(TreeItemId item)
           
 TreeItemId getRootItem()
           
 TreeItemId getSelection()
           
 ImageList getStateImageList()
           
 TreeItemId insertItem(TreeItemId parent, TreeItemId idPrevious, java.lang.String text)
           
 TreeItemId insertItem(TreeItemId parent, TreeItemId idPrevious, java.lang.String text, int image)
           
 TreeItemId insertItem(TreeItemId parent, TreeItemId idPrevious, java.lang.String text, int image, int selectedImage)
           
 TreeItemId insertItem(TreeItemId parent, TreeItemId idPrevious, java.lang.String text, int image, int selectedImage, TreeItemData data)
           
 boolean isExpanded(TreeItemId item)
           
 boolean isSelected(TreeItemId item)
           
 boolean isVisible(TreeItemId item)
           
 boolean itemHasChildren(TreeItemId item)
           
 TreeItemId prependItem(TreeItemId parent, java.lang.String text)
           
 TreeItemId prependItem(TreeItemId parent, java.lang.String text, int image)
           
 TreeItemId prependItem(TreeItemId parent, java.lang.String text, int image, int selectedImage)
           
 TreeItemId prependItem(TreeItemId parent, java.lang.String text, int image, int selectedImage, TreeItemData data)
           
 void scrollTo(TreeItemId item)
           
 void selectItem(TreeItemId item)
           
 void setImageList(ImageList imageList)
           
 void setIndent(long indent)
           
 void setItemData(TreeItemId item, TreeItemData data)
           
 void setItemImage(TreeItemId item, int image)
           
 void setItemObject(TreeItemId item, java.lang.Object obj)
           
 void setItemText(TreeItemId item, java.lang.String text)
           
 void setStateImageList(ImageList imageList)
           
 void sortChildren(TreeItemId item)
           
 void swigReleaseOwnership()
           
 void swigTakeOwnership()
           
 void toggle(TreeItemId item)
           
 void unselect()
           
 
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, getLabel, 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, setLabel, 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, 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

TREE_EXPAND_EXPAND

public static final int TREE_EXPAND_EXPAND
See Also:
Constant Field Values

TREE_EXPAND_COLLAPSE

public static final int TREE_EXPAND_COLLAPSE
See Also:
Constant Field Values

TREE_EXPAND_COLLAPSE_RESET

public static final int TREE_EXPAND_COLLAPSE_RESET
See Also:
Constant Field Values

TREE_EXPAND_TOGGLE

public static final int TREE_EXPAND_TOGGLE
See Also:
Constant Field Values

TR_NO_BUTTONS

public static final int TR_NO_BUTTONS
See Also:
Constant Field Values

TR_HAS_BUTTONS

public static final int TR_HAS_BUTTONS
See Also:
Constant Field Values

TR_NO_LINES

public static final int TR_NO_LINES
See Also:
Constant Field Values

TR_LINES_AT_ROOT

public static final int TR_LINES_AT_ROOT
See Also:
Constant Field Values

TR_TWIST_BUTTONS

public static final int TR_TWIST_BUTTONS
See Also:
Constant Field Values

TR_SINGLE

public static final int TR_SINGLE
See Also:
Constant Field Values

TR_MULTIPLE

public static final int TR_MULTIPLE
See Also:
Constant Field Values

TR_EXTENDED

public static final int TR_EXTENDED
See Also:
Constant Field Values

TR_HAS_VARIABLE_ROW_HEIGHT

public static final int TR_HAS_VARIABLE_ROW_HEIGHT
See Also:
Constant Field Values

TR_EDIT_LABELS

public static final int TR_EDIT_LABELS
See Also:
Constant Field Values

TR_ROW_LINES

public static final int TR_ROW_LINES
See Also:
Constant Field Values

TR_HIDE_ROOT

public static final int TR_HIDE_ROOT
See Also:
Constant Field Values

TR_FULL_ROW_HIGHLIGHT

public static final int TR_FULL_ROW_HIGHLIGHT
See Also:
Constant Field Values

TR_DEFAULT_STYLE

public static final int TR_DEFAULT_STYLE
See Also:
Constant Field Values

TR_MAC_BUTTONS

public static final int TR_MAC_BUTTONS
See Also:
Constant Field Values

TR_AQUA_BUTTONS

public static final int TR_AQUA_BUTTONS
See Also:
Constant Field Values

TREE_HITTEST_ABOVE

public static final int TREE_HITTEST_ABOVE
See Also:
Constant Field Values

TREE_HITTEST_BELOW

public static final int TREE_HITTEST_BELOW
See Also:
Constant Field Values

TREE_HITTEST_NOWHERE

public static final int TREE_HITTEST_NOWHERE
See Also:
Constant Field Values

TREE_HITTEST_ONITEMBUTTON

public static final int TREE_HITTEST_ONITEMBUTTON
See Also:
Constant Field Values

TREE_HITTEST_ONITEMICON

public static final int TREE_HITTEST_ONITEMICON
See Also:
Constant Field Values

TREE_HITTEST_ONITEMINDENT

public static final int TREE_HITTEST_ONITEMINDENT
See Also:
Constant Field Values

TREE_HITTEST_ONITEMLABEL

public static final int TREE_HITTEST_ONITEMLABEL
See Also:
Constant Field Values

TREE_HITTEST_ONITEMRIGHT

public static final int TREE_HITTEST_ONITEMRIGHT
See Also:
Constant Field Values

TREE_HITTEST_ONITEMSTATEICON

public static final int TREE_HITTEST_ONITEMSTATEICON
See Also:
Constant Field Values

TREE_HITTEST_TOLEFT

public static final int TREE_HITTEST_TOLEFT
See Also:
Constant Field Values

TREE_HITTEST_TORIGHT

public static final int TREE_HITTEST_TORIGHT
See Also:
Constant Field Values

TREE_HITTEST_ONITEMUPPERPART

public static final int TREE_HITTEST_ONITEMUPPERPART
See Also:
Constant Field Values

TREE_HITTEST_ONITEMLOWERPART

public static final int TREE_HITTEST_ONITEMLOWERPART
See Also:
Constant Field Values

TREE_HITTEST_ONITEM

public static final int TREE_HITTEST_ONITEM
See Also:
Constant Field Values

TREE_INSERT_FIRST

public static final int TREE_INSERT_FIRST
See Also:
Constant Field Values

TREE_INSERT_LAST

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

TreeCtrl

public TreeCtrl()

TreeCtrl

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

TreeCtrl

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

TreeCtrl

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

TreeCtrl

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

TreeCtrl

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

TreeCtrl

public TreeCtrl(Window parent,
                int id)

TreeCtrl

public TreeCtrl(Window parent)
Method Detail

delete

public void delete()
Overrides:
delete in class Window

swigReleaseOwnership

public void swigReleaseOwnership()
Overrides:
swigReleaseOwnership in class Window

swigTakeOwnership

public void swigTakeOwnership()
Overrides:
swigTakeOwnership in class Window

getCount

public int getCount()

getIndent

public long getIndent()

setIndent

public void setIndent(long indent)

getImageList

public ImageList getImageList()

getStateImageList

public ImageList getStateImageList()

setImageList

public void setImageList(ImageList imageList)

setStateImageList

public void setStateImageList(ImageList imageList)

getItemText

public java.lang.String getItemText(TreeItemId item)

getItemImage

public int getItemImage(TreeItemId item)

getItemData

public TreeItemData getItemData(TreeItemId item)

getItemObject

public java.lang.Object getItemObject(TreeItemId item)

setItemText

public void setItemText(TreeItemId item,
                        java.lang.String text)

setItemImage

public void setItemImage(TreeItemId item,
                         int image)

setItemData

public void setItemData(TreeItemId item,
                        TreeItemData data)

setItemObject

public void setItemObject(TreeItemId item,
                          java.lang.Object obj)

isVisible

public boolean isVisible(TreeItemId item)

itemHasChildren

public boolean itemHasChildren(TreeItemId item)

isExpanded

public boolean isExpanded(TreeItemId item)

isSelected

public boolean isSelected(TreeItemId item)

getChildrenCount

public int getChildrenCount(TreeItemId item,
                            boolean recursively)

getChildrenCount

public int getChildrenCount(TreeItemId item)

getRootItem

public TreeItemId getRootItem()

getSelection

public TreeItemId getSelection()

getItemParent

public TreeItemId getItemParent(TreeItemId item)

getFirstChild

public TreeItemId getFirstChild(TreeItemId item,
                                int[] cookie)

getNextChild

public TreeItemId getNextChild(TreeItemId item,
                               int[] cookie)

getLastChild

public TreeItemId getLastChild(TreeItemId item)

getNextSibling

public TreeItemId getNextSibling(TreeItemId item)

getPrevSibling

public TreeItemId getPrevSibling(TreeItemId item)

getFirstVisibleItem

public TreeItemId getFirstVisibleItem()

getNextVisible

public TreeItemId getNextVisible(TreeItemId item)

getPrevVisible

public TreeItemId getPrevVisible(TreeItemId item)

addRoot

public TreeItemId addRoot(java.lang.String text,
                          int image,
                          int selectedImage,
                          TreeItemData data)

addRoot

public TreeItemId addRoot(java.lang.String text,
                          int image,
                          int selectedImage)

addRoot

public TreeItemId addRoot(java.lang.String text,
                          int image)

addRoot

public TreeItemId addRoot(java.lang.String text)

prependItem

public TreeItemId prependItem(TreeItemId parent,
                              java.lang.String text,
                              int image,
                              int selectedImage,
                              TreeItemData data)

prependItem

public TreeItemId prependItem(TreeItemId parent,
                              java.lang.String text,
                              int image,
                              int selectedImage)

prependItem

public TreeItemId prependItem(TreeItemId parent,
                              java.lang.String text,
                              int image)

prependItem

public TreeItemId prependItem(TreeItemId parent,
                              java.lang.String text)

insertItem

public TreeItemId insertItem(TreeItemId parent,
                             TreeItemId idPrevious,
                             java.lang.String text,
                             int image,
                             int selectedImage,
                             TreeItemData data)

insertItem

public TreeItemId insertItem(TreeItemId parent,
                             TreeItemId idPrevious,
                             java.lang.String text,
                             int image,
                             int selectedImage)

insertItem

public TreeItemId insertItem(TreeItemId parent,
                             TreeItemId idPrevious,
                             java.lang.String text,
                             int image)

insertItem

public TreeItemId insertItem(TreeItemId parent,
                             TreeItemId idPrevious,
                             java.lang.String text)

appendItem

public TreeItemId appendItem(TreeItemId parent,
                             java.lang.String text,
                             int image,
                             int selectedImage,
                             TreeItemData data)

appendItem

public TreeItemId appendItem(TreeItemId parent,
                             java.lang.String text,
                             int image,
                             int selectedImage)

appendItem

public TreeItemId appendItem(TreeItemId parent,
                             java.lang.String text,
                             int image)

appendItem

public TreeItemId appendItem(TreeItemId parent,
                             java.lang.String text)

delete

public void delete(TreeItemId item)

deleteAllItems

public void deleteAllItems()

expand

public void expand(TreeItemId item)

collapse

public void collapse(TreeItemId item)

collapseAndReset

public void collapseAndReset(TreeItemId item)

toggle

public void toggle(TreeItemId item)

unselect

public void unselect()

selectItem

public void selectItem(TreeItemId item)

ensureVisible

public void ensureVisible(TreeItemId item)

scrollTo

public void scrollTo(TreeItemId item)

editLabel

public void editLabel(TreeItemId item)

getEditControl

public TextCtrl getEditControl()

sortChildren

public void sortChildren(TreeItemId item)

jwx!
v0.0.2


© 2006 Amit G Mendapara.