Interface Focusable
- All Known Implementing Classes:
SimpleListModel
public interface Focusable
Ability to focus view. Mostly used to focus detail view in list-detail view pattern. First setsetOnFocusViewwhich will be used when callingfocusView.
class FocusableImpl implements Focusable {
private Runnable onFocusView;
public void focusView() {
if (onFocusView != null) {
onFocusView.run();
}
}
public void setOnFocusView(Runnable command) {
onFocusView = command;
}
}
-
Method Summary
Modifier and TypeMethodDescriptionvoidRuns predefined runnable.voidsetOnFocusView(Runnable command) Sets runnable command which should be executed infocusView.
-
Method Details
-
focusView
void focusView()Runs predefined runnable. -
setOnFocusView
Sets runnable command which should be executed infocusView.
-