Interface Closable<S extends Closable<S>>
- Type Parameters:
S- the control's own type, whichclose()returns
- All Superinterfaces:
EventTarget<S>
- All Known Subinterfaces:
ComboBox<T>, DatePicker, DateTimePicker, DropDownButton, Flyout, InfoBar, Menu, Openable<S>, Overlay, Popup<S>, TimePicker, Window
Something that can be closed, such as a window, an overlay, a combo box's list or a menu.
Do not implement this interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventType<RequestEvent<Closable<?>>> Asked before the user closes it, as each implementation describes, such as a press on a window's close button or Escape.static final EventType<ControlEvent<Closable<?>>> Told after it closed, by the user or from code. -
Method Summary
Methods inherited from interface EventTarget
onEvent, onEvent, subscribe
-
Field Details
-
CLOSE
Asked before the user closes it, as each implementation describes, such as a press on a window's close button or Escape. Cancel it to keep it open. Fires only for the user's actions, and only where the implementation says so. -
CLOSED
Told after it closed, by the user or from code.
-
-
Method Details
-
close
-