FileDocCategorySizeDatePackage
SelectionDependentPanel.javaAPI DocAndroid 1.5 API2347Wed May 06 22:41:08 BST 2009com.android.ddmuilib

SelectionDependentPanel

public abstract class SelectionDependentPanel extends Panel
A Panel that requires {@link Device}/{@link Client} selection notifications.

Fields Summary
private com.android.ddmlib.Device
mCurrentDevice
private com.android.ddmlib.Client
mCurrentClient
Constructors Summary
Methods Summary
public final voidclientSelected(com.android.ddmlib.Client selectedClient)
Sent when a new client is selected.

param
selectedClient the selected client.

        if (selectedClient != mCurrentClient) {
            mCurrentClient = selectedClient;
            clientSelected();
        }
    
public abstract voidclientSelected()
Sent when a new client is selected. The new client can be accessed with {@link #getCurrentClient()}.

public final voiddeviceSelected(com.android.ddmlib.Device selectedDevice)
Sent when a new device is selected.

param
selectedDevice the selected device.

        if (selectedDevice != mCurrentDevice) {
            mCurrentDevice = selectedDevice;
            deviceSelected();
        }
    
public abstract voiddeviceSelected()
Sent when a new device is selected. The new device can be accessed with {@link #getCurrentDevice()}.

protected final com.android.ddmlib.ClientgetCurrentClient()
Returns the current {@link Client}.

return
the current client or null if none are selected.

        return mCurrentClient;
    
protected final com.android.ddmlib.DevicegetCurrentDevice()
Returns the current {@link Device}.

return
the current device or null if none are selected.


                        
        
        return mCurrentDevice;