|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sony.smallapp.SmallAppWindow
public class SmallAppWindow
SmallAppWindow represents the window which renders the Small App content. It provides UI components such as a background, title area, drag handler, resize handler, close button, etc.
The SmallAppWindow instance is created automatically for the Small App,
and you can access the SmallAppWindow instance associated to your Small App
using SmallApplication.getWindow().
| Nested Class Summary | |
|---|---|
static class |
SmallAppWindow.Attributes
Attributes of a window. |
static interface |
SmallAppWindow.OnWindowFocusChangeListener
Interface definition for a callback to be invoked when the window focus is changed. |
static interface |
SmallAppWindow.OnWindowStateChangeListener
Interface definition for a callback to be invoked when the state of a window is changed. |
static class |
SmallAppWindow.WindowState
A state of a window. |
| Method Summary | |
|---|---|
SmallAppWindow.Attributes |
getAttributes()
Retrieve attributes for this window. |
SmallAppWindow.WindowState |
getWindowState()
Get a current window state. |
void |
setAttributes(SmallAppWindow.Attributes attr)
Set attributes to this window. |
void |
setBackgroundDrawable(android.graphics.drawable.Drawable drawable)
Change the background of this window to a custom Drawable. |
void |
setHeaderView(android.view.View view)
Set the view such as option menus to header area. |
void |
setOnWindowFocusChangeListener(SmallAppWindow.OnWindowFocusChangeListener l)
Register a callback to be invoked when the window focus is changed. |
void |
setOnWindowStateChangeListener(SmallAppWindow.OnWindowStateChangeListener l)
Register a callback to be invoked when the state of a window is changed. |
void |
setSoftInputMode(int mode)
Apply the soft input mode, as per android.view.WindowManager.LayoutParams.softInputMode. |
void |
setWindowState(SmallAppWindow.WindowState state)
Change a window state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final SmallAppWindow.Attributes getAttributes()
public void setAttributes(SmallAppWindow.Attributes attr)
attr - Attributes.public void setSoftInputMode(int mode)
mode - Mode specifying soft input mode for this window,
as per android.view.WindowManager.LayoutParams.softInputMode.public void setHeaderView(android.view.View view)
view - The desired view.public void setBackgroundDrawable(android.graphics.drawable.Drawable drawable)
SmallApplication#setContentView(int) should be placed.
drawable - The new window background.public void setOnWindowFocusChangeListener(SmallAppWindow.OnWindowFocusChangeListener l)
l - The callback that will runpublic void setOnWindowStateChangeListener(SmallAppWindow.OnWindowStateChangeListener l)
l - The callback that will runpublic void setWindowState(SmallAppWindow.WindowState state)
state - A state to be setpublic final SmallAppWindow.WindowState getWindowState()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||