jwx!
v0.0.2


wx
Class ToolBar

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

public class ToolBar
extends Control


Field Summary
static int TB_3DBUTTONS
           
static int TB_DOCKABLE
           
static int TB_FLAT
           
static int TB_HORIZONTAL
           
static int TB_HORZ_LAYOUT
           
static int TB_HORZ_TEXT
           
static int TB_NOALIGN
           
static int TB_NODIVIDER
           
static int TB_NOICONS
           
static int TB_TEXT
           
static int TB_VERTICAL
           
static int TOOL_STYLE_BUTTON
           
static int TOOL_STYLE_CONTROL
           
static int TOOL_STYLE_SEPARATOR
           
 
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
ToolBar()
           
 
Method Summary
 ToolBarTool addCheckTool(int toolId, java.lang.String label, Bitmap bitmap)
           
 ToolBarTool addCheckTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled)
           
 ToolBarTool addCheckTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, java.lang.String shortHelp)
           
 ToolBarTool addCheckTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, java.lang.String shortHelp, java.lang.String longHelp)
           
 ToolBarTool addCheckTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, java.lang.String shortHelp, java.lang.String longHelp, java.lang.Object clientData)
           
 ToolBarTool addControl(Control control)
           
 ToolBarTool addRadioTool(int toolId, java.lang.String label, Bitmap bitmap)
           
 ToolBarTool addRadioTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled)
           
 ToolBarTool addRadioTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, java.lang.String shortHelp)
           
 ToolBarTool addRadioTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, java.lang.String shortHelp, java.lang.String longHelp)
           
 ToolBarTool addRadioTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, java.lang.String shortHelp, java.lang.String longHelp, java.lang.Object clientData)
           
 ToolBarTool addSeparator()
           
 ToolBarTool addTool(int toolId, java.lang.String label, Bitmap bitmap)
           
 ToolBarTool addTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled)
           
 ToolBarTool addTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, int kind)
           
 ToolBarTool addTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, int kind, java.lang.String shortHelp)
           
 ToolBarTool addTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, int kind, java.lang.String shortHelp, java.lang.String longHelp)
           
 ToolBarTool addTool(int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, int kind, java.lang.String shortHelp, java.lang.String longHelp, java.lang.Object clientData)
           
 ToolBarTool addTool(int toolId, java.lang.String label, Bitmap bitmap, java.lang.String shortHelp)
           
 ToolBarTool addTool(int toolId, java.lang.String label, Bitmap bitmap, java.lang.String shortHelp, int kind)
           
 ToolBarTool addTool(ToolBarTool tool)
           
 void clearTools()
           
 void delete()
           
 boolean deleteTool(int toolId)
           
 boolean deleteToolByPos(int pos)
           
 void enableTool(int toolId, boolean enable)
           
 ToolBarTool findById(int toolId)
           
 Control findControl(int toolId)
           
 ToolBarTool findToolForPosition(int x, int y)
           
 int getMaxCols()
           
 int getMaxRows()
           
 Size getToolBitmapSize()
           
 java.lang.Object getToolClientData(int toolId)
           
 boolean getToolEnabled(int toolId)
           
 java.lang.String getToolLongHelp(int toolId)
           
 Size getToolMargins()
           
 int getToolPacking()
           
 int getToolPos(int id)
           
 int getToolsCount()
           
 int getToolSeparation()
           
 java.lang.String getToolShortHelp(int toolId)
           
 Size getToolSize()
           
 boolean getToolState(int toolId)
           
 ToolBarTool insertControl(int pos, Control control)
           
 ToolBarTool insertSeparator(int pos)
           
 ToolBarTool insertTool(int pos, int toolId, java.lang.String label, Bitmap bitmap)
           
 ToolBarTool insertTool(int pos, int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled)
           
 ToolBarTool insertTool(int pos, int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, int kind)
           
 ToolBarTool insertTool(int pos, int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, int kind, java.lang.String shortHelp)
           
 ToolBarTool insertTool(int pos, int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, int kind, java.lang.String shortHelp, java.lang.String longHelp)
           
 ToolBarTool insertTool(int pos, int toolId, java.lang.String label, Bitmap bitmap, Bitmap bmpDisabled, int kind, java.lang.String shortHelp, java.lang.String longHelp, java.lang.Object clientData)
           
 ToolBarTool insertTool(int pos, ToolBarTool tool)
           
 boolean isVertical()
           
 boolean realize()
           
 ToolBarTool removeTool(int toolId)
           
 void setMargins(int x, int y)
           
 void setMaxRowsCols(int rows, int cols)
           
 void setRows(int nRows)
           
 void setToggle(int toolId, boolean toggle)
           
 void setToolBitmapSize(Size size)
           
 void setToolClientData(int toolId, java.lang.Object clientData)
           
 void setToolLongHelp(int toolId, java.lang.String helpString)
           
 void setToolPacking(int packing)
           
 void setToolSeparation(int separation)
           
 void setToolShortHelp(int toolId, java.lang.String helpString)
           
 void toggleTool(int toolId, boolean toggle)
           
 
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

