- java.lang.Object
-
- javafx.scene.Node
-
- javafx.scene.Parent
-
- javafx.scene.layout.Region
-
- javafx.scene.control.Control
-
- javafx.scene.control.Labeled
-
- javafx.scene.control.Cell<T>
-
- javafx.scene.control.IndexedCell<T>
-
- javafx.scene.control.ListCell<T>
-
- javafx.scene.control.cell.ComboBoxListCell<T>
-
- 型パラメータ:
T
- ListViewに含まれる要素の型。
- すべての実装されたインタフェース:
Styleable
,EventTarget
,Skinnable
public class ComboBoxListCell<T> extends ListCell<T>
セル内にComboBox
ノードを描画するListCell
実装を含むクラス。デフォルトでは、ComboBoxListCellは、編集されていない場合は
Label
としてレンダリングされ、編集モードの場合はComboBoxとしてレンダリングされます。 ComboBoxは、デフォルトで、リスト・セル全体に表示するように拡大されます。ComboBoxListCellを作成するには、
ComboBox
メニューが表示されるとユーザーに表示される0以上のアイテムを提供する必要があります。 これらのアイテムはListViewアイテム・シーケンスと同じ型である必要があり、これにより、たとえば、選択時にitems
リストの既存値を置き換えます。- 導入されたバージョン:
- JavaFX 2.2
-
-
プロパティのサマリー
プロパティ Type プロパティ 説明 BooleanProperty
comboBoxEditable
ユーザーに表示する場合にComboBoxを編集可能にするかどうかを表すプロパティ。ObjectProperty<StringConverter<T>>
converter
StringConverter
プロパティ。-
クラス javafx.scene.control.Controlで宣言されたプロパティ
contextMenu、skin、tooltip
-
クラス javafx.scene.control.IndexedCellで宣言されたプロパティ
index
-
クラス javafx.scene.control.Labeledで宣言されたプロパティ
alignment、contentDisplay、ellipsisString、font、graphic、graphicTextGap、labelPadding、lineSpacing、mnemonicParsing、textAlignment、textFill、textOverrun、text、underline、wrapText
-
クラス javafx.scene.Nodeで宣言されたプロパティ
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
クラス javafx.scene.Parentで宣言されたプロパティ
needsLayout
-
クラス javafx.scene.layout.Regionで宣言されたプロパティ
background、border、cacheShape、centerShape、height、insets、maxHeight、maxWidth、minHeight、minWidth、opaqueInsets、padding、prefHeight、prefWidth、scaleShape、shape、snapToPixel、width
-
-
フィールドのサマリー
-
クラス javafx.scene.Nodeで宣言されたフィールド
BASELINE_OFFSET_SAME_AS_HEIGHT
-
クラス javafx.scene.layout.Regionで宣言されたフィールド
USE_COMPUTED_SIZE、USE_PREF_SIZE
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 ComboBoxListCell()
空のアイテム・リストを持つデフォルトのComboBoxListCellを作成します。ComboBoxListCell(ObservableList<T> items)
ComboBoxが表示されているときにComboBox
の移入に使用される、指定されたアイテムを含むデフォルトのComboBoxListCell
インスタンスを作成します。ComboBoxListCell(StringConverter<T> converter, ObservableList<T> items)
ComboBox
が表示されるときに、その値の移入に使用される、指定されたアイテムを含むComboBoxListCell
インスタンス、およびアイテムをユーザーが読取り可能な形式に変換するために使用されるStringConverter
を作成します。ComboBoxListCell(StringConverter<T> converter, T... items)
ComboBox
が表示されるときに、その値の移入に使用される、指定されたアイテムを含むComboBoxListCell
インスタンス、およびアイテムをユーザーが読取り可能な形式に変換するために使用されるStringConverter
を作成します。ComboBoxListCell(T... items)
ComboBoxが表示されているときにComboBox
の移入に使用される、指定されたアイテムを含むデフォルトのComboBoxListCell
インスタンスを作成します。
-
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 BooleanProperty
comboBoxEditableProperty()
ユーザーに表示する場合にComboBoxを編集可能にするかどうかを表すプロパティ。ObjectProperty<StringConverter<T>>
converterProperty()
StringConverter
プロパティ。static <T> Callback<ListView<T>,ListCell<T>>
forListView(ObservableList<T> items)
ListView
コントロールで使用するComboBoxセル・ファクトリを作成します。static <T> Callback<ListView<T>,ListCell<T>>
forListView(StringConverter<T> converter, ObservableList<T> items)
ListView
コントロールで使用するComboBoxセル・ファクトリを作成します。static <T> Callback<ListView<T>,ListCell<T>>
forListView(StringConverter<T> converter, T... items)
ListView
コントロールで使用するComboBoxセル・ファクトリを作成します。static <T> Callback<ListView<T>,ListCell<T>>
forListView(T... items)
ListView
コントロールで使用するComboBoxセル・ファクトリを作成します。StringConverter<T>
getConverter()
このセルで使用するStringConverter
を返します。ObservableList<T>
getItems()
ChoiceBoxが表示されているときにChoiceBoxに表示されるアイテムを返します。boolean
isComboBoxEditable()
ComboBoxが編集可能な場合はtrueを返します。void
setComboBoxEditable(boolean value)
ComboBoxを編集可能に構成します(オプション以外のユーザー入力をドロップダウン・リストに提供することを許可します)。void
setConverter(StringConverter<T> value)
このセルで使用するStringConverter
を設定します。-
クラス javafx.scene.control.Cellで宣言されたメソッド
cancelEdit, commitEdit, editableProperty, editingProperty, emptyProperty, getInitialFocusTraversable, getItem, isEditable, isEditing, isEmpty, isItemChanged, isSelected, itemProperty, selectedProperty, setEditable, setItem, startEdit, updateItem, updateSelected
-
クラス javafx.scene.control.Controlで宣言されたメソッド
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, contextMenuProperty, createDefaultSkin, getContextMenu, getCssMetaData, getTooltip, isResizable, setContextMenu, setTooltip, skinProperty, tooltipProperty
-
クラス javafx.scene.control.IndexedCellで宣言されたメソッド
getIndex、indexProperty、updateIndex
-
クラス javafx.scene.control.Labeledで宣言されたメソッド
alignmentProperty, contentDisplayProperty, ellipsisStringProperty, fontProperty, getAlignment, getClassCssMetaData, getContentBias, getContentDisplay, getControlCssMetaData, getEllipsisString, getFont, getGraphic, getGraphicTextGap, getInitialAlignment, getLabelPadding, getLineSpacing, getText, getTextAlignment, getTextFill, getTextOverrun, graphicProperty, graphicTextGapProperty, isMnemonicParsing, isUnderline, isWrapText, labelPaddingProperty, lineSpacingProperty, mnemonicParsingProperty, setAlignment, setContentDisplay, setEllipsisString, setFont, setGraphic, setGraphicTextGap, setLineSpacing, setMnemonicParsing, setText, setTextAlignment, setTextFill, setTextOverrun, setUnderline, setWrapText, textAlignmentProperty, textFillProperty, textOverrunProperty, textProperty, underlineProperty, wrapTextProperty
-
クラス javafx.scene.control.ListCellで宣言されたメソッド
getListView, listViewProperty, updateListView
-
クラス javafx.scene.Nodeで宣言されたメソッド
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookup, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, queryAccessibleAttribute, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
-
クラス java.lang.Objectで宣言されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、wait、wait、wait
-
クラス javafx.scene.Parentで宣言されたメソッド
getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
-
クラス javafx.scene.layout.Regionで宣言されたメソッド
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computePrefHeight, computePrefWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
-
インタフェース javafx.css.Styleableで宣言されたメソッド
getStyleableNode, getStyleClass
-
-
-
-
プロパティの詳細
-
converter
public final ObjectProperty<StringConverter<T>> converterProperty
StringConverter
プロパティ。- 戻り値:
StringConverter
プロパティ
-
comboBoxEditable
public final BooleanProperty comboBoxEditableProperty
ユーザーに表示する場合にComboBoxを編集可能にするかどうかを表すプロパティ。
-
-
コンストラクタの詳細
-
ComboBoxListCell
public ComboBoxListCell()
空のアイテム・リストを持つデフォルトのComboBoxListCellを作成します。
-
ComboBoxListCell
@SafeVarargs public ComboBoxListCell(T... items)
ComboBoxが表示されているときにComboBox
の移入に使用される、指定されたアイテムを含むデフォルトのComboBoxListCell
インスタンスを作成します。- パラメータ:
items
- ユーザーが選択した場合に、ComboBoxポップアップ・メニューに表示されるアイテム。
-
ComboBoxListCell
@SafeVarargs public ComboBoxListCell(StringConverter<T> converter, T... items)
ComboBox
が表示されるときに、その値の移入に使用される、指定されたアイテムを含むComboBoxListCell
インスタンス、およびアイテムをユーザーが読取り可能な形式に変換するために使用されるStringConverter
を作成します。- パラメータ:
converter
- 型Tのアイテムをユーザーが読取り可能な文字列に変換して、ComboBoxポップアップ・メニューに表示できるようにするStringConverter
。items
- ユーザーが選択した場合に、ComboBoxポップアップ・メニューに表示されるアイテム。
-
ComboBoxListCell
public ComboBoxListCell(ObservableList<T> items)
ComboBoxが表示されているときにComboBox
の移入に使用される、指定されたアイテムを含むデフォルトのComboBoxListCell
インスタンスを作成します。- パラメータ:
items
- ユーザーが選択した場合に、ComboBoxポップアップ・メニューに表示されるアイテム。
-
ComboBoxListCell
public ComboBoxListCell(StringConverter<T> converter, ObservableList<T> items)
ComboBox
が表示されるときに、その値の移入に使用される、指定されたアイテムを含むComboBoxListCell
インスタンス、およびアイテムをユーザーが読取り可能な形式に変換するために使用されるStringConverter
を作成します。- パラメータ:
converter
- 型Tのアイテムをユーザーが読取り可能な文字列に変換して、ComboBoxポップアップ・メニューに表示できるようにするStringConverter
。items
- ユーザーが選択した場合に、ComboBoxポップアップ・メニューに表示されるアイテム。
-
-
メソッドの詳細
-
forListView
@SafeVarargs public static <T> Callback<ListView<T>,ListCell<T>> forListView(T... items)
-
forListView
@SafeVarargs public static <T> Callback<ListView<T>,ListCell<T>> forListView(StringConverter<T> converter, T... items)
ListView
コントロールで使用するComboBoxセル・ファクトリを作成します。 デフォルトでは、ComboBoxCellは、編集されていない場合はLabel
としてレンダリングされ、編集モードの場合はComboBoxとしてレンダリングされます。 ComboBoxは、デフォルトで、リスト・セル全体に表示するように拡大されます。- 型パラメータ:
T
- ListViewに含まれる要素の型。- パラメータ:
converter
- (型Tの)指定されたアイテムをユーザーに表示するために文字列に変換するStringConverter
。items
-ComboBox
メニューが表示されるとユーザーに表示される0以上のアイテム。 これらのアイテムはListViewアイテム・リストと同じ型である必要があり、これにより、たとえば、選択時にitems
リストの既存値を置き換えます。- 戻り値:
- ListViewに含まれる要素の型で動作できるListCellを返す
Callback
。
-
forListView
public static <T> Callback<ListView<T>,ListCell<T>> forListView(ObservableList<T> items)
ListView
コントロールで使用するComboBoxセル・ファクトリを作成します。 デフォルトでは、ComboBoxCellは、編集されていない場合はLabel
としてレンダリングされ、編集モードの場合はComboBoxとしてレンダリングされます。 ComboBoxは、デフォルトで、リスト・セル全体に表示するように拡大されます。- 型パラメータ:
T
- ListViewに含まれる要素の型。- パラメータ:
items
-ComboBox
メニューが表示されるとユーザーに表示される0以上のアイテムを含むObservableList
。 これらのアイテムはListViewアイテム・シーケンスと同じ型である必要があり、これにより、たとえば、選択時にitems
リストの既存値を置き換えます。- 戻り値:
- ListViewに含まれる要素の型で動作できるListCellを返す
Callback
。
-
forListView
public static <T> Callback<ListView<T>,ListCell<T>> forListView(StringConverter<T> converter, ObservableList<T> items)
ListView
コントロールで使用するComboBoxセル・ファクトリを作成します。 デフォルトでは、ComboBoxCellは、編集されていない場合はLabel
としてレンダリングされ、編集モードの場合はComboBoxとしてレンダリングされます。 ComboBoxは、デフォルトで、リスト・セル全体に表示するように拡大されます。- 型パラメータ:
T
- ListViewに含まれる要素の型。- パラメータ:
converter
- (型Tの)指定されたアイテムをユーザーに表示するために文字列に変換するStringConverter
。items
-ComboBox
メニューが表示されるとユーザーに表示される0以上のアイテムを含むObservableList
。 これらのアイテムはListViewアイテム・シーケンスと同じ型である必要があり、これにより、たとえば、選択時にitems
リストの既存値を置き換えます。- 戻り値:
- ListViewに含まれる要素の型で動作できるListCellを返す
Callback
。
-
converterProperty
public final ObjectProperty<StringConverter<T>> converterProperty()
StringConverter
プロパティ。- 戻り値:
StringConverter
プロパティ
-
setConverter
public final void setConverter(StringConverter<T> value)
このセルで使用するStringConverter
を設定します。- パラメータ:
value
- このセルで使用されるStringConverter
-
getConverter
public final StringConverter<T> getConverter()
このセルで使用するStringConverter
を返します。- 戻り値:
- このセルで使用される
StringConverter
-
comboBoxEditableProperty
public final BooleanProperty comboBoxEditableProperty()
ユーザーに表示する場合にComboBoxを編集可能にするかどうかを表すプロパティ。
-
setComboBoxEditable
public final void setComboBoxEditable(boolean value)
ComboBoxを編集可能に構成します(オプション以外のユーザー入力をドロップダウン・リストに提供することを許可します)。- パラメータ:
value
- このComboBoxの編集可能な値
-
isComboBoxEditable
public final boolean isComboBoxEditable()
ComboBoxが編集可能な場合はtrueを返します。- 戻り値:
- ComboBoxが編集可能な場合はtrue
-
getItems
public ObservableList<T> getItems()
ChoiceBoxが表示されているときにChoiceBoxに表示されるアイテムを返します。- 戻り値:
- ChoiceBoxが表示されているときに表示されるアイテム
-
-