com.intel.ui
Interface Clickable
-
- All Known Implementing Classes:
- Button
public interface Clickable
This interface represents aWidget
that is "activated" by external mouse clicks. AClickable
widget can not be added to another compositeClickable
widget.
-
-
Method Detail
-
intersect
boolean intersect(XYPair clickLocation) throws UiException
Returns true if this widget intersects with the location of the mouse click, and false othewise. Note that widget intersection can only be checked after theDialog
containing this widget was rendered.- Parameters:
clickLocation
- The location where the mouse click occurred.- Returns:
- true if the click intersects with the widget bounding box, false otherwise.
- Throws:
UiNotInitializedException
- if theDialog
containing this widget was not rendered yet.UiIllegalParameterException
- if click location is negative or extendsDialog
size limit: Dialog.DIALOG_MAX_WIDTH or Dialog.DIALOG_MAX_HEIGHTUiException
-
-