TOOL_STYLE_BUTTON

public static final int TOOL_STYLE_BUTTON
See Also:
Constant Field Values

TOOL_STYLE_SEPARATOR

public static final int TOOL_STYLE_SEPARATOR
See Also:
Constant Field Values

TOOL_STYLE_CONTROL

public static final int TOOL_STYLE_CONTROL
See Also:
Constant Field Values

TB_HORIZONTAL

public static final int TB_HORIZONTAL
See Also:
Constant Field Values

TB_VERTICAL

public static final int TB_VERTICAL
See Also:
Constant Field Values

TB_3DBUTTONS

public static final int TB_3DBUTTONS
See Also:
Constant Field Values

TB_FLAT

public static final int TB_FLAT
See Also:
Constant Field Values

TB_DOCKABLE

public static final int TB_DOCKABLE
See Also:
Constant Field Values

TB_NOICONS

public static final int TB_NOICONS
See Also:
Constant Field Values

TB_TEXT

public static final int TB_TEXT
See Also:
Constant Field Values

TB_NODIVIDER

public static final int TB_NODIVIDER
See Also:
Constant Field Values

TB_NOALIGN

public static final int TB_NOALIGN
See Also:
Constant Field Values

TB_HORZ_LAYOUT

public static final int TB_HORZ_LAYOUT
See Also:
Constant Field Values

TB_HORZ_TEXT

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

ToolBar

public ToolBar()
Method Detail

delete

public void delete()
Overrides:
delete in class Control

addTool

public ToolBarTool addTool(int toolId,
                           java.lang.String label,
                           Bitmap bitmap,
                           Bitmap bmpDisabled,
                           int kind,
                           java.lang.String shortHelp,
                           java.lang.String longHelp,
                           java.lang.Object clientData)

addTool

public ToolBarTool addTool(int toolId,
                           java.lang.String label,
                           Bitmap bitmap,
                           Bitmap bmpDisabled,
                           int kind,
                           java.lang.String shortHelp,
                           java.lang.String longHelp)

addTool

public ToolBarTool addTool(int toolId,
                           java.lang.String label,
                           Bitmap bitmap,
                           Bitmap bmpDisabled,
                           int kind,
                           java.lang.String shortHelp)

addTool

public ToolBarTool addTool(int toolId,
                           java.lang.String label,
                           Bitmap bitmap,
                           Bitmap bmpDisabled,
                           int kind)

addTool

public ToolBarTool addTool(int toolId,
                           java.lang.String label,
                           Bitmap bitmap,
                           Bitmap bmpDisabled)

addTool

public ToolBarTool addTool(int toolId,
                           java.lang.String label,
                           Bitmap bitmap,
                           java.lang.String shortHelp,
                           int kind)

addTool

public ToolBarTool addTool(int toolId,
                           java.lang.String label,
                           Bitmap bitmap,
                           java.lang.String shortHelp)

addTool

public ToolBarTool addTool(int toolId,
                           java.lang.String label,
                           Bitmap bitmap)

addCheckTool

public ToolBarTool addCheckTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap,
                                Bitmap bmpDisabled,
                                java.lang.String shortHelp,
                                java.lang.String longHelp,
                                java.lang.Object clientData)

addCheckTool

public ToolBarTool addCheckTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap,
                                Bitmap bmpDisabled,
                                java.lang.String shortHelp,
                                java.lang.String longHelp)

addCheckTool

public ToolBarTool addCheckTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap,
                                Bitmap bmpDisabled,
                                java.lang.String shortHelp)

addCheckTool

public ToolBarTool addCheckTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap,
                                Bitmap bmpDisabled)

addCheckTool

public ToolBarTool addCheckTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap)

addRadioTool

public ToolBarTool addRadioTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap,
                                Bitmap bmpDisabled,
                                java.lang.String shortHelp,
                                java.lang.String longHelp,
                                java.lang.Object clientData)

