Package totalcross.ui.dialog.keyboard
Class Builder
- java.lang.Object
-
- totalcross.ui.gfx.GfxSurface
-
- totalcross.ui.Control
-
- totalcross.ui.dialog.keyboard.Builder
-
public class Builder extends Control
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuilder.EnumTipoBotao-
Nested classes/interfaces inherited from class totalcross.ui.Control
Control.TranslucentShape
-
-
Field Summary
Fields Modifier and Type Field Description static intAPP_BACK_COLORstatic intAPP_BUTTON_COLORstatic intAPP_FORE_COLORstatic intAPP_SEC_FORE_COLORstatic Builder.EnumTipoBotaoBTN_ERRORstatic Builder.EnumTipoBotaoBTN_FORMstatic Builder.EnumTipoBotaoBTN_REGULARstatic Builder.EnumTipoBotaoBTN_SECUNDARYstatic Builder.EnumTipoBotaoBTN_SPOTLIGHTstatic intSPACE_TO_BORDERstatic intTEXT_HIGHLIGHT_COLORstatic intTEXT_REQUIRED_COLOR-
Fields inherited from class totalcross.ui.Control
AFTER, alphaValue, appId, appObj, asContainer, asWindow, backColor, BEFORE, BOTTOM, BOTTOM_OF, BRIGHTER_BACKGROUND, callListenersOnAllTargets, CENTER, CENTER_OF, clearValueInt, clearValueStr, DARKER_BACKGROUND, effect, enableUpdateScreen, esce, eventsEnabled, FILL, fillColor, FIT, fm, fmH, focusHandler, focusLess, focusOnPenDown, focusTraversable, font, FONTSIZE, foreColor, height, ignoreInsets, isHighlighting, isTablet, KEEP, keepDisabled, keepEnabled, LEFT, nextTabControl, offscreen, offscreen0, onEventFirst, parent, PARENTSIZE, PARENTSIZEMAX, PARENTSIZEMIN, PREFERRED, RANGE, repositionAllowed, RIGHT, RIGHT_OF, SAME, SCREENSIZE, SCREENSIZEMAX, SCREENSIZEMIN, setFont, setH, setRel, setW, setX, setY, tempW, textShadowColor, TOP, translucentShape, transparentBackground, uiAdjustmentsBasedOnFontHeightIsSupported, uiAndroid, UICONST, uiFlat, uiHolo, uiMaterial, uiVista, visible, width, WILL_RESIZE, x, y
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ButtoncreateButton(java.lang.String text)Creates a regular Buttonstatic ButtoncreateButton(java.lang.String text, Builder.EnumTipoBotao status)Creates a button displaying the given text.static ButtoncreateButton(java.lang.String msg, Image img)static ButtoncreateButton(java.lang.String text, Image img, int textPosition, int gap, Builder.EnumTipoBotao status)static voidsetDefaultColor(int APP_FORE_COLOR, int APP_BACK_COLOR, int APP_SEC_FORE_COLOR, int APP_BUTTON_COLOR)-
Methods inherited from class totalcross.ui.Control
_onEvent, addEnabledStateListener, addFocusListener, addGridListener, addHighlightListener, addKeyListener, addListContainerListener, addMouseListener, addMultiTouchListener, addPenListener, addPressListener, addPushNotificationListener, addTimer, addTimer, addTimerListener, addWindowListener, bringToFront, changeHighlighted, clear, contains, drawTranslucentBackground, getAbsoluteRect, getBackColor, getEffectH, getEffectW, getEffectX, getEffectY, getEventListeners, getFont, getForeColor, getGap, getGraphics, getHeight, getNext, getParent, getParentWindow, getPos, getPreferredHeight, getPreferredWidth, getPressedEvent, getPrev, getRect, getSize, getTextShadowColor, getWidth, getX, getX2, getY, getY2, hadParentScrolled, handleGeographicalFocusChangeKeys, hasFocus, internalSetEnabled, intXYWH, isActionEvent, isChildOf, isDisplayed, isEnabled, isInsideOrNear, isObscured, isTopMost, isVisible, isVisibleAndInside, onBoundsChanged, onColorsChanged, onEvent, onFontChanged, onPaint, onWindowPaintFinished, post, postEvent, postPressedEvent, releaseScreenShot, removeEnabledStateListener, removeFocusListener, removeGridListener, removeHighlightListener, removeKeyListener, removeListContainerListener, removeMouseListener, removeMultiTouchListener, removePenListener, removePressListener, removePushNotificationListener, removeTimer, removeTimerListener, removeWindowListener, repaint, repaintNow, reposition, reposition, repositionChildren, requestFocus, resetSetPositions, safeRepaintNow, safeUpdateScreen, sendToBack, setBackColor, setBackForeColors, setEnabled, setFocusLess, setFont, setForeColor, setRect, setRect, setRect, setRect, setSet, setTextShadowColor, setTranslucent, setVisible, showTip, takeInitialScreenShot, takeScreenShot, translateFromOrigin, uiStyleChanged, updateScreen, updateTemporary, willOpenKeyboard
-
-
-
-
Field Detail
-
BTN_FORM
public static final Builder.EnumTipoBotao BTN_FORM
-
BTN_SPOTLIGHT
public static final Builder.EnumTipoBotao BTN_SPOTLIGHT
-
BTN_REGULAR
public static final Builder.EnumTipoBotao BTN_REGULAR
-
BTN_SECUNDARY
public static final Builder.EnumTipoBotao BTN_SECUNDARY
-
BTN_ERROR
public static final Builder.EnumTipoBotao BTN_ERROR
-
TEXT_HIGHLIGHT_COLOR
public static int TEXT_HIGHLIGHT_COLOR
-
TEXT_REQUIRED_COLOR
public static int TEXT_REQUIRED_COLOR
-
APP_FORE_COLOR
public static int APP_FORE_COLOR
-
APP_BACK_COLOR
public static int APP_BACK_COLOR
-
APP_SEC_FORE_COLOR
public static int APP_SEC_FORE_COLOR
-
APP_BUTTON_COLOR
public static int APP_BUTTON_COLOR
-
SPACE_TO_BORDER
public static final int SPACE_TO_BORDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDefaultColor
public static void setDefaultColor(int APP_FORE_COLOR, int APP_BACK_COLOR, int APP_SEC_FORE_COLOR, int APP_BUTTON_COLOR)
-
createButton
public static Button createButton(java.lang.String text, Image img, int textPosition, int gap, Builder.EnumTipoBotao status)
-
createButton
public static Button createButton(java.lang.String text)
Creates a regular Button
-
createButton
public static Button createButton(java.lang.String text, Builder.EnumTipoBotao status)
Creates a button displaying the given text.
-
-