Package com.spinyowl.legui.event
Class FocusEvent<T extends Component>
java.lang.Object
com.spinyowl.legui.event.Event<T>
com.spinyowl.legui.event.FocusEvent<T>
Focus event. Occurs when component receive or lose focus.
-
Constructor Summary
ConstructorsConstructorDescriptionFocusEvent(T component, Context context, Frame frame, Component nextFocus, boolean focused) Used to create focus event. -
Method Summary
Methods inherited from class com.spinyowl.legui.event.Event
getContext, getFrame, getTargetComponent
-
Constructor Details
-
FocusEvent
Used to create focus event.- Parameters:
component- event receiver.context- context.nextFocus- focus receiver.focused- state of component.frame- frame.
-
-
Method Details
-
isFocused
public boolean isFocused()Returns true if component receive focus.- Returns:
- true if component receive focus.
-
getNextFocus
Returns component which received focus.- Returns:
- component which received focus.
-
toString
-
equals
-
hashCode
public int hashCode()
-