addRadioTool

public ToolBarTool addRadioTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap,
                                Bitmap bmpDisabled,
                                java.lang.String shortHelp,
                                java.lang.String longHelp)

addRadioTool

public ToolBarTool addRadioTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap,
                                Bitmap bmpDisabled,
                                java.lang.String shortHelp)

addRadioTool

public ToolBarTool addRadioTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap,
                                Bitmap bmpDisabled)

addRadioTool

public ToolBarTool addRadioTool(int toolId,
                                java.lang.String label,
                                Bitmap bitmap)

insertTool

public ToolBarTool insertTool(int pos,
                              int toolId,
                              java.lang.String label,
                              Bitmap bitmap,
                              Bitmap bmpDisabled,
                              int kind,
                              java.lang.String shortHelp,
                              java.lang.String longHelp,
                              java.lang.Object clientData)

insertTool

public ToolBarTool insertTool(int pos,
                              int toolId,
                              java.lang.String label,
                              Bitmap bitmap,
                              Bitmap bmpDisabled,
                              int kind,
                              java.lang.String shortHelp,
                              java.lang.String longHelp)

insertTool

public ToolBarTool insertTool(int pos,
                              int toolId,
                              java.lang.String label,
                              Bitmap bitmap,
                              Bitmap bmpDisabled,
                              int kind,
                              java.lang.String shortHelp)

insertTool

public ToolBarTool insertTool(int pos,
                              int toolId,
                              java.lang.String label,
                              Bitmap bitmap,
                              Bitmap bmpDisabled,
                              int kind)

insertTool

public ToolBarTool insertTool(int pos,
                              int toolId,
                              java.lang.String label,
                              Bitmap bitmap,
                              Bitmap bmpDisabled)

insertTool

public ToolBarTool insertTool(int pos,
                              int toolId,
                              java.lang.String label,
                              Bitmap bitmap)

addTool

public ToolBarTool addTool(ToolBarTool tool)

insertTool

public ToolBarTool insertTool(int pos,
                              ToolBarTool tool)

addControl

public ToolBarTool addControl(Control control)

insertControl

public ToolBarTool insertControl(int pos,
                                 Control control)

findControl

public Control findControl(int toolId)

addSeparator

public ToolBarTool addSeparator()

insertSeparator

public ToolBarTool insertSeparator(int pos)

removeTool

public ToolBarTool removeTool(int toolId)

deleteToolByPos

public boolean deleteToolByPos(int pos)

deleteTool

public boolean deleteTool(int toolId)

clearTools

public void clearTools()

realize

public boolean realize()

enableTool

public void enableTool(int toolId,
                       boolean enable)

toggleTool

public void toggleTool(int toolId,
                       boolean toggle)

setToggle

public void setToggle(int toolId,
                      boolean toggle)

getToolClientData

public java.lang.Object getToolClientData(int toolId)

setToolClientData

public void setToolClientData(int toolId,
                              java.lang.Object clientData)

getToolPos

public int getToolPos(int id)

getToolState

public boolean getToolState(int toolId)

getToolEnabled

public boolean getToolEnabled(int toolId)

setToolShortHelp

public void setToolShortHelp(int toolId,
                             java.lang.String helpString)

getToolShortHelp

public java.lang.String getToolShortHelp(int toolId)

setToolLongHelp

public void setToolLongHelp(int toolId,
                            java.lang.String helpString)

getToolLongHelp

public java.lang.String getToolLongHelp(int toolId)

setMargins

public void setMargins(int x,
                       int y)

setToolPacking

public void setToolPacking(int packing)

setToolSeparation

public void setToolSeparation(int separation)

getToolMargins

public Size getToolMargins()

getToolPacking

public int getToolPacking()

getToolSeparation

public int getToolSeparation()

setRows

public void setRows(int nRows)

setMaxRowsCols

public void setMaxRowsCols(int rows,
                           int cols)

getMaxRows

public int getMaxRows()

getMaxCols

public int getMaxCols()

setToolBitmapSize

public void setToolBitmapSize(Size size)

getToolBitmapSize

public Size getToolBitmapSize()

getToolSize

public Size getToolSize()

findToolForPosition

public ToolBarTool findToolForPosition(int x,
                                       int y)

findById

public ToolBarTool findById(int toolId)

isVertical

public boolean isVertical()

getToolsCount

public int getToolsCount()

jwx!
v0.0.2


© 2006 Amit G Mendapara.