Java Doc for Unix_Shortcut.java in » Installer » IzPack » com » izforge » izpack » util » os » 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
»
Installer
»
IzPack
»
com.izforge.izpack.util.os
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
com.izforge.izpack.util.os
.Shortcut
com.izforge.izpack.util.os
.Unix_Shortcut
Unix_Shortcut
public
class Unix_Shortcut extends
Shortcut
implements
Unix_ShortcutConstants
(Code)
This is the Implementation of the RFC-Based Desktop-Link. Used in KDE and GNOME.
author:
marc.eppelmann@reddot.de
Field Summary
public
StringBuffer
hlp
Constructor Summary
public
Unix_Shortcut
()
Creates a new Unix_Shortcut object.
Method Summary
public
static void
copyTo
(
File
inFile,
File
outFile)
Copies the inFile file to outFile using cbuff as buffer.
public
void
execPostAction
()
Post Exec Action especially for the Unix Root User.
public
String
getDirectoryCreated
()
public
String
getFileName
()
public
int
getLinkType
()
public
Vector
<
String
>
getProgramGroups
(int userType)
Overridden compatibility method.
public
String
getProgramsFolder
(int current_user)
Gets the Programsfolder for the given User (non-Javadoc).
public
int
getUserType
()
Gets the Usertype of the Shortcut.
public
String
getWrittenFileName
()
public
void
initialize
(int aType,
String
aName)
public
static void
main
(
String
[] args)
public
boolean
multipleUsers
()
public
String
replace
()
Creates the Shortcut String which will be stored as File.
public
void
save
()
Creates and stores the shortcut-files.
public
void
setArguments
(
String
args)
public
void
setCategories
(
String
theCategories)
public
void
setDescription
(
String
description)
public
void
setEncoding
(
String
aEncoding)
public
void
setIconLocation
(
String
path, int index)
public
void
setKdeSubstUID
(
String
trueFalseOrNothing)
public
void
setKdeUserName
(
String
aUserName)
public
void
setLinkName
(
String
aName)
public
void
setLinkType
(int aType)
public
void
setMimetype
(
String
aMimetype)
public
void
setProgramGroup
(
String
aGroupName)
public
void
setShowCommand
(int show)
public
void
setTargetPath
(
String
aPath)
public
void
setTerminal
(
String
trueFalseOrNothing)
public
void
setTerminalOptions
(
String
someTerminalOptions)
public
void
setTryExec
(
String
aTryExec)
Sets the TryExecField.
public
void
setType
(
String
aType)
public
void
setURL
(
String
anUrl)
Sets the Url for type Link.
public
void
setUserType
(int aUserType)
Sets the usertype.
public
void
setWorkingDirectory
(
String
aDirectory)
protected
void
setWrittenFileName
(
String
s)
public
boolean
supported
()
This indicates that Unix will be supported.
public
String
toString
()
Dumps the Name to console.
Field Detail
hlp
public
StringBuffer
hlp
(Code)
Internal Help Buffer
Constructor Detail
Unix_Shortcut
public
Unix_Shortcut()
(Code)
Creates a new Unix_Shortcut object.
Method Detail
copyTo
public
static void copyTo(
File
inFile,
File
outFile) throws
IOException
(Code)
Copies the inFile file to outFile using cbuff as buffer.
Parameters:
inFile - The File to read from.
Parameters:
outFile - The targetFile to write to.
throws:
IOException
- If an IO Error occurs
execPostAction
public
void execPostAction()
(Code)
Post Exec Action especially for the Unix Root User. which executes the Root ShortCut Shellscript. to copy all ShellScripts to the users Desktop.
getDirectoryCreated
public
String
getDirectoryCreated()
(Code)
Dummy
See Also:
com.izforge.izpack.util.os.Shortcut.getDirectoryCreated
getFileName
public
String
getFileName()
(Code)
Dummy
See Also:
com.izforge.izpack.util.os.Shortcut.getFileName
getLinkType
public
int getLinkType()
(Code)
getProgramGroups
public
Vector
<
String
> getProgramGroups(int userType)
(Code)
Overridden compatibility method. Returns all directories in $USER/.kde/share/applink.
See Also:
com.izforge.izpack.util.os.Shortcut.getProgramGroups(int)
getProgramsFolder
public
String
getProgramsFolder(int current_user)
(Code)
Gets the Programsfolder for the given User (non-Javadoc).
See Also:
com.izforge.izpack.util.os.Shortcut.getProgramsFolder(int)
getUserType
public
int getUserType()
(Code)
Gets the Usertype of the Shortcut.
See Also:
com.izforge.izpack.util.os.Shortcut.getUserType
getWrittenFileName
public
String
getWrittenFileName()
(Code)
initialize
public
void initialize(int aType,
String
aName) throws
Exception
(Code)
Overridden Method
See Also:
com.izforge.izpack.util.os.Shortcut.initialize(intjava.lang.String)
main
public
static void main(
String
[] args)
(Code)
Test Method
Parameters:
args -
multipleUsers
public
boolean multipleUsers()
(Code)
overridden method true
See Also:
com.izforge.izpack.util.os.Shortcut.multipleUsers
replace
public
String
replace()
(Code)
Creates the Shortcut String which will be stored as File. contents of the shortcut file
save
public
void save() throws
Exception
(Code)
Creates and stores the shortcut-files.
See Also:
com.izforge.izpack.util.os.Shortcut.save
setArguments
public
void setArguments(
String
args)
(Code)
Set the Commandline Arguments
See Also:
com.izforge.izpack.util.os.Shortcut.setArguments(java.lang.String)
setCategories
public
void setCategories(
String
theCategories)
(Code)
Sets the Categories Field
Parameters:
theCategories - the categories
setDescription
public
void setDescription(
String
description)
(Code)
Sets the Description
See Also:
com.izforge.izpack.util.os.Shortcut.setDescription(java.lang.String)
setEncoding
public
void setEncoding(
String
aEncoding)
(Code)
Sets The Encoding
See Also:
com.izforge.izpack.util.os.Shortcut.setEncoding(java.lang.String)
setIconLocation
public
void setIconLocation(
String
path, int index)
(Code)
Sets The Icon Path
See Also:
com.izforge.izpack.util.os.Shortcut.setIconLocation(java.lang.Stringint)
setKdeSubstUID
public
void setKdeSubstUID(
String
trueFalseOrNothing)
(Code)
Sets The KDE Specific subst UID property
See Also:
com.izforge.izpack.util.os.Shortcut.setKdeSubstUID(java.lang.String)
setKdeUserName
public
void setKdeUserName(
String
aUserName)
(Code)
Sets The KDE Specific subst UID property
See Also:
com.izforge.izpack.util.os.Shortcut.setKdeSubstUID(java.lang.String)
setLinkName
public
void setLinkName(
String
aName)
(Code)
Sets the Name of this Shortcut
See Also:
com.izforge.izpack.util.os.Shortcut.setLinkName(java.lang.String)
setLinkType
public
void setLinkType(int aType) throws
IllegalArgumentException
,
UnsupportedEncodingException
(Code)
Sets the type of this Shortcut
See Also:
com.izforge.izpack.util.os.Shortcut.setLinkType(int)
setMimetype
public
void setMimetype(
String
aMimetype)
(Code)
Sets the MimeType
See Also:
com.izforge.izpack.util.os.Shortcut.setMimetype(java.lang.String)
setProgramGroup
public
void setProgramGroup(
String
aGroupName)
(Code)
Sets the ProgramGroup
See Also:
com.izforge.izpack.util.os.Shortcut.setProgramGroup(java.lang.String)
setShowCommand
public
void setShowCommand(int show)
(Code)
Sets the ShowMode
See Also:
com.izforge.izpack.util.os.Shortcut.setShowCommand(int)
setTargetPath
public
void setTargetPath(
String
aPath)
(Code)
Sets The TargetPath
See Also:
com.izforge.izpack.util.os.Shortcut.setTargetPath(java.lang.String)
setTerminal
public
void setTerminal(
String
trueFalseOrNothing)
(Code)
Sets the terminal
See Also:
com.izforge.izpack.util.os.Shortcut.setTerminal(java.lang.String)
setTerminalOptions
public
void setTerminalOptions(
String
someTerminalOptions)
(Code)
Sets the terminal options
See Also:
com.izforge.izpack.util.os.Shortcut.setTerminalOptions(java.lang.String)
setTryExec
public
void setTryExec(
String
aTryExec)
(Code)
Sets the TryExecField.
Parameters:
aTryExec - the try exec command
setType
public
void setType(
String
aType)
(Code)
Sets the Shortcut type (one of Application, Link or Device)
See Also:
com.izforge.izpack.util.os.Shortcut.setType(java.lang.String)
setURL
public
void setURL(
String
anUrl)
(Code)
Sets the Url for type Link. Can be also a apsolute file/path
See Also:
com.izforge.izpack.util.os.Shortcut.setURL(java.lang.String)
setUserType
public
void setUserType(int aUserType)
(Code)
Sets the usertype.
See Also:
com.izforge.izpack.util.os.Shortcut.setUserType(int)
setWorkingDirectory
public
void setWorkingDirectory(
String
aDirectory)
(Code)
Sets the working-directory
See Also:
com.izforge.izpack.util.os.Shortcut.setWorkingDirectory(java.lang.String)
setWrittenFileName
protected
void setWrittenFileName(
String
s)
(Code)
supported
public
boolean supported()
(Code)
This indicates that Unix will be supported.
See Also:
com.izforge.izpack.util.os.Shortcut.supported
toString
public
String
toString()
(Code)
Dumps the Name to console.
See Also:
java.lang.Object.toString
Fields inherited from
com.izforge.izpack.util.os.Shortcut
final
public
static int ALL_USERS
(Code)
(Java Doc)
final
public
static int APPLICATIONS
(Code)
(Java Doc)
final
public
static int CURRENT_USER
(Code)
(Java Doc)
final
public
static int DESKTOP
(Code)
(Java Doc)
final
public
static int HIDE
(Code)
(Java Doc)
final
public
static int MAXIMIZED
(Code)
(Java Doc)
final
public
static int MINIMIZED
(Code)
(Java Doc)
final
public
static int NORMAL
(Code)
(Java Doc)
final
public
static int START_MENU
(Code)
(Java Doc)
final
public
static int START_UP
(Code)
(Java Doc)
protected
UninstallData
uninstaller
(Code)
(Java Doc)
Methods inherited from
com.izforge.izpack.util.os.Shortcut
public
void cleanUp()
(Code)
(Java Doc)
public
void execPostAction()
(Code)
(Java Doc)
public
String
getBasePath() throws
Exception
(Code)
(Java Doc)
public
Boolean
getCreateForAll()
(Code)
(Java Doc)
public
String
getDirectoryCreated()
(Code)
(Java Doc)
public
String
getFileName()
(Code)
(Java Doc)
public
int getHotkey()
(Code)
(Java Doc)
public
String
getIconLocation()
(Code)
(Java Doc)
public
int getLinkType()
(Code)
(Java Doc)
public
Vector
<
String
> getProgramGroups(int userType)
(Code)
(Java Doc)
public
String
getProgramsFolder(int current_user)
(Code)
(Java Doc)
public
int getShowCommand()
(Code)
(Java Doc)
public
int getUserType()
(Code)
(Java Doc)
public
String
getWorkingDirectory()
(Code)
(Java Doc)
public
void initialize(int type,
String
name) throws
Exception
(Code)
(Java Doc)
public
boolean multipleUsers()
(Code)
(Java Doc)
public
void save() throws
Exception
(Code)
(Java Doc)
public
void setArguments(
String
arguments)
(Code)
(Java Doc)
public
void setCategories(
String
theCategories)
(Code)
(Java Doc)
public
void setCreateForAll(
Boolean
aCreateForAll)
(Code)
(Java Doc)
public
void setDescription(
String
description)
(Code)
(Java Doc)
public
void setEncoding(
String
string)
(Code)
(Java Doc)
public
void setHotkey(int hotkey)
(Code)
(Java Doc)
public
void setIconLocation(
String
path, int index)
(Code)
(Java Doc)
public
void setKdeSubstUID(
String
string)
(Code)
(Java Doc)
public
void setKdeUserName(
String
string)
(Code)
(Java Doc)
public
void setLinkName(
String
name)
(Code)
(Java Doc)
public
void setLinkType(int type) throws
IllegalArgumentException
,
UnsupportedEncodingException
(Code)
(Java Doc)
public
void setMimetype(
String
string)
(Code)
(Java Doc)
public
void setProgramGroup(
String
groupName)
(Code)
(Java Doc)
public
void setShowCommand(int show)
(Code)
(Java Doc)
public
void setTargetPath(
String
path)
(Code)
(Java Doc)
public
void setTerminal(
String
string)
(Code)
(Java Doc)
public
void setTerminalOptions(
String
string)
(Code)
(Java Doc)
public
void setTryExec(
String
aTryExec)
(Code)
(Java Doc)
public
void setType(
String
string)
(Code)
(Java Doc)
public
void setURL(
String
string)
(Code)
(Java Doc)
public
void setUninstaller(
UninstallData
theUninstaller)
(Code)
(Java Doc)
public
void setUserType(int type)
(Code)
(Java Doc)
public
void setWorkingDirectory(
String
dir)
(Code)
(Java Doc)
public
boolean supported()
(Code)
(Java Doc)
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.