de.msponer.android.yac.activities.workqueues.listener
Class AddWorkItemElementEntryListener

java.lang.Object
  extended by de.msponer.android.yac.activities.workqueues.listener.AddWorkItemElementEntryListener
All Implemented Interfaces:
View.OnClickListener

public class AddWorkItemElementEntryListener
extends Object
implements View.OnClickListener

Onclicklistener for adding an work item element entry to a parent linear layout.

Author:
msponer

Constructor Summary
AddWorkItemElementEntryListener(EditWorkItemActivity editWorkItemActivity, WorkItemElementEntry workItemElementEntry, LinearLayout parentPanel)
          Constructor setting the required attributs.
 
Method Summary
 LinearLayout getParentPanel()
          Returns the parent panel.
 void onClick(View v)
           Clones the given work element entry and adds the corresponding view components to the parent panel.
 void setParentPanel(LinearLayout parentLinearLayoutPanel)
          Sets the parent panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddWorkItemElementEntryListener

public AddWorkItemElementEntryListener(EditWorkItemActivity editWorkItemActivity,
                                       WorkItemElementEntry workItemElementEntry,
                                       LinearLayout parentPanel)
Constructor setting the required attributs.

Parameters:
editWorkItemActivity - The invoking EditWorkItemActivity
workItemElementEntry - The work item element entry.
parentPanel - The parent panel.
Method Detail

onClick

public void onClick(View v)
Clones the given work element entry and adds the corresponding view components to the parent panel.

Specified by:
onClick in interface View.OnClickListener

setParentPanel

public void setParentPanel(LinearLayout parentLinearLayoutPanel)
Sets the parent panel.

Parameters:
parentLinearLayoutPanel - The parent panel.

getParentPanel

public LinearLayout getParentPanel()
Returns the parent panel.

Returns:
The parent panel.