- java.lang.Object
-
- javafx.scene.control.SkinBase<C>
-
- javafx.scene.control.skin.LabeledSkinBase<C>
-
- javafx.scene.control.skin.CellSkinBase<DateCell>
-
- javafx.scene.control.skin.DateCellSkin
-
- すべての実装されたインタフェース:
Skin<C>
public class DateCellSkin extends CellSkinBase<DateCell>
DateCellコントロールのデフォルトのスキン実装。- 導入されたバージョン:
- 9
- 関連項目:
DateCell
-
-
プロパティのサマリー
-
クラス javafx.scene.control.skin.CellSkinBaseから継承したプロパティ
cellSize
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 DateCellSkin(DateCell control)新しいDateCellSkinインスタンスを作成し、必要な子ノードをControlchildrenリストにインストールするとともに、キー、マウスなどのイベントを処理するために必要な入力マッピングを作成します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 protected doublecomputePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)このSkinBaseの優先高を計算します。protected doublecomputePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)このSkinBaseの優先幅を計算します。voiddispose()スキンがSkinnableで置き換えられたときに、Skinnableによって呼び出されます。protected voidlayoutChildren(double x, double y, double w, double h)レイアウト・アルゴリズムは次のように動作: - ラベル付きのw/h、グラフィックw/h、テキストw/hを取得- graphicVPos、graphicHPos、graphicTextGap、グラフィックw/h、テキストw/hに基づいてコンテンツをコンピュート- (必要に応じてテキスト・コンテンツがあらかじめ切り捨てられていることに注意してください) - コンテンツw/hおよびラベル付きw/hに基づいてコンテンツx/yをコンピュートし、ラベル付きhposおよびvpos - グラフィックとテキストを配置protected voidupdateChildren()LabeledSkinBaseによって管理されている子を更新します。これは、LabeledグラフィックまたはTextノードのいずれかです。-
class javafx.scene.control.skin.CellSkinBaseから継承したメソッド
cellSizeProperty, getCellSize, getClassCssMetaData, getCssMetaData
-
class javafx.scene.control.skin.LabeledSkinBaseから継承したメソッド
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, layoutLabelInArea, layoutLabelInArea, queryAccessibleAttribute
-
クラス java.lang.Objectから継承されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、toString、wait、wait、wait
-
class javafx.scene.control.SkinBaseから継承したメソッド
consumeMouseEvents, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, registerChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners
-
-
-
-
メソッドの詳細
-
dispose
public void dispose()
スキンがSkinnableで置き換えられたときに、Skinnableによって呼び出されます。 このメソッドを使用すると、スキンが必要なくなった場合に、Skinがそれ自体をクリーンアップするために必要なロジックを実装できます。 ネイティブ・リソースを解放するために使用できます。 disposeの呼出し後、メソッドSkin.getSkinnable()およびSkin.getNode()はnullを返します。 disposeを2回呼び出しても何も行われません。
-
updateChildren
protected void updateChildren()
LabeledSkinBaseによって管理されている子を更新します。これは、LabeledグラフィックまたはTextノードのいずれかです。 実際に使用する必要のあるノードのみが使用されます。 たとえば、GRAPHIC_ONLYのContentDisplayでは、テキスト・ノードは追加されず、ContentDisplayがTEXT_ONLYの場合、グラフィックは追加されません。- オーバーライド:
- クラス
LabeledSkinBase<DateCell>のupdateChildren
-
layoutChildren
protected void layoutChildren(double x, double y, double w, double h)レイアウト・アルゴリズムは次のように動作: - ラベル付きのw/h、グラフィックw/h、テキストw/hを取得- graphicVPos、graphicHPos、graphicTextGap、グラフィックw/h、テキストw/hに基づいてコンテンツをコンピュート- (必要に応じてテキスト・コンテンツがあらかじめ切り捨てられていることに注意してください) - コンテンツw/hおよびラベル付きw/hに基づいてコンテンツx/yをコンピュートし、ラベル付きhposおよびvpos - グラフィックとテキストを配置- オーバーライド:
- クラス
LabeledSkinBase<DateCell>のlayoutChildren - パラメータ:
x- xの位置y- yの位置w- 幅h- 高さ
-
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)このSkinBaseの優先幅を計算します。 デフォルトの実装では、この幅は、その管理対象の子がそれらの優先幅で現在の位置に配置されているときに、これらにより占有された領域の幅として計算されます。- オーバーライド:
- クラス
LabeledSkinBase<DateCell>のcomputePrefWidth - パラメータ:
height- 推奨される幅がそれに依存する場合に使用する必要がある高さtopInset- ピクセル・スナップされた上枠rightInset- ピクセル・スナップされた右枠bottomInset- ピクセル・スナップされた下枠leftInset- ピクセル・スナップされた左枠- 戻り値:
- 計算された優先幅
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)このSkinBaseの優先高を計算します。 デフォルトの実装では、この高さは、その管理対象の子がそれらの優先高で現在の位置に配置されているときに、これらにより占有された領域の高さとして計算されます。- オーバーライド:
- クラス
LabeledSkinBase<DateCell>のcomputePrefHeight - パラメータ:
width- 推奨される高さがそれに依存する場合に使用する必要がある幅topInset- ピクセル・スナップされた上枠rightInset- ピクセル・スナップされた右枠bottomInset- ピクセル・スナップされた下枠leftInset- ピクセル・スナップされた左枠- 戻り値:
- 計算された優先高
-
-