Package org.zkoss.chart
Class FocusBorder
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.FocusBorder
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class FocusBorder extends Optionable
Options for the focus border drawn around elements while navigating through them.- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description FocusBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getMargin()
Returns the focus border margin around the elements.<K,V>
Map<K,V>getStyle()
Returns the style options for the focus border drawn around elements while navigating through them.boolean
isEnabled()
Returns whether to enable/disable focus border for chart.boolean
isHideBrowserFocusOutline()
Returns whether to hide the browser's default focus indicator.void
setEnabled(boolean enabled)
Sets whether to enable/disable focus border for chart.void
setHideBrowserFocusOutline(boolean hideBrowserFocusOutline)
Sets whether to hide the browser's default focus indicator.void
setMargin(Number margin)
Sets the focus border margin around the elements.void
setStyle(String style)
Sets the style options for the focus border drawn around elements while navigating through them.<K,V>
voidsetStyle(Map<K,V> style)
Sets the style options for the focus border drawn around elements while navigating through them.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Returns whether to enable/disable focus border for chart.Default:
true
-
setEnabled
public void setEnabled(boolean enabled)
Sets whether to enable/disable focus border for chart.Default:
true
-
isHideBrowserFocusOutline
public boolean isHideBrowserFocusOutline()
Returns whether to hide the browser's default focus indicator.Default:
true
-
setHideBrowserFocusOutline
public void setHideBrowserFocusOutline(boolean hideBrowserFocusOutline)
Sets whether to hide the browser's default focus indicator.Default:
true
-
getMargin
public Number getMargin()
Returns the focus border margin around the elements.Default:
2
-
setMargin
public void setMargin(Number margin)
Sets the focus border margin around the elements.Default:
2
-
getStyle
public <K,V> Map<K,V> getStyle()
Returns the style options for the focus border drawn around elements while navigating through them.Note that some browsers in addition draw their own borders for focused elements. These automatic borders cannot be styled by Highcharts.
Default: null
-
setStyle
public void setStyle(String style)
Sets the style options for the focus border drawn around elements while navigating through them.Note that some browsers in addition draw their own borders for focused elements. These automatic borders cannot be styled by Highcharts.
Default: null
-
setStyle
public <K,V> void setStyle(Map<K,V> style)
Sets the style options for the focus border drawn around elements while navigating through them.Note that some browsers in addition draw their own borders for focused elements. These automatic borders cannot be styled by Highcharts.
Default: null
-
-