- java.lang.Object
-
- javax.swing.text.html.CSS
-
- すべての実装されたインタフェース:
Serializable
public class CSS extends Object implements Serializable
CSS属性のセットを型保証された列挙型として定義します。 HTML View実装は、CSS属性を使用してどのように描画するかを決定します。 同時にCSS/HTML/StyleConstantsをマップするメソッドを定義します。 たとえば、フォントのような任意の短縮形プロパティは組込みプロパティにマップされています。次に、レンダリング・エンジンがサポートするCSSプロパティを挙げます。
- font-family
- font-style
- font-size (相対単位をサポート)
- font-weight
- font
- color
- background-color (透明の例外を含む)
- background-image
- background-repeat
- background-position
- background
- text-decoration (点滅やオーバーラインの例外を含む)
- vertical-align (スーパー・クラスだけ)
- text-align (中央揃え)
- margin-top
- margin-right
- margin-bottom
- margin-left
- margin
- padding-top
- padding-right
- padding-bottom
- padding-left
- padding
- border-top-style
- border-right-style
- border-bottom-style
- border-left-style
- border-style (インセット、アウトセットだけサポート、または何もサポートせず)
- border-top-color
- border-right-color
- border-bottom-color
- border-left-color
- border-color
- list-style-image
- list-style-type
- list-style-position
- font-variant
- background-attachment (バックグラウンドは常にスクロール)
- word-spacing
- letter-spacing
- text-indent
- text-transform
- line-height
- border-top-width (ボーダーを使用する必要があることを示す場合に使用)
- border-right-width
- border-bottom-width
- border-left-width
- border-width
- border-top
- border-right
- border-bottom
- border-left
- border
- width
- height
- float
- clear
- display
- white-space
- list-style
注: 特に注記がないかぎり、当分の間相対単位をサポートせず、p {margin-top :10% }を上部マージン指定なしと見なします。
- 関連項目:
StyleSheet
, 「直列化されたフォーム」
-
-
ネストされたクラスのサマリー
ネストされたクラス 修飾子と型 クラス 説明 static class
CSS.Attribute
CSS属性を保持するAttributeSetのキーとして使用される定義です。
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 CSS()
CSSオブジェクトを構築します。
-
メソッドのサマリー
すべてのメソッド staticメソッド 具象メソッド 修飾子と型 メソッド 説明 static CSS.Attribute[]
getAllAttributeKeys()
CSS属性の可能なすべてのキーのセットを返します。static CSS.Attribute
getAttribute(String name)
文字列をCSS.Attribute
オブジェクトに変換します。
-
-
-
メソッドの詳細
-
getAllAttributeKeys
public static CSS.Attribute[] getAllAttributeKeys()
CSS属性の可能なすべてのキーのセットを返します。- 戻り値:
- 可能なすべてのCSS属性キーのセット
-
getAttribute
public static final CSS.Attribute getAttribute(String name)
文字列をCSS.Attribute
オブジェクトに変換します。 指定された名前に属性がない場合は、null
を返します。- パラメータ:
name
- 型保証された列挙を取得するCSS属性の名前- 戻り値:
CSS.Attribute
オブジェクト。文字列が有効な属性キーを表さない場合はnull
-
-