danger.ui
Class StaticTextBox
java.lang.Object
|
+--danger.app.Listener
|
+--danger.ui.View
|
+--danger.ui.Container
|
+--danger.ui.Control
|
+--danger.ui.StaticTextBox
- public class StaticTextBox
- extends Control
| Methods inherited from class danger.ui.Control |
drawFocusBox, drawIdleBox, drawIdleBox, getEvent, getEventListener, getEventType, getHasBorder, getString, getTitle, getValue, sendEvent, setEvent, setEvent, setEvent, setEvent, setEvent, setEventListener, setTitle, setValue |
| Methods inherited from class danger.ui.Container |
addChild, addChild, addChildAt, advanceFocus, childCount, childIsOnScreen, disable, enable, eventKeyDown, eventKeyHeld, eventKeyRepeat, eventPeriodicPulse, eventShortcut, eventWidgetDown, eventWidgetHeld, getBottomChild, getChildAt, getChildIndex, getChildWithID, getDescendantWithID, getFirstChild, getFirstFocusableChild, getFocusedChild, getLastChild, getLastFocusableChild, hideAllChildren, loseFocus, moveChildToIndex, paintChildren, receiveEvent, reflowChildren, removeAllChildren, removeChild, reverseFocus, setFocusedChild, setFocusedChild, setWindow, showAllChildren, snapToChildren, takeFocus |
| Methods inherited from class danger.ui.View |
clear, copyStyle, getAcceptFocus, getBottom, getBounds, getBounds, getFrame, getFrame, getHeight, getInterestingRect, getInterestingRect, getLeft, getOrigin, getOrigin, getOriginX, getOriginY, getParent, getRight, getSibling, getStyle, getStyleColor, getStyleFont, getTop, getWidth, getWindow, globalToLocal, hide, invalidate, invalidate, invalidate, isEnabled, isFocusable, isFocused, isOnScreen, isTransparent, isVisible, keepRectInView, localToGlobal, localToGlobal, localToWindow, moveBy, offsetOrigin, offsetOrigin, onAddedToParent, onDecoded, onPeriodicPulse, onRemovedFromParent, onStyleChanged, onWindowPaint, receiveEventInternal, resetOrigin, sendEventToWindow, setBackgroundColor, setBottom, setDebugBounds, setEnabled, setFrame, setHeight, setKeyedValue, setLeft, setOrigin, setOrigin, setPosition, setRight, setStyle, setStyleColor, setStyleFont, setStyleFrameColor, setTop, setTransparent, setVisible, setWidth, shouldDropEvent, show, styleIsDefault, willFocusWithin, windowToLocal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticTextBox
public StaticTextBox()
StaticTextBox
public StaticTextBox(java.lang.String inLabel)
disableFocus
public void disableFocus()
eventWidgetUp
public boolean eventWidgetUp(int inWhichWidget,
Event event)
- Description copied from class:
Container
- Handle the release of a device widget
- Overrides:
eventWidgetUp in class Container
- Following copied from class:
danger.ui.Container
- Parameters:
inWidget - the widget that went down- Returns:
- whether or not the event was consumed
eventKeyUp
public boolean eventKeyUp(char inChar,
Event event)
- Description copied from class:
Container
- Processes key releases directed at this container.
- Overrides:
eventKeyUp in class Container
- Following copied from class:
danger.ui.Container
- Parameters:
c - the character being released.
setAcceptFocus
public void setAcceptFocus(boolean inCanTakeFocus)
- Overrides:
setAcceptFocus in class View
getBackgroundColor
public int getBackgroundColor()
- Overrides:
getBackgroundColor in class View
justifyLeft
public void justifyLeft()
justifyCenter
public void justifyCenter()
justifyRight
public void justifyRight()
scrollDown
public boolean scrollDown()
scrollUp
public boolean scrollUp()
drawFrame
protected void drawFrame(Pen p,
Rect dim)
paint
public void paint(Pen p)
- Description copied from class:
View
- Draw the contents of this View. This method is called by the graphics
system when the View needs to be repainted. A Pen will be provided which
is appropriately clipped and translated for drawing on this View.
- Overrides:
paint in class Container
clear
public void clear()
setText
public void setText(java.lang.String inText)
getText
public java.lang.String getText()
setAutoResize
public void setAutoResize(boolean inAutoResize)
getAutoResize
public boolean getAutoResize()
newLineBreaker
protected LineBreaker newLineBreaker()
setWantQuoteHack
public void setWantQuoteHack(boolean opt)
setHasBorder
public void setHasBorder(boolean inHasBorder)
- Overrides:
setHasBorder in class Control
setFont
public void setFont(Font inFont)
setSize
public void setSize(int width,
int height)
- Resize the block of text.
The parent will Invalidate() as a side-effect if the View
is visible. The number of displayable lines will also be
recalculated based on the new height.
- Overrides:
setSize in class View
Danger Confidential. Copyright © 2000-2003, Danger Inc.