|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--danger.app.Listener
|
+--danger.ui.View
|
+--danger.ui.Container
| Fields inherited from class danger.ui.View |
mOriginX, mOriginY, mStyle, STATE_CAN_FOCUS, STATE_DEBUG_BOUNDS, STATE_ENABLED, STATE_FOCUSED, STATE_TRANSPARENT, STATE_VISIBLE |
| Constructor Summary | |
Container()
|
|
Container(int left,
int top,
int right,
int bottom)
|
|
Container(Rect r)
|
|
| Method Summary | |
void |
addChild(View child)
Add a View as a child to this View. |
void |
addChild(View child,
int id)
|
void |
addChildAt(View child,
int index)
|
boolean |
advanceFocus()
Advances the focus of the current container to the next child view that can handle it. |
int |
childCount()
|
boolean |
childIsOnScreen(View child)
|
void |
disable()
|
void |
enable()
|
boolean |
eventKeyDown(char c,
Event event)
|
boolean |
eventKeyHeld(char c,
Event event)
|
boolean |
eventKeyRepeat(char c,
Event event)
|
boolean |
eventKeyUp(char c,
Event event)
Processes key releases directed at this container. |
boolean |
eventPeriodicPulse(int timestamp)
|
boolean |
eventShortcut(char inKey)
|
boolean |
eventWidgetDown(int inWidget,
Event event)
Handle the pressing of a device widget |
boolean |
eventWidgetHeld(int inWhichWidget,
Event event)
|
boolean |
eventWidgetUp(int inWidget,
Event event)
Handle the release of a device widget |
View |
getBottomChild()
Find the child view that has the lowest bottom bound |
View |
getChildAt(int n)
|
int |
getChildIndex(View v)
|
View |
getChildWithID(int inID)
|
View |
getDescendantWithID(int inID)
|
View |
getFirstChild()
Get the first child of this View. |
protected View |
getFirstFocusableChild()
|
View |
getFocusedChild()
|
View |
getLastChild()
Get the last child of this View. |
protected View |
getLastFocusableChild()
|
void |
hideAllChildren()
|
void |
loseFocus()
|
void |
moveChildToIndex(View child,
int index)
|
void |
paint(Pen pen)
Draw the contents of this View. |
void |
paintChildren(Pen pen)
|
boolean |
receiveEvent(Event e)
Entry point for event processing. |
void |
reflowChildren(View inBaseChild,
int inAmount)
|
void |
removeAllChildren()
|
void |
removeChild(View child)
Removes a child View from this View. |
boolean |
reverseFocus()
Reverses the focus of the current container to the previous child view that can handle it. |
void |
setFocusedChild(View inNewFocus)
|
void |
setFocusedChild(View newFocus,
boolean inFromAbove)
Sets the focus for the view container to a specific child object. |
void |
setWindow(Window inWindow)
|
void |
showAllChildren()
|
void |
snapToChildren(int inLeft,
int inTop,
int inRight,
int inBottom)
Reduces the size of this Container so that it exactly fits around its children with no extra space. |
void |
takeFocus(boolean inFromAbove)
|
| Methods inherited from class danger.app.Listener |
cancelEvents, sendEvent, sendEvent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Container()
public Container(Rect r)
public Container(int left,
int top,
int right,
int bottom)
| Method Detail |
public View getChildWithID(int inID)
public View getDescendantWithID(int inID)
public View getBottomChild()
ViewgetBottomChild in class Viewpublic View getFirstChild()
ViewgetFirstChild in class Viewpublic View getLastChild()
ViewgetLastChild in class Viewpublic View getChildAt(int n)
public int getChildIndex(View v)
public int childCount()
public void addChild(View child)
ViewaddChild in class View
public void addChild(View child,
int id)
public void addChildAt(View child,
int index)
public void removeChild(View child)
ViewremoveChild in class Viewpublic void removeAllChildren()
public void moveChildToIndex(View child,
int index)
public void showAllChildren()
public void hideAllChildren()
public void paint(Pen pen)
Viewpaint in class Viewpublic void paintChildren(Pen pen)
public boolean receiveEvent(Event e)
ListenerreceiveEvent in class Listener
public boolean eventWidgetDown(int inWidget,
Event event)
eventWidgetDown in class ViewinWidget - the widget that went up
public boolean eventWidgetUp(int inWidget,
Event event)
eventWidgetUp in class ViewinWidget - the widget that went down
public boolean eventWidgetHeld(int inWhichWidget,
Event event)
eventWidgetHeld in class Viewpublic boolean eventShortcut(char inKey)
eventShortcut in class View
public boolean eventKeyDown(char c,
Event event)
eventKeyDown in class View
public boolean eventKeyRepeat(char c,
Event event)
eventKeyRepeat in class View
public boolean eventKeyUp(char c,
Event event)
eventKeyUp in class Viewc - the character being released.
public boolean eventKeyHeld(char c,
Event event)
eventKeyHeld in class Viewpublic boolean eventPeriodicPulse(int timestamp)
eventPeriodicPulse in class Viewpublic View getFocusedChild()
getFocusedChild in class View
public void setFocusedChild(View newFocus,
boolean inFromAbove)
newFocus - the child which should assume focus.public void setWindow(Window inWindow)
setWindow in class Viewpublic void setFocusedChild(View inNewFocus)
public boolean advanceFocus()
public boolean reverseFocus()
public void reflowChildren(View inBaseChild,
int inAmount)
reflowChildren in class Viewpublic boolean childIsOnScreen(View child)
childIsOnScreen in class View
public void snapToChildren(int inLeft,
int inTop,
int inRight,
int inBottom)
inLeft - left margininTop - top margininRight - right margininBottom - bottom marginpublic void enable()
enable in class Viewpublic void disable()
disable in class Viewprotected View getFirstFocusableChild()
protected View getLastFocusableChild()
public void takeFocus(boolean inFromAbove)
takeFocus in class Viewpublic void loseFocus()
loseFocus in class View
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||