新規作成  編集  Ruby-GNOME2 Project Website  ページ一覧  検索  更新履歴  編集履歴  RSS  ログイン

Gtk::ComboBoxEntry

Gtk::ComboBoxEntry クラス

A text entry field with a dropdown list.

クラスメソッド

Gtk::ComboBoxEntry.new(is_text_only = true)
Creates a new Gtk::ComboBoxEntry which has a Gtk::Entry as child. If is_text_only is true, you should only manipulate its data source with the following convenience methods: Gtk::ComboBox#append_text, Gtk::ComboBox#insert_text, Gtk::ComboBOx#prepend_text?? and Gtk::ComboBox#remove_text. If is_text_only is false, you should set a model using Gtk::COmboBox#model=? and a text_column * using Gtk::ComboBoxEntry#text_column= after construction. Since 2.4
Gtk::ComboBoxEntry.new(model, text_column)
Creates a new Gtk::ComboBoxEntry which has a Gtk::Entry as child and a list of strings as popup. You can get the Gtk::Entry from a Gtk::ComboBoxEntry using Gtk::Bin#child. To add and remove strings from the list, just modify model using its data manipulation API. Since 2.4
  • text_column: A column in model to get the strings from.
  • Returns: A new Gtk::ComboBoxEntry.

インスタンスメソッド

text_column
Returns the column which entry_box is using to get the strings from. Since 2.4
  • Returns: A column in the data source model
text_column=(text_column)
Sets the model column which entry_box should use to get strings from. Since 2.4
  • text_column: A column in model to get the strings from.
  • Returns: text_column
set_text_column(text_column)
Same as Gtk::ComboBoxEntry#text_column=. Since 2.4
  • text_column: A column in model to get the strings from.
  • Returns: self

プロパティ

text-column: Integer (Read/Write)
A column in the data source model to get the strings from. Since 2.4
  • Allowed values: >= -1
  • Default value: -1

更新履歴

  • 2014-06-15 インクルードされているモジュールの項目を追加。 - きたがわ
  • - Masao?
更新日時:2014/06/15 23:51:19
キーワード:
参照:[Gtk::CellRendererCombo] [Ruby/GTK] [Gtk::ComboBoxEntry] [Ruby/GTK Object Hierarchy]