public class FlexNumericStepper extends FlexObject
NumericStepper コントロールは、単一行のテキスト入力フィールドと、使用できる値を増減するための 2 つの矢印ボタンから構成されます。 上矢印キーと下矢印キーを使用して増減する値を循環させることもできます。
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
FlexNumericStepper(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい FlexNumericStepper を作成します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
change(double value)
ユーザーによる操作の結果として NumericStepper コントロールの値が変更されたときにディスパッチされます。
|
Color |
getColor()
[読み取り専用] コンポーネント ラベルを含むコンポーネントのテキストの色。
|
Color |
getDisabledColor()
[読み取り専用] コンポーネントが無効な場合のテキストの色。
|
List<Color> |
getFillColors()
[読み取り専用] コントロールの背景を濃淡色化するのに使用する色。
|
String |
getFontFamily()
[読み取り専用] 使用するフォントの名前。
|
double |
getFontSize()
[読み取り専用] テキストの高さ(ピクセル単位)。
|
String |
getFontStyle()
[読み取り専用] テキストがイタリック フォントかどうか。
|
String |
getFontWeight()
[読み取り専用] テキストがボールド体かどうか。
|
double |
getMaximum()
[読み取り専用] NumericStepper の最大値。
|
double |
getMinimum()
[読み取り専用] NumericStepper の最小値。
|
double |
getNextValue()
[読み取り専用] value プロパティの現在値の 1 つ後の値。
|
double |
getPreviousValue()
[読み取り専用] value プロパティの現在値の 1 つ前の値。
|
double |
getStepSize()
[読み取り専用] 値間の 0 でない変化単位。
|
String |
getTextAlign()
[読み取り専用] コンテナー内のテキストの配置。
|
String |
getTextDecoration()
[読み取り専用] テキストに下線を表示するかどうか。
|
int |
getTextIndent()
[読み取り専用] テキストの 1 行目のコンテナー左端からのオフセット(ピクセル単位)。
|
Double |
getValue()
[読み取り専用] NumericStepper コントロールのテキスト領域に表示される値。
|
void |
input(String text)
テキスト イベントについての情報を含むイベント オブジェクトを作成します。
|
void |
selectText(int beginIndex,
int endIndex)
テキスト フィールド内の選択範囲を追跡します。
|
void |
type(String keyCode)
ユーザーがキーを押したときにディスパッチされます。
|
void |
type(String keyCode,
ModifierKey keyModifier)
ユーザーがキーを押したときにディスパッチされます。
|
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocusclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeyscaptureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForPropertyequals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toStringprotected FlexNumericStepper(JtfObjectHandle handle, Desktop desktop)
handle - FlexNumericStepper を識別するハンドルdesktop - このオブジェクトが存在するデスクトップpublic void change(double value)
value - イベントがディスパッチされたときの NumericStepper コントロールの値public void input(String text)
text - ユーザーが入力したテキストの文字(1 文字以上)。 イベント リスナーは text プロパティを使ってこの情報にアクセスできます。public void selectText(int beginIndex,
int endIndex)
beginIndex - 選択範囲の開始インデックスendIndex - 選択範囲の終了インデックスpublic void type(String keyCode)
keyCode - 押したり離したりするキーのキー コード値public void type(String keyCode, ModifierKey keyModifier)
keyCode - 押したり離したりするキーのキー コード値keyModifier - 使用されるキー修飾(Ctrl キーなど)public Color getColor()
public Color getDisabledColor()
public List<Color> getFillColors()
public String getFontFamily()
完全な CSS 実装と異なり、カンマ区切りリストはサポートされません。 任意のフォント ファミリ名を使用できます。 汎用フォント名を指定した場合、適切なデバイス フォントに置換されます。 デフォルト値は Verdana です。
public double getFontSize()
ColorPicker コントロール以外のすべてのコントロールのデフォルト値は 10 です。 ColorPicker コントロールのデフォルト値は 11 です。
public String getFontStyle()
有効な値は normal と italic です。 デフォルト値は normal です。
public String getFontWeight()
Button コントロールのデフォルト値は bold です。 他のすべてのコントロールのデフォルト値は normal です。
public double getMaximum()
小数値を含む任意の数値を最大値として指定できます。 デフォルト値は 10 です。
public double getMinimum()
小数値を含む任意の数値を最小値として指定できます。 デフォルト値は 0 です。
public double getNextValue()
public double getPreviousValue()
public double getStepSize()
value プロパティは、この数の倍数にならなければなりません。 デフォルト値は 1 です。
public String getTextAlign()
ほとんどのコンポーネントのデフォルト値は left です。 FormItem コンポーネントの場合、デフォルト値は right です。 Button、LinkButton および AccordionHeader コンポーネントでは、デフォルト値は center です。このプロパティは labelPlacement プロパティが left または right に設定されている場合のみ認識されます。 labelPlacement が top または bottom に設定されている場合は、テキストおよびアイコンが中央に配置されます。
public String getTextDecoration()
none と underline です。 デフォルト値は none です。public int getTextIndent()
public Double getValue()
ユーザーが、stepSize プロパティの値の倍数でない数値を入力した場合や、maximum プロパティと minimum プロパティの範囲の外の数値を入力した場合は、自動的に最も近い有効な値に設定されます。
デフォルト値は 0 です。
getValue クラス内 TestObjectCopyright 2009-2012 Micro Focus. All Rights Reserved.