com.tekann.ui
Class Toolbar

java.lang.Object
  extended by totalcross.ui.gfx.GfxSurface
      extended by totalcross.ui.Control
          extended by totalcross.ui.Container
              extended by com.tekann.ui.Toolbar

public class Toolbar
extends totalcross.ui.Container

Toolbar control.

Author:
Evandro Rathke

Field Summary
static byte HORIZONTAL
          Horizontal orientation.
static byte VERTICAL
          Vertical orientation.
 
Fields inherited from class totalcross.ui.Container
alwaysEraseBackground, BORDER_LOWERED, BORDER_NONE, BORDER_RAISED, BORDER_SIMPLE, nextTransitionEffect, tabOrder, TRANSITION_CLOSE, TRANSITION_NONE, TRANSITION_OPEN, transitionEffect
 
Fields inherited from class totalcross.ui.Control
AFTER, appId, appObj, BEFORE, BOTTOM, BOTTOM_OF, CENTER, CENTER_OF, clearValueInt, clearValueStr, enableUpdateScreen, FILL, FIT, fm, focusOnPenDown, focusTraversable, KEEP, LEFT, PREFERRED, RANGE, RIGHT, RIGHT_OF, SAME, TOP, transparentBackground, WILL_RESIZE
 
Constructor Summary
Toolbar(byte horientation)
           
Toolbar(byte horientation, int insideGap)
           
 
Method Summary
 totalcross.ui.Button addButton(totalcross.ui.image.Image image)
           
 totalcross.ui.Button addButton(java.lang.String text)
           
 totalcross.ui.Button addButton(java.lang.String text, totalcross.ui.image.Image image, int textPosition, int gap)
           
 void addTool(totalcross.ui.Control control)
           
 int getPreferredHeight()
           
 int getPreferredWidth()
           
 
Methods inherited from class totalcross.ui.Container
add, add, add, add, add, broadcastEvent, clear, findChild, findNearestChild, findNextFocusControl, getBorderStyle, getChildren, getClientRect, getFocusableControls, getInsets, incLastX, incLastY, initUI, onPaint, paintChildren, remove, removeAll, resize, resizeHeight, resizeWidth, setBorderStyle, setEnabled, setHighlighting, setInsets, swapToTopmostWindow
 
Methods inherited from class totalcross.ui.Control
_onEvent, addFocusListener, addGridListener, addHighlightListener, addKeyListener, addPenListener, addPressListener, addTimer, addTimer, addTimerListener, addWindowListener, changeHighlighted, contains, getAbsoluteRect, getBackColor, getEventListeners, getFont, getForeColor, getGraphics, getHeight, getNext, getParent, getParentWindow, getPos, getPrev, getRect, getSize, getWidth, getX, getX2, getY, getY2, handleGeographicalFocusChangeKeys, isDisplayed, isEnabled, isInsideOrNear, isVisible, isVisibleAndInside, onEvent, postEvent, postPressedEvent, removeFocusListener, removeGridListener, removeHighlightListener, removeKeyListener, removePenListener, removePressListener, removeTimer, removeTimerListener, removeWindowListener, repaint, repaintNow, reposition, requestFocus, resetSetPositions, setBackColor, setBackForeColors, setFocusLess, setFont, setForeColor, setRect, setRect, setRect, setRect, setVisible, translateFromOrigin, uiStyleChanged, updateScreen
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HORIZONTAL

public static final byte HORIZONTAL
Horizontal orientation.

See Also:
Constant Field Values

VERTICAL

public static final byte VERTICAL
Vertical orientation.

See Also:
Constant Field Values
Constructor Detail

Toolbar

public Toolbar(byte horientation)

Toolbar

public Toolbar(byte horientation,
               int insideGap)
Method Detail

addButton

public totalcross.ui.Button addButton(totalcross.ui.image.Image image)

addButton

public totalcross.ui.Button addButton(java.lang.String text)

addButton

public totalcross.ui.Button addButton(java.lang.String text,
                                      totalcross.ui.image.Image image,
                                      int textPosition,
                                      int gap)

addTool

public void addTool(totalcross.ui.Control control)

getPreferredHeight

public int getPreferredHeight()
Overrides:
getPreferredHeight in class totalcross.ui.Control

getPreferredWidth

public int getPreferredWidth()
Overrides:
getPreferredWidth in class totalcross.ui.Control