|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstec.sfc.Win32.Shortcut
public final class Shortcut
Used to create, modifiy, load and save shortcut link objects.
Field Summary | |
---|---|
static int |
MAXIMIZED
Activate and display window maximized. |
static int |
MINIMIZED
Activate and display window minimized. |
static int |
NORMAL
Activate and display window. |
Constructor Summary | |
---|---|
Shortcut()
|
Method Summary | |
---|---|
java.lang.String |
getArguments()
Returns the command-line arguments associated with the shortcut link object. |
java.lang.String |
getDescription()
Returns any description associated with the shortcut link object. |
int |
getHotKey()
Returns any hot key modifiers associated with the shortcut link object. |
int |
getIconIndex()
Returns the index of any icon image associated with the shortcut link object. |
java.lang.String |
getIconPath()
Returns the path to any icon image associated with the shortcut link object. |
int |
getShowWindow()
Returns the show window flag associated with the shortcut link object. |
java.lang.String |
getTarget()
Returns the path to the target of the shortcut link object. |
java.lang.String |
getWorkingDirectory()
Returns the working directory associated with the shortcut link object. |
void |
load(java.lang.String filename)
Loads the shortcut link object from the specified shortcut link file. |
void |
reset()
Resets all fields to their original values. |
void |
save(java.lang.String filename)
Saves the shortcut link object to the specified shortcut link file. |
void |
setArguments(java.lang.String arguments)
Sets the command-line arguments. |
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setHotKey(int hot_key)
Sets the hot key modifiers. |
void |
setIconIndex(int icon_index)
Sets the index of the icon image. |
void |
setIconPath(java.lang.String icon_path)
Sets the path to the icon image. |
void |
setShowWindow(int show_window)
Sets the show window flag. |
void |
setTarget(java.lang.String target)
Sets the path to the target. |
void |
setWorkingDirectory(java.lang.String working_directory)
Sets the path to the working directory. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NORMAL
Set to SW_SHOWNORMAL.
public static final int MAXIMIZED
Set to SW_SHOWMAXIMIZED.
public static final int MINIMIZED
Set to SW_SHOWMINNOACTIVE.
Constructor Detail |
---|
public Shortcut()
Method Detail |
---|
public final void load(java.lang.String filename) throws Win32Exception
If load() fails the shortcut link if left in an unknown state.
filename
- the name of the shortcut link file to load.
Win32Exception
- if any error occurs.public final void save(java.lang.String filename) throws Win32Exception
Target attribute must be set before saving the shorcut link . All other attributes are optional.
filename
- the name of the shortcut link file.
Win32Exception
- if any error occurs.public final java.lang.String getArguments()
public final java.lang.String getDescription()
public final int getHotKey()
May include HotKeyModifier.
public final java.lang.String getIconPath()
public final int getIconIndex()
public final java.lang.String getTarget()
public final java.lang.String getWorkingDirectory()
public final int getShowWindow()
public final void setArguments(java.lang.String arguments)
arguments
- the command-line arguments.public final void setDescription(java.lang.String description)
description
- the description.public final void setHotKey(int hot_key)
hot_key
- the hot key modifiers.public final void setIconPath(java.lang.String icon_path)
icon_path
- the path to the icon image.public final void setIconIndex(int icon_index)
icon_index
- the index of the icon image.public final void setTarget(java.lang.String target)
target
- the path to the target.
The existing object that the shortcut link will point to.
public final void setWorkingDirectory(java.lang.String working_directory)
working_directory
- the path to the working directory.public final void setShowWindow(int show_window)
show_window
- the show window flag.public final void reset()
|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001-2005 Servertec. All rights reserved.