Package net.runelite.api.events
Class FocusChanged
- java.lang.Object
-
- net.runelite.api.events.FocusChanged
-
public class FocusChanged extends java.lang.ObjectAn event where the focus state of the client changes.Examples of when this event may trigger include:
- Alt-tabbing to a different window
- Clicking outside the client window
- Clicking the client window from a different focused window
-
-
Constructor Summary
Constructors Constructor Description FocusChanged()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)inthashCode()booleanisFocused()The new focus state.voidsetFocused(boolean focused)The new focus state.java.lang.StringtoString()
-
-
-
Method Detail
-
isFocused
public boolean isFocused()
The new focus state.
-
setFocused
public void setFocused(boolean focused)
The new focus state.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-