Oracle Java Wireless Client

com.sun.ams
Interface AppSuite

All Superinterfaces:
SuiteInfo

public interface AppSuite
extends SuiteInfo

Application suite descriptor.


Field Summary
static int AT_PREINSTALLED
           
static int AT_REGULAR
           
static int AT_SYSTEM
          types of Suite Info
 
Fields inherited from interface com.sun.ams.SuiteInfo
ST_APPLICATION, ST_INVALID, ST_LIBRARY, ST_LINK, STATE_AVAILABLE, STATE_ENABLED, STATE_HIDDEN, STATE_REMOVE_DENIED, STATE_UPDATE_DENIED
 
Method Summary
 TaskInfo debugTask(java.lang.String className)
          Starts task from this suite in debug mode
 java.lang.String getDefaultApp()
          Get default application (MIDlet) from the suite.
 java.util.Enumeration getDependencies()
          Enumerates Dynamic Components this MIDlet Suite depends on
 int getType()
          Returns type of the suite as one of the predifined constats
 TaskInfo startTask(java.lang.String className)
          Starts task from this suite
 
Methods inherited from interface com.sun.ams.SuiteInfo
getAvailableProperties, getDownloadUrl, getIcon, getName, getProperty, getSettings, getState, getSuiteType, getVendor, remove, remove, setState
 

Field Detail

AT_SYSTEM

static final int AT_SYSTEM
types of Suite Info

See Also:
Constant Field Values

AT_PREINSTALLED

static final int AT_PREINSTALLED
See Also:
Constant Field Values

AT_REGULAR

static final int AT_REGULAR
See Also:
Constant Field Values
Method Detail

startTask

TaskInfo startTask(java.lang.String className)
Starts task from this suite

Parameters:
className - startup class
Returns:
a descriptor of created task

debugTask

TaskInfo debugTask(java.lang.String className)
Starts task from this suite in debug mode

Parameters:
className - startup class
Returns:
a descriptor of created task

getType

int getType()
            throws SuiteNotFoundException
Returns type of the suite as one of the predifined constats

Returns:
ST_SYSTEM if this is system suite or ST_REGULAR for regular suite.
Throws:
SuiteNotFoundException

getDefaultApp

java.lang.String getDefaultApp()
                               throws SuiteNotFoundException
Get default application (MIDlet) from the suite.

For MIdlet suite returns MIDlet name from MIDlet-1 field.

Returns:
default (first) application classname
Throws:
SuiteNotFoundException

getDependencies

java.util.Enumeration getDependencies()
Enumerates Dynamic Components this MIDlet Suite depends on

Returns:
Enumeration of LibSuite object instances

Oracle Java Wireless Client

Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.