com.sybase.uep.bobclient.controls.pimmenu
Class AbstractCreatePIMMenuItemCommand

java.lang.Object
  extended by com.sybase.uep.bobclient.controls.pimmenu.AbstractCreatePIMMenuItemCommand
Direct Known Subclasses:
CreateAddressbookMenuItemCommand, CreateDateTimeMenuItemCommand, CreateEmailMenuItemCommand, CreateImageMenuItemCommand, CreateMapMenuItemCommand, CreateMenuItemCompoundCommand, CreatePhoneMenuItemCommand, CreateURLMenuItemCommand

public abstract class AbstractCreatePIMMenuItemCommand
extends java.lang.Object

Base class for creating PIM menu items

Author:
congchen

Field Summary
protected  AppLoggerWrapper _appLogger
           
protected  net.rim.device.api.ui.UiApplication _controller
           
protected  java.lang.String _type
           
 
Constructor Summary
AbstractCreatePIMMenuItemCommand()
           
 
Method Summary
protected  java.lang.String capitalizeFirstLetter(java.lang.String string)
          Util method for capitalize the first letter of a string
abstract  java.util.Vector execute(PIMItem item)
          Creates PIM menu items
 java.lang.String getType()
          Returns specific logical type that the command is working for
 void setController(net.rim.device.api.ui.UiApplication controller)
          Sets UiApplication for the case that menu item's action pops up screens.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_type

protected java.lang.String _type

_controller

protected net.rim.device.api.ui.UiApplication _controller

_appLogger

protected AppLoggerWrapper _appLogger
Constructor Detail

AbstractCreatePIMMenuItemCommand

public AbstractCreatePIMMenuItemCommand()
Method Detail

execute

public abstract java.util.Vector execute(PIMItem item)
Creates PIM menu items

Parameters:
item - - a @see PIMItem that contains a MBO attribute's logical type, value and display name
Returns:
TODO

getType

public java.lang.String getType()
Returns specific logical type that the command is working for

Returns:
String - Value comes from LogicalType. eg. LogicalType.LOGICAL_TYPE_EMAIL

setController

public void setController(net.rim.device.api.ui.UiApplication controller)
Sets UiApplication for the case that menu item's action pops up screens.

Parameters:
controller - - UiApplication

capitalizeFirstLetter

protected java.lang.String capitalizeFirstLetter(java.lang.String string)
Util method for capitalize the first letter of a string

Parameters:
string - - original string that it's first letter is capitalizing
Returns:
String - the input string but with first letter capitalized