com.xtremelabs.robolectric.view
Class TestWindow
java.lang.Object
android.view.Window
com.xtremelabs.robolectric.view.TestWindow
public class TestWindow
- extends android.view.Window
Nested classes/interfaces inherited from class android.view.Window |
android.view.Window.Callback |
Fields inherited from class android.view.Window |
DEFAULT_FEATURES, FEATURE_CONTEXT_MENU, FEATURE_CUSTOM_TITLE, FEATURE_INDETERMINATE_PROGRESS, FEATURE_LEFT_ICON, FEATURE_NO_TITLE, FEATURE_OPTIONS_PANEL, FEATURE_PROGRESS, FEATURE_RIGHT_ICON, ID_ANDROID_CONTENT, PROGRESS_END, PROGRESS_INDETERMINATE_OFF, PROGRESS_INDETERMINATE_ON, PROGRESS_SECONDARY_END, PROGRESS_SECONDARY_START, PROGRESS_START, PROGRESS_VISIBILITY_OFF, PROGRESS_VISIBILITY_ON |
Constructor Summary |
TestWindow(android.content.Context context)
|
Method Summary |
void |
addContentView(android.view.View view,
android.view.ViewGroup.LayoutParams params)
|
void |
addFlags(int flags)
|
void |
closeAllPanels()
|
void |
closePanel(int featureId)
|
android.view.View |
getCurrentFocus()
|
android.view.View |
getDecorView()
|
android.view.LayoutInflater |
getLayoutInflater()
|
int |
getVolumeControlStream()
|
boolean |
isFloating()
|
boolean |
isShortcutKey(int keyCode,
android.view.KeyEvent event)
|
protected void |
onActive()
|
void |
onConfigurationChanged(android.content.res.Configuration newConfig)
|
void |
openPanel(int featureId,
android.view.KeyEvent event)
|
android.view.View |
peekDecorView()
|
boolean |
performContextMenuIdentifierAction(int id,
int flags)
|
boolean |
performPanelIdentifierAction(int featureId,
int id,
int flags)
|
boolean |
performPanelShortcut(int featureId,
int keyCode,
android.view.KeyEvent event,
int flags)
|
boolean |
requestFeature(int featureId)
|
void |
restoreHierarchyState(android.os.Bundle savedInstanceState)
|
android.os.Bundle |
saveHierarchyState()
|
void |
setBackgroundDrawable(android.graphics.drawable.Drawable drawable)
|
void |
setChildDrawable(int featureId,
android.graphics.drawable.Drawable drawable)
|
void |
setChildInt(int featureId,
int value)
|
void |
setContentView(int layoutResID)
|
void |
setContentView(android.view.View view)
|
void |
setContentView(android.view.View view,
android.view.ViewGroup.LayoutParams params)
|
void |
setFeatureDrawable(int featureId,
android.graphics.drawable.Drawable drawable)
|
void |
setFeatureDrawableAlpha(int featureId,
int alpha)
|
void |
setFeatureDrawableResource(int featureId,
int resId)
|
void |
setFeatureDrawableUri(int featureId,
android.net.Uri uri)
|
void |
setFeatureInt(int featureId,
int value)
|
void |
setFlags(int flags,
int mask)
|
void |
setSoftInputMode(int softInputMode)
|
void |
setTitle(java.lang.CharSequence title)
|
void |
setTitleColor(int textColor)
|
void |
setVolumeControlStream(int streamType)
|
boolean |
superDispatchKeyEvent(android.view.KeyEvent event)
|
boolean |
superDispatchTouchEvent(android.view.MotionEvent event)
|
boolean |
superDispatchTrackballEvent(android.view.MotionEvent event)
|
void |
takeKeyEvents(boolean get)
|
void |
togglePanel(int featureId,
android.view.KeyEvent event)
|
Methods inherited from class android.view.Window |
clearFlags, findViewById, getAttributes, getCallback, getContainer, getContext, getFeatures, getForcedWindowFlags, getLocalFeatures, getWindowManager, getWindowStyle, hasChildren, hasSoftInputMode, isActive, makeActive, setAttributes, setBackgroundDrawableResource, setCallback, setContainer, setDefaultWindowFormat, setFormat, setGravity, setLayout, setType, setWindowAnimations, setWindowManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
flags
public int flags
requestedFeatureId
public int requestedFeatureId
featureDrawableResourceFeatureId
public int featureDrawableResourceFeatureId
featureDrawableResourceResId
public int featureDrawableResourceResId
softInputMode
public int softInputMode
TestWindow
public TestWindow(android.content.Context context)
requestFeature
public boolean requestFeature(int featureId)
- Overrides:
requestFeature
in class android.view.Window
setFlags
public void setFlags(int flags,
int mask)
- Overrides:
setFlags
in class android.view.Window
addFlags
public void addFlags(int flags)
- Overrides:
addFlags
in class android.view.Window
isFloating
public boolean isFloating()
- Specified by:
isFloating
in class android.view.Window
setContentView
public void setContentView(int layoutResID)
- Specified by:
setContentView
in class android.view.Window
setContentView
public void setContentView(android.view.View view)
- Specified by:
setContentView
in class android.view.Window
setContentView
public void setContentView(android.view.View view,
android.view.ViewGroup.LayoutParams params)
- Specified by:
setContentView
in class android.view.Window
addContentView
public void addContentView(android.view.View view,
android.view.ViewGroup.LayoutParams params)
- Specified by:
addContentView
in class android.view.Window
getCurrentFocus
public android.view.View getCurrentFocus()
- Specified by:
getCurrentFocus
in class android.view.Window
getLayoutInflater
public android.view.LayoutInflater getLayoutInflater()
- Specified by:
getLayoutInflater
in class android.view.Window
setTitle
public void setTitle(java.lang.CharSequence title)
- Specified by:
setTitle
in class android.view.Window
setTitleColor
public void setTitleColor(int textColor)
- Specified by:
setTitleColor
in class android.view.Window
openPanel
public void openPanel(int featureId,
android.view.KeyEvent event)
- Specified by:
openPanel
in class android.view.Window
closePanel
public void closePanel(int featureId)
- Specified by:
closePanel
in class android.view.Window
togglePanel
public void togglePanel(int featureId,
android.view.KeyEvent event)
- Specified by:
togglePanel
in class android.view.Window
performPanelShortcut
public boolean performPanelShortcut(int featureId,
int keyCode,
android.view.KeyEvent event,
int flags)
- Specified by:
performPanelShortcut
in class android.view.Window
performPanelIdentifierAction
public boolean performPanelIdentifierAction(int featureId,
int id,
int flags)
- Specified by:
performPanelIdentifierAction
in class android.view.Window
closeAllPanels
public void closeAllPanels()
- Specified by:
closeAllPanels
in class android.view.Window
performContextMenuIdentifierAction
public boolean performContextMenuIdentifierAction(int id,
int flags)
- Specified by:
performContextMenuIdentifierAction
in class android.view.Window
onConfigurationChanged
public void onConfigurationChanged(android.content.res.Configuration newConfig)
- Specified by:
onConfigurationChanged
in class android.view.Window
setBackgroundDrawable
public void setBackgroundDrawable(android.graphics.drawable.Drawable drawable)
- Specified by:
setBackgroundDrawable
in class android.view.Window
setFeatureDrawableResource
public void setFeatureDrawableResource(int featureId,
int resId)
- Specified by:
setFeatureDrawableResource
in class android.view.Window
setFeatureDrawableUri
public void setFeatureDrawableUri(int featureId,
android.net.Uri uri)
- Specified by:
setFeatureDrawableUri
in class android.view.Window
setFeatureDrawable
public void setFeatureDrawable(int featureId,
android.graphics.drawable.Drawable drawable)
- Specified by:
setFeatureDrawable
in class android.view.Window
setFeatureDrawableAlpha
public void setFeatureDrawableAlpha(int featureId,
int alpha)
- Specified by:
setFeatureDrawableAlpha
in class android.view.Window
setFeatureInt
public void setFeatureInt(int featureId,
int value)
- Specified by:
setFeatureInt
in class android.view.Window
takeKeyEvents
public void takeKeyEvents(boolean get)
- Specified by:
takeKeyEvents
in class android.view.Window
superDispatchKeyEvent
public boolean superDispatchKeyEvent(android.view.KeyEvent event)
- Specified by:
superDispatchKeyEvent
in class android.view.Window
superDispatchTouchEvent
public boolean superDispatchTouchEvent(android.view.MotionEvent event)
- Specified by:
superDispatchTouchEvent
in class android.view.Window
superDispatchTrackballEvent
public boolean superDispatchTrackballEvent(android.view.MotionEvent event)
- Specified by:
superDispatchTrackballEvent
in class android.view.Window
getDecorView
public android.view.View getDecorView()
- Specified by:
getDecorView
in class android.view.Window
peekDecorView
public android.view.View peekDecorView()
- Specified by:
peekDecorView
in class android.view.Window
saveHierarchyState
public android.os.Bundle saveHierarchyState()
- Specified by:
saveHierarchyState
in class android.view.Window
restoreHierarchyState
public void restoreHierarchyState(android.os.Bundle savedInstanceState)
- Specified by:
restoreHierarchyState
in class android.view.Window
onActive
protected void onActive()
- Specified by:
onActive
in class android.view.Window
setChildDrawable
public void setChildDrawable(int featureId,
android.graphics.drawable.Drawable drawable)
- Specified by:
setChildDrawable
in class android.view.Window
setChildInt
public void setChildInt(int featureId,
int value)
- Specified by:
setChildInt
in class android.view.Window
isShortcutKey
public boolean isShortcutKey(int keyCode,
android.view.KeyEvent event)
- Specified by:
isShortcutKey
in class android.view.Window
setVolumeControlStream
public void setVolumeControlStream(int streamType)
- Specified by:
setVolumeControlStream
in class android.view.Window
getVolumeControlStream
public int getVolumeControlStream()
- Specified by:
getVolumeControlStream
in class android.view.Window
setSoftInputMode
public void setSoftInputMode(int softInputMode)
- Overrides:
setSoftInputMode
in class android.view.Window