jMobileCore toolkit

com.jmobilecore.ui
Class SoftKeyImpl

java.lang.Object
  extended by com.jmobilecore.ui.core.SoftKey
      extended by com.jmobilecore.ui.SoftKeyImpl

public class SoftKeyImpl
extends SoftKey

This class is implementation of abstract class SoftKey The class keeps information about returning value and reference to it's parent (owner).

Author:
Greg Gridin

Field Summary
 EventListener parent
          Parent (owner) of this soft key
 int rslt
          Result to report
 
Fields inherited from class com.jmobilecore.ui.core.SoftKey
CENTER, label, LEFT, RIGHT
 
Constructor Summary
SoftKeyImpl(java.lang.String label)
          Creates a new SoftKeyImpl instance.
SoftKeyImpl(java.lang.String label, EventListener parent)
          Creates a new SoftKeyImpl instance.
SoftKeyImpl(java.lang.String label, EventListener parent, int rslt)
          Creates a new SoftKeyImpl instance.
 
Method Summary
 void performAction()
          Performs an action - informs the parent that action is performed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

public EventListener parent
Parent (owner) of this soft key


rslt

public int rslt
Result to report

Constructor Detail

SoftKeyImpl

public SoftKeyImpl(java.lang.String label)
Creates a new SoftKeyImpl instance.

Parameters:
label - The SoftKey label.
See Also:
performAction()

SoftKeyImpl

public SoftKeyImpl(java.lang.String label,
                   EventListener parent)
Creates a new SoftKeyImpl instance.

Parameters:
label - The SoftKey label.
parent - The parent (owner) of this soft key.
See Also:
performAction()

SoftKeyImpl

public SoftKeyImpl(java.lang.String label,
                   EventListener parent,
                   int rslt)
Creates a new SoftKeyImpl instance.

Parameters:
label - The SoftKey label.
parent - The parent (owner) of this soft key.
rslt - The result to report.
See Also:
performAction()
Method Detail

performAction

public void performAction()
Performs an action - informs the parent that action is performed

Specified by:
performAction in class SoftKey

jMobileCore toolkit