Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.ComboBox
Constructor Summary | |
| |
| |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
int |
|
TreeIter |
|
String | |
boolean | |
int | |
static ComboBox |
|
Class |
|
EventType |
|
boolean | |
TreeModel |
|
AtkObject | |
TreeViewRowSeparatorMethod |
|
int | |
int | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
public ComboBox()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Constructs a new ComboBox that will contain only Strings. If you need to include objects other than strings you must use the constructor that takes a TreeModel. When you use this constructor you should use the appendText, insertText, prependText, and removeText methods to add or remove text from the comboBox.
public ComboBox(Handle hndl)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Create a new Widget with a handle to a native resource returned from a call to the native libraries.
- Parameters:
public ComboBox(TreeModel model)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Creates a new ComboBox. Ifmodel
is not null, the model of the ComboBox is initialized to the supplied one. Otherwise an empty ComboBox is created. If you use this constructor you should not use the appendText, insertText, prependText, or removeText methods. You should update the model when you need to change the values in the ComboBox.
- Parameters:
model
- A TreeModel or null.
public void addAttributeMapping(CellRenderer renderer, CellRendererAttribute attribute, DataColumn column)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Adds an attribute mapping to the list in the CellLayout. The column is the column of the model to get a value from, and the attribute is the parameter on cell to be set from the value.
- Specified by:
- addAttributeMapping in interface CellLayout
public void addListener(ComboBoxListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to handle ComboBox events.
- See Also:
ComboBoxListener
public void appendText(String text)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Appends a string to the list of strings in the ComboBox. This method can only be called if you created the ComboBox with the no-op constructor.
- Parameters:
text
-
public void clear()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Unsets all the mappings on all renderers on the CellLayout and removes all renderers from the CellLayout.
- Specified by:
- clear in interface CellLayout
public void clearAttributeMappings(CellRenderer renderer)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Clears all existing attributes previously set withaddAttributeMapping(CellRenderer,CellRendererAttribute,DataColumn)
.
- Specified by:
- clearAttributeMappings in interface CellLayout
public int getActive()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the index of the currently active item or -1 if there's no active item.
public TreeIter getActiveIter()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns a TreeIter that is pointing to the currently active item in the ComboBox.
public String getActiveText()
public boolean getAddTearoffs()
public int getColumnSpanColumn()
public static ComboBox getComboBox(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.
public Class getEventListenerClass(String signal)
- Overrides:
- getEventListenerClass in interface Container
public EventType getEventType(String signal)
- Overrides:
- getEventType in interface Container
public boolean getFocusOnClick()
public TreeModel getModel()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the TreeModel for the ComboBox.
public TreeViewRowSeparatorMethod getRowSeparatorMethod()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Get the object which is used to determine whether a row should be drawn as a separator.
- Returns:
- The TreeViewRowSeparatorMethod or null if no method has been set.
public int getRowSpanColumn()
public int getWrapWidth()
public void insertText(int position, String text)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Inserts a string into the list of strings in the ComboBox at the provided position. This method can only be called if you created the ComboBox with the no-op constructor.
- Parameters:
position
-text
-
public void packEnd(CellRenderer renderer, boolean expand)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Adds the cell to the end of the CellLayout. If expand is FALSE, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE.
- Specified by:
- packEnd in interface CellLayout
public void packStart(CellRenderer renderer, boolean expand)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Packs the cell into the beginning of the CellLayout. If expand is FALSE, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE.
- Specified by:
- packStart in interface CellLayout
public void popdown()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Hides the menu or dropdown list of the ComboBox.
public void popup()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Pops up the menu or dropdown list of the ComboBox.
public void prependText(String text)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Prepends a string to the list of strings in the ComboBox. This method can only be called if you created the ComboBox with the no-op constructor.
- Parameters:
text
-
public void removeListener(ComboBoxListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes a listener
- See Also:
addListener(ComboBoxListener)
public void removeText(int position)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes the string at the provided position from the list of strings in the ComboBox. This method can only be called if you created the ComboBox with the no-op constructor.
- Parameters:
position
-
public void reorder(CellRenderer renderer, int position)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Re-inserts the renderer at position. Note that the renderer has already to be packed into the CellLayout for this to function properly.
- Specified by:
- reorder in interface CellLayout
public void setActive(int index)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the active item of the ComboBox to be index.
- Parameters:
index
-
public void setActiveIter(TreeIter iter)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the current active item to the one referenced by iter.
- Parameters:
iter
-
public void setAddTearoffs(boolean addTearoffs)
public void setColumnSpanColumn(int columnSpan)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the column span for the ComboBox. The column span is the number of columns an item should span.
- Parameters:
columnSpan
-
public void setFocusOnClick(boolean focusOnClick)
public void setModel(TreeModel model)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the model for the ComboBox.
- Parameters:
model
-
public void setRowSeparatorMethod(TreeViewRowSeparatorMethod method)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Set the object which is used to determine whether a row should be drawn as a separator.
- Parameters:
method
- The TreeViewRowSeparatorMethod or null if no separators are to be drawn (the default).
public void setRowSpanColumn(int rowSpan)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the row span for the ComboBox. The row span is the number of rows an item should span.
- Parameters:
rowSpan
-
public void setWrapWidth(int width)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the wrap width of the ComboBox. The wrap width is the preferred number of columns when you want the popup to be layed out in a table.
- Parameters:
width
-