Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.project.midp
Interface IMidletDefinition


public interface IMidletDefinition

The definition of a MIDlet within the application descriptor.

Since:
1.0
Restriction:
This interface is not intended to be implemented by clients.

Method Summary
  String getClassName ()
          Get the name of the class extending the javax.microedition.midlet.MIDlet class for the MIDlet.
  String getIcon ()
          A case-sensitive absolute path name of an image (PNG) within the JAR for the icon of the MIDlet.
  String getName ()
          Get the name to be used to identify this MIDlet to the user.
 int getNumber ()
          Return the MIDlet number.
 void setClassName ( String className)
          Set the name of the class extending the javax.microedition.midlet.MIDlet class for the MIDlet.
 void setIcon ( String icon)
          A case-sensitive absolute path name of an image (PNG) within the JAR for the icon of the MIDlet.
 void setName ( String name)
          Name to be used to identify this MIDlet to the user.
  String toString ()
          Returns a string representation of the MIDlet definition in the following pattern:
<MIDlet name>,<icon>,<MIDlet class name>.
 

Method Detail

getClassName

String getClassName()
Get the name of the class extending the javax.microedition.midlet.MIDlet class for the MIDlet.

Returns:
Returns the className.

getIcon

String getIcon()
A case-sensitive absolute path name of an image (PNG) within the JAR for the icon of the MIDlet. If the icon was be omitted, will return the empty string "".

Returns:
Returns the icon.

getName

String getName()
Get the name to be used to identify this MIDlet to the user.

Returns:
Returns the name.

getNumber

int getNumber()
Return the MIDlet number.

Returns:
the number used in the MIDlet- attribute.

setClassName

void setClassName(
String className)
Set the name of the class extending the javax.microedition.midlet.MIDlet class for the MIDlet. The classname MUST be non-null and contain only characters for Java class names. The class MUST have a public no-args constructor. The class name IS case sensitive.

Parameters:
className - The className to set.

setIcon

void setIcon(
String icon)
A case-sensitive absolute path name of an image (PNG) within the JAR for the icon of the MIDlet. The icon may be omitted.

Parameters:
icon - The icon to set.

setName

void setName(
String name)
Name to be used to identify this MIDlet to the user. The name must be present and be non-null.

Parameters:
name - The name to set.

toString

String toString()
Returns a string representation of the MIDlet definition in the following pattern:
<MIDlet name>,<icon>,<MIDlet class name>.

Overrides:
toString in class Object
Returns:
the textual representation of the MIDlet definition.

Mobile Tools for Java
Release 1.0


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire