org.gnu.gtk

Class AccelMap


public class AccelMap
extends Boxed

Field Summary

Fields inherited from class org.gnu.glib.Boxed

handle

Method Summary

static AccelMap
getAccelMap()
protected static void
gtk_accel_map_add_entry(String accelPath, int accelKey, int accelMods)
protected static void
gtk_accel_map_add_filter(String filterPattern)
protected static boolean
gtk_accel_map_change_entry(String accelPath, int accekKey, int accelMods, boolean replace)
protected static void
gtk_accel_map_load(String fileName)
protected static void
gtk_accel_map_load_fd(int fd)
protected static void
gtk_accel_map_lock_path(String path)
protected static boolean
gtk_accel_map_lookup_entry(String accelPath, int key)
protected static void
gtk_accel_map_save(String fileName)
protected static void
gtk_accel_map_save_fd(int fd)
protected static void
gtk_accel_map_unlock_path(String path)
static void
load(String filename)
Loads a file previously saved with the same method, parses the file for accelerator specifications, and propogates them accordingly.
static void
lockPath(String path)
static void
save(String filename)
Saves the current accelerator specification (accelerator path, key, and modifiers) to the filename specified.
static void
unlockPath(String path)

Methods inherited from class org.gnu.glib.Boxed

equals, getHandle, hashCode, setHandle

Method Details

getAccelMap

public static AccelMap getAccelMap()


gtk_accel_map_add_entry

protected static final void gtk_accel_map_add_entry(String accelPath,
                                                    int accelKey,
                                                    int accelMods)


gtk_accel_map_add_filter

protected static final void gtk_accel_map_add_filter(String filterPattern)


gtk_accel_map_change_entry

protected static final boolean gtk_accel_map_change_entry(String accelPath,
                                                          int accekKey,
                                                          int accelMods,
                                                          boolean replace)


gtk_accel_map_load

protected static final void gtk_accel_map_load(String fileName)


gtk_accel_map_load_fd

protected static final void gtk_accel_map_load_fd(int fd)


gtk_accel_map_lock_path

protected static final void gtk_accel_map_lock_path(String path)


gtk_accel_map_lookup_entry

protected static final boolean gtk_accel_map_lookup_entry(String accelPath,
                                                          int key)


gtk_accel_map_save

protected static final void gtk_accel_map_save(String fileName)


gtk_accel_map_save_fd

protected static final void gtk_accel_map_save_fd(int fd)


gtk_accel_map_unlock_path

protected static final void gtk_accel_map_unlock_path(String path)


load

public static void load(String filename)
Loads a file previously saved with the same method, parses the file for accelerator specifications, and propogates them accordingly.

Parameters:
filename - The name of the file to read.


lockPath

public static void lockPath(String path)


save

public static void save(String filename)
Saves the current accelerator specification (accelerator path, key, and modifiers) to the filename specified.

Parameters:
filename - The name of the file to write.


unlockPath

public static void unlockPath(String path)