wx
Class ListCtrl
java.lang.Object
wx.Object
wx.EvtHandler
wx.Window
wx.Control
wx.ListCtrl
- Direct Known Subclasses:
- ListView
- public class ListCtrl
- extends Control
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 |
ListCtrl()
|
ListCtrl(Window parent,
int winid)
|
ListCtrl(Window parent,
int winid,
Point pos)
|
ListCtrl(Window parent,
int winid,
Point pos,
Size size)
|
ListCtrl(Window parent,
int winid,
Point pos,
Size size,
int style)
|
ListCtrl(Window parent,
int winid,
Point pos,
Size size,
int style,
Validator validator)
|
ListCtrl(Window parent,
int winid,
Point pos,
Size size,
int style,
Validator validator,
java.lang.String name)
|
Method Summary |
boolean |
arrange()
|
boolean |
arrange(int flag)
|
void |
assignImageList(ImageList imageList,
int which)
|
void |
clearAll()
|
void |
delete()
|
boolean |
deleteAllColumns()
|
boolean |
deleteAllItems()
|
boolean |
deleteColumn(int col)
|
boolean |
deleteItem(int item)
|
void |
editLabel(int item)
|
boolean |
ensureVisible(int item)
|
int |
findItem(int start,
int data)
|
int |
findItem(int start,
Point pt,
int direction)
|
int |
findItem(int start,
java.lang.String str)
|
int |
findItem(int start,
java.lang.String str,
boolean partial)
|
static VisualAttributes |
getClassDefaultAttributes()
|
static VisualAttributes |
getClassDefaultAttributes(int variant)
|
ListItem |
getColumn(int col)
|
int |
getColumnCount()
|
int |
getColumnWidth(int col)
|
int |
getCountPerPage()
|
ImageList |
getImageList(int which)
|
ListItem |
getItem(int itemId)
|
ListItem |
getItem(int itemId,
int col)
|
Colour |
getItemBackgroundColour(int item)
|
int |
getItemCount()
|
int |
getItemData(int item)
|
Font |
getItemFont(int item)
|
Point |
getItemPosition(int item)
|
Rect |
getItemRect(int item)
|
Rect |
getItemRect(int item,
int code)
|
int |
getItemState(int item,
int stateMask)
|
java.lang.String |
getItemText(int item)
|
Colour |
getItemTextColour(int item)
|
int |
getNextItem(int item)
|
int |
getNextItem(int item,
int geometry)
|
int |
getNextItem(int item,
int geometry,
int state)
|
int |
getSelectedItemCount()
|
Colour |
getTextColour()
|
int |
getTopItem()
|
Rect |
getViewRect()
|
int |
hitTest(Point point,
int[] flags)
|
boolean |
inReportView()
|
int |
insertColumn(int col,
ListItem info)
|
int |
insertColumn(int col,
java.lang.String heading)
|
int |
insertColumn(int col,
java.lang.String heading,
int format)
|
int |
insertColumn(int col,
java.lang.String heading,
int format,
int width)
|
int |
insertItem(int index,
int imageIndex)
|
int |
insertItem(int index,
java.lang.String label)
|
int |
insertItem(int index,
java.lang.String label,
int imageIndex)
|
int |
insertItem(ListItem info)
|
boolean |
isVirtual()
|
void |
refreshItem(int item)
|
void |
refreshItems(int itemFrom,
int itemTo)
|
boolean |
scrollList(int dx,
int dy)
|
boolean |
setColumn(int col,
ListItem item)
|
boolean |
setColumnWidth(int col,
int width)
|
void |
setImageList(ImageList imageList,
int which)
|
int |
setItem(int index,
int col,
java.lang.String label)
|
int |
setItem(int index,
int col,
java.lang.String label,
int imageId)
|
boolean |
setItem(ListItem info)
|
void |
setItemBackgroundColour(int item,
Colour col)
|
boolean |
setItemColumnImage(int item,
int column,
int image)
|
void |
setItemCount(int count)
|
boolean |
setItemData(int item,
int data)
|
void |
setItemFont(int item,
Font f)
|
boolean |
setItemImage(int item,
int image)
|
boolean |
setItemImage(int item,
int image,
int selImage)
|
boolean |
setItemPosition(int item,
Point pos)
|
boolean |
setItemState(int item,
int state,
int stateMask)
|
void |
setItemText(int item,
java.lang.String str)
|
void |
setItemTextColour(int item,
Colour col)
|
void |
setSingleStyle(int style)
|
void |
setSingleStyle(int style,
boolean add)
|
void |
setTextColour(Colour col)
|
void |
setWindowStyleFlag(int style)
|
boolean |
sortItems(java.lang.String func,
java.lang.Object target)
|
void |
swigReleaseOwnership()
|
void |
swigTakeOwnership()
|
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, 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, 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LC_VRULES
public static final int LC_VRULES
- See Also:
- Constant Field Values
LC_HRULES
public static final int LC_HRULES
- See Also:
- Constant Field Values
LC_ICON
public static final int LC_ICON
- See Also:
- Constant Field Values
LC_SMALL_ICON
public static final int LC_SMALL_ICON
- See Also:
- Constant Field Values
LC_LIST
public static final int LC_LIST
- See Also:
- Constant Field Values
LC_REPORT
public static final int LC_REPORT
- See Also:
- Constant Field Values
LC_ALIGN_TOP
public static final int LC_ALIGN_TOP
- See Also:
- Constant Field Values
LC_ALIGN_LEFT
public static final int LC_ALIGN_LEFT
- See Also:
- Constant Field Values
LC_AUTOARRANGE
public static final int LC_AUTOARRANGE
- See Also:
- Constant Field Values
LC_VIRTUAL
public static final int LC_VIRTUAL
- See Also:
- Constant Field Values
LC_EDIT_LABELS
public static final int LC_EDIT_LABELS
- See Also:
- Constant Field Values
LC_NO_HEADER
public static final int LC_NO_HEADER
- See Also:
- Constant Field Values
LC_NO_SORT_HEADER
public static final int LC_NO_SORT_HEADER
- See Also:
- Constant Field Values
LC_SINGLE_SEL
public static final int LC_SINGLE_SEL
- See Also:
- Constant Field Values
LC_SORT_ASCENDING
public static final int LC_SORT_ASCENDING
- See Also:
- Constant Field Values
LC_SORT_DESCENDING
public static final int LC_SORT_DESCENDING
- See Also:
- Constant Field Values
LC_MASK_TYPE
public static final int LC_MASK_TYPE
- See Also:
- Constant Field Values
LC_MASK_ALIGN
public static final int LC_MASK_ALIGN
- See Also:
- Constant Field Values
LC_MASK_SORT
public static final int LC_MASK_SORT
- See Also:
- Constant Field Values
LC_USER_TEXT
public static final int LC_USER_TEXT
- See Also:
- Constant Field Values
LIST_MASK_STATE
public static final int LIST_MASK_STATE
- See Also:
- Constant Field Values
LIST_MASK_TEXT
public static final int LIST_MASK_TEXT
- See Also:
- Constant Field Values
LIST_MASK_IMAGE
public static final int LIST_MASK_IMAGE
- See Also:
- Constant Field Values
LIST_MASK_DATA
public static final int LIST_MASK_DATA
- See Also:
- Constant Field Values
LIST_SET_ITEM
public static final int LIST_SET_ITEM
- See Also:
- Constant Field Values
LIST_MASK_WIDTH
public static final int LIST_MASK_WIDTH
- See Also:
- Constant Field Values
LIST_MASK_FORMAT
public static final int LIST_MASK_FORMAT
- See Also:
- Constant Field Values
LIST_STATE_DONTCARE
public static final int LIST_STATE_DONTCARE
- See Also:
- Constant Field Values
LIST_STATE_DROPHILITED
public static final int LIST_STATE_DROPHILITED
- See Also:
- Constant Field Values
LIST_STATE_FOCUSED
public static final int LIST_STATE_FOCUSED
- See Also:
- Constant Field Values
LIST_STATE_SELECTED
public static final int LIST_STATE_SELECTED
- See Also:
- Constant Field Values
LIST_STATE_CUT
public static final int LIST_STATE_CUT
- See Also:
- Constant Field Values
LIST_STATE_DISABLED
public static final int LIST_STATE_DISABLED
- See Also:
- Constant Field Values
LIST_STATE_FILTERED
public static final int LIST_STATE_FILTERED
- See Also:
- Constant Field Values
LIST_STATE_INUSE
public static final int LIST_STATE_INUSE
- See Also:
- Constant Field Values
LIST_STATE_PICKED
public static final int LIST_STATE_PICKED
- See Also:
- Constant Field Values
LIST_STATE_SOURCE
public static final int LIST_STATE_SOURCE
- See Also:
- Constant Field Values
LIST_HITTEST_ABOVE
public static final int LIST_HITTEST_ABOVE
- See Also:
- Constant Field Values
LIST_HITTEST_BELOW
public static final int LIST_HITTEST_BELOW
- See Also:
- Constant Field Values
LIST_HITTEST_NOWHERE
public static final int LIST_HITTEST_NOWHERE
- See Also:
- Constant Field Values
LIST_HITTEST_ONITEMICON
public static final int LIST_HITTEST_ONITEMICON
- See Also:
- Constant Field Values
LIST_HITTEST_ONITEMLABEL
public static final int LIST_HITTEST_ONITEMLABEL
- See Also:
- Constant Field Values
LIST_HITTEST_ONITEMRIGHT
public static final int LIST_HITTEST_ONITEMRIGHT
- See Also:
- Constant Field Values
LIST_HITTEST_ONITEMSTATEICON
public static final int LIST_HITTEST_ONITEMSTATEICON
- See Also:
- Constant Field Values
LIST_HITTEST_TOLEFT
public static final int LIST_HITTEST_TOLEFT
- See Also:
- Constant Field Values
LIST_HITTEST_TORIGHT
public static final int LIST_HITTEST_TORIGHT
- See Also:
- Constant Field Values
LIST_HITTEST_ONITEM
public static final int LIST_HITTEST_ONITEM
- See Also:
- Constant Field Values
LIST_NEXT_ABOVE
public static final int LIST_NEXT_ABOVE
- See Also:
- Constant Field Values
LIST_NEXT_ALL
public static final int LIST_NEXT_ALL
- See Also:
- Constant Field Values
LIST_NEXT_BELOW
public static final int LIST_NEXT_BELOW
- See Also:
- Constant Field Values
LIST_NEXT_LEFT
public static final int LIST_NEXT_LEFT
- See Also:
- Constant Field Values
LIST_NEXT_RIGHT
public static final int LIST_NEXT_RIGHT
- See Also:
- Constant Field Values
LIST_ALIGN_DEFAULT
public static final int LIST_ALIGN_DEFAULT
- See Also:
- Constant Field Values
LIST_ALIGN_LEFT
public static final int LIST_ALIGN_LEFT
- See Also:
- Constant Field Values
LIST_ALIGN_TOP
public static final int LIST_ALIGN_TOP
- See Also:
- Constant Field Values
LIST_ALIGN_SNAP_TO_GRID
public static final int LIST_ALIGN_SNAP_TO_GRID
- See Also:
- Constant Field Values
LIST_AUTOSIZE
public static final int LIST_AUTOSIZE
- See Also:
- Constant Field Values
LIST_AUTOSIZE_USEHEADER
public static final int LIST_AUTOSIZE_USEHEADER
- See Also:
- Constant Field Values
LIST_RECT_BOUNDS
public static final int LIST_RECT_BOUNDS
- See Also:
- Constant Field Values
LIST_RECT_ICON
public static final int LIST_RECT_ICON
- See Also:
- Constant Field Values
LIST_RECT_LABEL
public static final int LIST_RECT_LABEL
- See Also:
- Constant Field Values
LIST_FIND_UP
public static final int LIST_FIND_UP
- See Also:
- Constant Field Values
LIST_FIND_DOWN
public static final int LIST_FIND_DOWN
- See Also:
- Constant Field Values
LIST_FIND_LEFT
public static final int LIST_FIND_LEFT
- See Also:
- Constant Field Values
LIST_FIND_RIGHT
public static final int LIST_FIND_RIGHT
- See Also:
- Constant Field Values
ListCtrl
public ListCtrl()
ListCtrl
public ListCtrl(Window parent,
int winid,
Point pos,
Size size,
int style,
Validator validator,
java.lang.String name)
ListCtrl
public ListCtrl(Window parent,
int winid,
Point pos,
Size size,
int style,
Validator validator)
ListCtrl
public ListCtrl(Window parent,
int winid,
Point pos,
Size size,
int style)
ListCtrl
public ListCtrl(Window parent,
int winid,
Point pos,
Size size)
ListCtrl
public ListCtrl(Window parent,
int winid,
Point pos)
ListCtrl
public ListCtrl(Window parent,
int winid)
delete
public void delete()
- Overrides:
delete
in class Control
swigReleaseOwnership
public void swigReleaseOwnership()
- Overrides:
swigReleaseOwnership
in class Window
swigTakeOwnership
public void swigTakeOwnership()
- Overrides:
swigTakeOwnership
in class Window
getColumn
public ListItem getColumn(int col)
setColumn
public boolean setColumn(int col,
ListItem item)
getColumnWidth
public int getColumnWidth(int col)
setColumnWidth
public boolean setColumnWidth(int col,
int width)
getCountPerPage
public int getCountPerPage()
getViewRect
public Rect getViewRect()
getItem
public ListItem getItem(int itemId,
int col)
getItem
public ListItem getItem(int itemId)
setItem
public boolean setItem(ListItem info)
setItem
public int setItem(int index,
int col,
java.lang.String label,
int imageId)
setItem
public int setItem(int index,
int col,
java.lang.String label)
getItemState
public int getItemState(int item,
int stateMask)
setItemState
public boolean setItemState(int item,
int state,
int stateMask)
setItemImage
public boolean setItemImage(int item,
int image,
int selImage)
setItemImage
public boolean setItemImage(int item,
int image)
setItemColumnImage
public boolean setItemColumnImage(int item,
int column,
int image)
getItemText
public java.lang.String getItemText(int item)
setItemText
public void setItemText(int item,
java.lang.String str)
getItemData
public int getItemData(int item)
setItemData
public boolean setItemData(int item,
int data)
getItemRect
public Rect getItemRect(int item,
int code)
getItemRect
public Rect getItemRect(int item)
getItemPosition
public Point getItemPosition(int item)
setItemPosition
public boolean setItemPosition(int item,
Point pos)
getItemCount
public int getItemCount()
getColumnCount
public int getColumnCount()
setItemTextColour
public void setItemTextColour(int item,
Colour col)
getItemTextColour
public Colour getItemTextColour(int item)
setItemBackgroundColour
public void setItemBackgroundColour(int item,
Colour col)
getItemBackgroundColour
public Colour getItemBackgroundColour(int item)
setItemFont
public void setItemFont(int item,
Font f)
getItemFont
public Font getItemFont(int item)
getSelectedItemCount
public int getSelectedItemCount()
getTextColour
public Colour getTextColour()
setTextColour
public void setTextColour(Colour col)
getTopItem
public int getTopItem()
setSingleStyle
public void setSingleStyle(int style,
boolean add)
setSingleStyle
public void setSingleStyle(int style)
setWindowStyleFlag
public void setWindowStyleFlag(int style)
- Overrides:
setWindowStyleFlag
in class Window
getNextItem
public int getNextItem(int item,
int geometry,
int state)
getNextItem
public int getNextItem(int item,
int geometry)
getNextItem
public int getNextItem(int item)
getImageList
public ImageList getImageList(int which)
setImageList
public void setImageList(ImageList imageList,
int which)
assignImageList
public void assignImageList(ImageList imageList,
int which)
arrange
public boolean arrange(int flag)
arrange
public boolean arrange()
clearAll
public void clearAll()
deleteItem
public boolean deleteItem(int item)
deleteAllItems
public boolean deleteAllItems()
deleteAllColumns
public boolean deleteAllColumns()
deleteColumn
public boolean deleteColumn(int col)
setItemCount
public void setItemCount(int count)
editLabel
public void editLabel(int item)
ensureVisible
public boolean ensureVisible(int item)
findItem
public int findItem(int start,
java.lang.String str,
boolean partial)
findItem
public int findItem(int start,
java.lang.String str)
findItem
public int findItem(int start,
int data)
findItem
public int findItem(int start,
Point pt,
int direction)
hitTest
public int hitTest(Point point,
int[] flags)
insertItem
public int insertItem(ListItem info)
insertItem
public int insertItem(int index,
java.lang.String label)
insertItem
public int insertItem(int index,
int imageIndex)
insertItem
public int insertItem(int index,
java.lang.String label,
int imageIndex)
insertColumn
public int insertColumn(int col,
ListItem info)
insertColumn
public int insertColumn(int col,
java.lang.String heading,
int format,
int width)
insertColumn
public int insertColumn(int col,
java.lang.String heading,
int format)
insertColumn
public int insertColumn(int col,
java.lang.String heading)
scrollList
public boolean scrollList(int dx,
int dy)
sortItems
public boolean sortItems(java.lang.String func,
java.lang.Object target)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
inReportView
public boolean inReportView()
isVirtual
public boolean isVirtual()
refreshItem
public void refreshItem(int item)
refreshItems
public void refreshItems(int itemFrom,
int itemTo)
getClassDefaultAttributes
public static VisualAttributes getClassDefaultAttributes(int variant)
getClassDefaultAttributes
public static VisualAttributes getClassDefaultAttributes()
© 2006 Amit G Mendapara.