org.gnu.gnome

Class Entry


public class Entry
extends Combo

The Entry widget accepts user input - once accepted, the entry is included in the history of items previously entered. You can save this history information so it can be restored the next time the widget appears.

Constructor Summary

Entry(Handle handle)
Constructs an Entry object referencing an existing gnome Entry native resource.
Entry(String historyID)
Constructs a new Entry object.

Method Summary

void
appendHistory(String text, boolean save)
Add a string to the end of the list.
void
clearHistory()
Clear the history list.
org.gnu.gtk.Entry
getEntry()
Return the Gtk Entry for this widget.
String
getHistoryID()
Gets the unique Id used by gnome to save and load history info.
int
getMaxSaved()
static Type
getType()
Retrieve the runtime type used by the GLib library.
protected static void
gnome_entry_append_history(Handle gentry, boolean save, String text)
protected static void
gnome_entry_clear_history(Handle gentry)
protected static String
gnome_entry_get_history_id(Handle gentry)
protected static int
gnome_entry_get_max_saved(Handle gentry)
protected static int
gnome_entry_get_type()
protected static Handle
gnome_entry_gtk_entry(Handle gentry)
protected static Handle
gnome_entry_new(String historyId)
protected static void
gnome_entry_prepend_history(Handle gentry, boolean save, String text)
protected static void
gnome_entry_set_history_id(Handle gentry, String historyId)
protected static void
gnome_entry_set_max_saved(Handle gentry, int maxSaved)
void
prependHistory(String text, boolean save)
Add a string to the beginning of the list.
void
setHistoryID(String historyID)
Sets the unique Id used by gnome to save and load history info.
void
setMaxSaved(int maxSaved)

Constructor Details

Entry

public Entry(Handle handle)
Constructs an Entry object referencing an existing gnome Entry native resource.

Parameters:
handle - The handle to the gnome Entry widget.


Entry

public Entry(String historyID)
Constructs a new Entry object.

Parameters:
historyID - The unique Id used by gnome to save and load history list info.

Method Details

appendHistory

public void appendHistory(String text,
                          boolean save)
Add a string to the end of the list.

Parameters:
text - The string to append.
save - If true, the list will be saved to history after the append.


clearHistory

public void clearHistory()
Clear the history list.


getEntry

public org.gnu.gtk.Entry getEntry()
Return the Gtk Entry for this widget.


getHistoryID

public String getHistoryID()
Gets the unique Id used by gnome to save and load history info.


getMaxSaved

public int getMaxSaved()


getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


gnome_entry_append_history

protected static final void gnome_entry_append_history(Handle gentry,
                                                       boolean save,
                                                       String text)


gnome_entry_clear_history

protected static final void gnome_entry_clear_history(Handle gentry)


gnome_entry_get_history_id

protected static final String gnome_entry_get_history_id(Handle gentry)


gnome_entry_get_max_saved

protected static final int gnome_entry_get_max_saved(Handle gentry)


gnome_entry_get_type

protected static final int gnome_entry_get_type()


gnome_entry_gtk_entry

protected static final Handle gnome_entry_gtk_entry(Handle gentry)


gnome_entry_new

protected static final Handle gnome_entry_new(String historyId)


gnome_entry_prepend_history

protected static final void gnome_entry_prepend_history(Handle gentry,
                                                        boolean save,
                                                        String text)


gnome_entry_set_history_id

protected static final void gnome_entry_set_history_id(Handle gentry,
                                                       String historyId)


gnome_entry_set_max_saved

protected static final void gnome_entry_set_max_saved(Handle gentry,
                                                      int maxSaved)


prependHistory

public void prependHistory(String text,
                           boolean save)
Add a string to the beginning of the list.

Parameters:
text - The string to prepend.
save - If true, the list will be saved to history after the prepend.


setHistoryID

public void setHistoryID(String historyID)
Sets the unique Id used by gnome to save and load history info. This is usefull if you want to save and load history lists interactively. No no need to create a new control with the appropriate historyID, just change it.


setMaxSaved

public void setMaxSaved(int maxSaved)