Java Doc for Program.java in  » Ajax » GWT » org » eclipse » swt » program » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » GWT » org.eclipse.swt.program 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.swt.program.Program

Program
final public class Program (Code)
Instances of this class represent programs and their associated file extensions in the operating system.


Field Summary
 Stringcommand
    
 StringiconName
    
 Stringname
    

Constructor Summary
 Program()
     Prevents uninitialized instances from being created outside the package.

Method Summary
public  booleanequals(Object other)
     Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
public  booleanexecute(String fileName)
     Executes the program with the file as the single argument in the operating system.
public static  ProgramfindProgram(String extension)
     Finds the program that is associated with an extension. The extension may or may not begin with a '.'.
public static  String[]getExtensions()
     Answer all program extensions in the operating system.
public  ImageDatagetImageData()
     Returns the receiver's image data.
static  StringgetKeyValue(String string, boolean expand)
    
public  StringgetName()
     Returns the receiver's name.
static  ProgramgetProgram(String key)
    
public static  Program[]getPrograms()
     Answers all available programs in the operating system.
public  inthashCode()
     Returns an integer hash code for the receiver.
public static  booleanlaunch(String fileName)
     Launches the executable associated with the file in the operating system.
public  StringtoString()
     Returns a string containing a concise, human-readable description of the receiver.

Field Detail
command
String command(Code)



iconName
String iconName(Code)



name
String name(Code)




Constructor Detail
Program
Program()(Code)
Prevents uninitialized instances from being created outside the package.




Method Detail
equals
public boolean equals(Object other)(Code)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
Parameters:
  other - the object to compare with this object true if the object is the same as this object and false otherwise
See Also:   Program.hashCode()



execute
public boolean execute(String fileName)(Code)
Executes the program with the file as the single argument in the operating system. It is the responsibility of the programmer to ensure that the file contains valid data for this program.
Parameters:
  fileName - the file or program name true if the file is launched, otherwise false
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT when fileName is null



findProgram
public static Program findProgram(String extension)(Code)
Finds the program that is associated with an extension. The extension may or may not begin with a '.'. Note that a Display must already exist to guarantee that this method returns an appropriate result.
Parameters:
  extension - the program extension the program or null
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT when extension is null



getExtensions
public static String[] getExtensions()(Code)
Answer all program extensions in the operating system. Note that a Display must already exist to guarantee that this method returns an appropriate result. an array of extensions



getImageData
public ImageData getImageData()(Code)
Returns the receiver's image data. This is the icon that is associated with the receiver in the operating system. the image data for the program, may be null



getKeyValue
static String getKeyValue(String string, boolean expand)(Code)



getName
public String getName()(Code)
Returns the receiver's name. This is as short and descriptive a name as possible for the program. If the program has no descriptive name, this string may be the executable name, path or empty. the name of the program



getProgram
static Program getProgram(String key)(Code)



getPrograms
public static Program[] getPrograms()(Code)
Answers all available programs in the operating system. Note that a Display must already exist to guarantee that this method returns an appropriate result. an array of programs



hashCode
public int hashCode()(Code)
Returns an integer hash code for the receiver. Any two objects that return true when passed to equals must return the same value for this method. the receiver's hash
See Also:   Program.equals(Object)



launch
public static boolean launch(String fileName)(Code)
Launches the executable associated with the file in the operating system. If the file is an executable, then the executable is launched. Note that a Display must already exist to guarantee that this method returns an appropriate result.
Parameters:
  fileName - the file or program name true if the file is launched, otherwise false
exception:
  IllegalArgumentException -
  • ERROR_NULL_ARGUMENT when fileName is null



toString
public String toString()(Code)
Returns a string containing a concise, human-readable description of the receiver. a string representation of the program



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.