Interface zebkit.ui.DrawFocusMarker <zebkit.ui>

Interface to add focus marker rendering. Focus marker is drawn either over the component space or around the specified anchor child component.




public void setCanHaveFocus (b)

Says if the component can hold focus or not


Parameters:
  • b <Boolean>

    true if the component can gain focus

public chainable setFocusAnchorComponent (c)

Set the specified children component to be used as focus marker view anchor component. Anchor component is a component over that the focus marker view is painted.


Parameters:
public chainable setFocusMarkerView (c)

Set the view that has to be rendered as focus marker when the component gains focus.


Parameters:
  • c <String | zebkit.draw.View | Function>

    a view. The view can be a color or border string code or view or an implementation of zebkit.draw.View "paint(g,x,y,w,h,t)" method.


public <zebkit.ui.Panel> focusComponent

Component that has to be used as focus indicator anchor

public <Integer> focusMarkerGaps

Focus marker vertical and horizontal gaps.

public <zebkit.draw.View> focusMarkerView

Reference to an anchor focus marker component