Methods Summary |
---|
void | bind(FolderInfo info)
mInfo = info;
mCloseButton.setText(info.title);
|
FolderInfo | getInfo()
return mInfo;
|
public void | onClick(android.view.View v)
mLauncher.closeFolder(this);
|
void | onClose()
final Workspace workspace = mLauncher.getWorkspace();
workspace.getChildAt(workspace.getCurrentScreen()).requestFocus();
|
public void | onDropCompleted(android.view.View target, boolean success)
|
protected void | onFinishInflate()
super.onFinishInflate();
mContent = (AbsListView) findViewById(R.id.content);
mContent.setOnItemClickListener(this);
mContent.setOnItemLongClickListener(this);
mCloseButton = (Button) findViewById(R.id.close);
mCloseButton.setOnClickListener(this);
mCloseButton.setOnLongClickListener(this);
|
public void | onItemClick(android.widget.AdapterView parent, android.view.View v, int position, long id)
ApplicationInfo app = (ApplicationInfo) parent.getItemAtPosition(position);
mLauncher.startActivitySafely(app.intent);
|
public boolean | onItemLongClick(android.widget.AdapterView parent, android.view.View view, int position, long id)
if (!view.isInTouchMode()) {
return false;
}
ApplicationInfo app = (ApplicationInfo) parent.getItemAtPosition(position);
if (mCloneInfo) {
app = new ApplicationInfo(app);
}
mDragger.startDrag(view, this, app, DragController.DRAG_ACTION_COPY);
mLauncher.closeFolder(this);
mDragItem = app;
return true;
|
public boolean | onLongClick(android.view.View v)
mLauncher.closeFolder(this);
mLauncher.showRenameDialog(mInfo);
return true;
|
void | onOpen()
mContent.requestLayout();
|
void | setCloneInfo(boolean cloneInfo)
mCloneInfo = cloneInfo;
|
void | setContentAdapter(android.widget.ListAdapter adapter)Sets the adapter used to populate the content area. The adapter must only
contains ApplicationInfo items.
mContent.setAdapter(adapter);
|
public void | setDragger(DragController dragger)
mDragger = dragger;
|
void | setLauncher(Launcher launcher)
mLauncher = launcher;
|