|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ccl.platform.Native
|
+--ccl.platform.Linux
Linux native methods are invoked in this class. But users will use the Native class to use these methods.
| Constructor Summary | |
protected |
Linux()
This is a singleton class. |
| Method Summary | |
int |
getMainJavaPID()
E.g. |
int |
getPGID(int pid_)
Get process group id for a given pid. |
int |
getPID()
Get Process ID of the current Java program/process. |
int |
getPIDViaPOSIX()
Uses native POSIX 'getpid()' to get the process ID of the current Java program/process. |
int |
getPIDViaProc()
Uses the /proc system to get the process ID of the current Java program/process. |
static java.lang.String |
getWindowID(java.lang.String sFrameName_)
Get unix windows id. |
static java.lang.String |
getWindowID(java.lang.String sFrameName_,
int debug)
Get unix windows id. |
static boolean |
isLibLoaded()
Is the libLinux.so library really loaded? |
static void |
moveWindow(java.lang.String sFrameID_,
int x,
int y)
Moves an X window. |
static void |
requestFocus(java.lang.String sFrameID_)
Set focus on Unix window's id. |
void |
requestInputFocus(java.lang.String sWindowTitle_)
Set focus on Unix window with given title. |
void |
setLocation(java.awt.Dialog dialog,
int x,
int y)
Sets the location of the dialog using X Window. |
void |
setLocation(java.awt.Frame frame,
int x,
int y)
Sets the location of the frame using X Window. |
int |
symlink(java.lang.String sOldPath_,
java.lang.String sNewPath_)
Create a symbolic link. |
boolean |
unlink(java.lang.String sPath_)
Remove a symbolic link. |
| Methods inherited from class ccl.platform.Native |
getInstance, getUserNames |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Linux()
| Method Detail |
public static java.lang.String getWindowID(java.lang.String sFrameName_)
public static java.lang.String getWindowID(java.lang.String sFrameName_,
int debug)
public static void requestFocus(java.lang.String sFrameID_)
public static void moveWindow(java.lang.String sFrameID_,
int x,
int y)
public void requestInputFocus(java.lang.String sWindowTitle_)
requestInputFocus in class Native
public int symlink(java.lang.String sOldPath_,
java.lang.String sNewPath_)
symlink in class Nativepublic boolean unlink(java.lang.String sPath_)
unlink in class Nativepublic static boolean isLibLoaded()
public int getPIDViaPOSIX()
public int getPIDViaProc()
public int getPID()
getPID in class Nativepublic int getMainJavaPID()
getMainJavaPID in class Nativepublic int getPGID(int pid_)
public void setLocation(java.awt.Frame frame,
int x,
int y)
setLocation in class Native
public void setLocation(java.awt.Dialog dialog,
int x,
int y)
setLocation in class Native
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||