public interface UiFeatureOpenClose extends UiFeature, AttributeWriteVisible
features of an object (e.g. a window) that can be
opened and closed. It allows to
add and remove instances of close handlers as well as open
handlers.| Modifier and Type | Method and Description |
|---|---|
void |
addCloseHandler(UiHandlerEventClose handler)
This method adds the given
UiHandlerEventClose to this object. |
void |
addOpenHandler(UiHandlerEventOpen handler)
This method adds the given
UiHandlerEventOpen to this object. |
void |
close()
Closes this object so it gets
hidden. |
void |
open()
Opens this object so it gets
visible. |
boolean |
removeCloseHandler(UiHandlerEventClose handler)
This method removes the given
UiHandlerEventClose from this object. |
boolean |
removeOpenHandler(UiHandlerEventOpen handler)
This method removes the given
UiHandlerEventOpen from this object. |
setVisibleisVisiblevoid open()
visible. Has the same effect as
setVisible(true).void close()
hidden. Has the same effect as
setVisible(false).void addOpenHandler(UiHandlerEventOpen handler)
UiHandlerEventOpen to this object.handler - is the UiHandlerEventOpen to add.void addCloseHandler(UiHandlerEventClose handler)
UiHandlerEventClose to this object.handler - is the UiHandlerEventClose to add.boolean removeOpenHandler(UiHandlerEventOpen handler)
UiHandlerEventOpen from this object.handler - is the UiHandlerEventClose to remove.true if the handler has been removed successfully, false
if it was NOT registered and nothing has changed.boolean removeCloseHandler(UiHandlerEventClose handler)
UiHandlerEventClose from this object.handler - is the UiHandlerEventClose to remove.true if the handler has been removed successfully, false
if it was NOT registered and nothing has changed.Copyright © 2001–2016 mmm-Team. All rights reserved.