|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.EntryCompletion
public class EntryCompletion
EntryCompletion is an auxiliary object to be used in conjunction with Entry to provide the completion functionality. To add completion functionality to an Entry, use setCompletion(). In addition to regular completion matches, which will be inserted into the entry when they are selected, EntryCompletion also allows to display "actions" in the popup window. Their appearance is similar to menuitems, to differentiate them clearly from completion strings. When an action is selected, the ::action-activated signal is emitted.
Constructor Summary | |
---|---|
EntryCompletion()
Creates a new EntryCompletion object. |
|
EntryCompletion(org.gnu.glib.Handle nativeHandle)
|
Method Summary | |
---|---|
void |
addListener(EntryCompletionListener listener)
Register an object to handle dialog events. |
void |
complete()
Requests a completion operation, or in other words a refiltering of the current list with completions, using the current key. |
void |
deleteAction(int index)
Remove an action for the EntryCompletions action list. |
Entry |
getEntry()
Returns the Entry this completion is attached to. |
static EntryCompletion |
getEntryCompletion(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
EventType |
getEventType(java.lang.String signal)
|
boolean |
getInlineCompletion()
Returns whether the common prefix of the possible completion should be automatically inserted into the entry. |
int |
getMinimumKeyLength()
Returns the minimum key length as set for completion. |
TreeModel |
getModel()
Returns the model that the EntryCompletion is using as a data source. |
boolean |
getPopupCompletion()
Returns whether the completion should be presented in a popup window. |
boolean |
getPopupSetWidth()
|
int |
getTextColumn()
Returns the column in the model of completion to get strings from. |
void |
insertActionMarkup(int index,
java.lang.String markup)
Inserts an action in the EntryCompletion's action list with the position and text provided. |
void |
insertActionText(int index,
java.lang.String text)
Inserts an action in the EntryCompletion's action list with the position and text provided. |
void |
insertPrefix()
Request a prefix insertion. |
void |
removeListener(EntryCompletionListener listener)
Removes a listener |
void |
setInlineCompletion(boolean inlineCompletion)
Sets whether the common prefix of the possible completion should be automatically inserted into the entry. |
void |
setMinimumKeyLength(int length)
Requires the length of the search key for the EntryCompletion to be at least length. |
void |
setModel(TreeModel model)
Sets the model for this EntryCompletion. |
void |
setPopupCompletion(boolean popupCompletion)
Sets whether the completion should be presented in a popup window. |
void |
setPopupSetWidth(boolean setWidth)
|
void |
setTextColumn(int column)
Specify which column in the model to use to display the strings. |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntryCompletion()
public EntryCompletion(org.gnu.glib.Handle nativeHandle)
Method Detail |
---|
public static EntryCompletion getEntryCompletion(org.gnu.glib.Handle handle)
public Entry getEntry()
public void setModel(TreeModel model)
model
- public TreeModel getModel()
public void setMinimumKeyLength(int length)
length
- public int getMinimumKeyLength()
public void complete()
public void insertPrefix()
public void insertActionText(int index, java.lang.String text)
index
- text
- public void insertActionMarkup(int index, java.lang.String markup)
index
- markup
- public void deleteAction(int index)
index
- public void setInlineCompletion(boolean inlineCompletion)
inlineCompletion
- public boolean getInlineCompletion()
public void setPopupCompletion(boolean popupCompletion)
popupCompletion
- public boolean getPopupCompletion()
public void setTextColumn(int column)
column
- public int getTextColumn()
public void setPopupSetWidth(boolean setWidth)
public boolean getPopupSetWidth()
public void addListener(EntryCompletionListener listener)
EntryCompletionListener
public void removeListener(EntryCompletionListener listener)
addListener(EntryCompletionListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class GObject
public EventType getEventType(java.lang.String signal)
getEventType
in class GObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |