APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

public Class StyleAttributeMapHelper

extends Object
Class Inheritance
Imports
com.sun.javafx.util.Utils, jfx.incubator.scene.control.richtext.model.StyleAttribute, .StyleAttributeMap

Provides access to private methods in StyleAttributeMap.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private static StyleAttributeMapHelper.Accessor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static StyleAttributeMap

Returns:

the instance of StyleAttributeMap, or null
filter
(StyleAttributeMap
the style attribute map
ss
,
boolean
determines which attributes to retain
forParagraph
)

Returns a new StyleAttributeMap instance which contains only paragraph attributes when forParagraph=true, or character attributes when forParagraph=false, or null when no attributes of the specified type are found.

public static StyleAttributeMap

Returns:

the instance of StyleAttributeMap, or null
getCharacterAttrs
(StyleAttributeMap
the style attribute map
ss
)

Returns a new StyleAttributeMap instance which contains only the character attributes, or null if no character attributes found.

public static StyleAttributeMap

Returns:

the instance of StyleAttributeMap, or null
getParagraphAttrs
(StyleAttributeMap
the style attribute map
ss
)

Returns a new StyleAttributeMap instance which contains only the paragraph attributes, or null if no paragraph attributes found.

public static boolean

Returns:

true if the given attribute is a character one (isParagraph = false), or a paragraph one (isParagraph = true)
isAcceptable
(StyleAttribute<?>
the attribute
a
,
boolean
whether the expected type is a paragraph or a character
isParagraph
)

Returns true if the given attribute is a character one (isParagraph = false), or a paragraph one (isParagraph = true)

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessorback to summary
private static StyleAttributeMapHelper.Accessor accessor

Constructor Detail

StyleAttributeMapHelperback to summary
public StyleAttributeMapHelper()

Method Detail

filterback to summary
public static StyleAttributeMap filter(StyleAttributeMap ss, boolean forParagraph)

Returns a new StyleAttributeMap instance which contains only paragraph attributes when forParagraph=true, or character attributes when forParagraph=false, or null when no attributes of the specified type are found.

Parameters
ss:StyleAttributeMap

the style attribute map

forParagraph:boolean

determines which attributes to retain

Returns:StyleAttributeMap

the instance of StyleAttributeMap, or null

getCharacterAttrsback to summary
public static StyleAttributeMap getCharacterAttrs(StyleAttributeMap ss)

Returns a new StyleAttributeMap instance which contains only the character attributes, or null if no character attributes found.

Parameters
ss:StyleAttributeMap

the style attribute map

Returns:StyleAttributeMap

the instance of StyleAttributeMap, or null

getParagraphAttrsback to summary
public static StyleAttributeMap getParagraphAttrs(StyleAttributeMap ss)

Returns a new StyleAttributeMap instance which contains only the paragraph attributes, or null if no paragraph attributes found.

Parameters
ss:StyleAttributeMap

the style attribute map

Returns:StyleAttributeMap

the instance of StyleAttributeMap, or null

isAcceptableback to summary
public static boolean isAcceptable(StyleAttribute<?> a, boolean isParagraph)

Returns true if the given attribute is a character one (isParagraph = false), or a paragraph one (isParagraph = true)

Parameters
a:StyleAttribute<?>

the attribute

isParagraph:boolean

whether the expected type is a paragraph or a character

Returns:boolean

true if the given attribute is a character one (isParagraph = false), or a paragraph one (isParagraph = true)

setAccessorback to summary
public static void setAccessor(StyleAttributeMapHelper.Accessor a)
com.sun.jfx.incubator.scene.control.richtext back to summary

public Interface StyleAttributeMapHelper.Accessor


Method Summary

Modifier and TypeMethod and Description
public StyleAttributeMap
filterAttributes(StyleAttributeMap ss, boolean isParagraph)

Method Detail

filterAttributesback to summary
public StyleAttributeMap filterAttributes(StyleAttributeMap ss, boolean isParagraph)