Update modal docs

- Relates #825
This commit is contained in:
Janne Valkealahti
2023-11-23 09:08:17 +00:00
parent b7ad099cc2
commit ead34d69e1
3 changed files with 46 additions and 1 deletions

View File

@@ -24,9 +24,25 @@ import org.springframework.lang.Nullable;
*/
public interface ViewService {
/**
* Gets a current modal view.
*
* @return current modal view
*/
@Nullable
View getModal();
void setModal(View view);
/**
* Sets a new modal view. Setting modal to {@code null} clears existing modal.
*
* @param view a view to use as modal
*/
void setModal(@Nullable View view);
/**
* Sets a view to be focused. Setting focus to {@code null} clears focused view.
*
* @param view a view to be focused
*/
void setFocus(@Nullable View view);
}