java.lang.Object
uk.co.caprica.vlcj.factory.DialogHandlerAdapter
- All Implemented Interfaces:
DialogHandler
Empty implementation of a
DialogHandler.
These empty implementations are useless by themselves, sub-classes provide the necessary functionality for the dialogs of interest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPresent a cancel dialog.voiddisplayError(Long userData, String title, String text) Present an error dialog.voiddisplayLogin(Long userData, DialogId id, String title, String text, String defaultUsername, boolean askStore) Present a login dialog.voiddisplayProgress(Long userData, DialogId id, String title, String text, int indeterminate, float position, String cancel) Present a progress dialog.voiddisplayQuestion(Long userData, DialogId id, String title, String text, DialogQuestionType type, String cancel, String action1, String action2) Present a question dialog.voidupdateProgress(Long userData, DialogId id, float position, String text) Update a progress dialog.
-
Constructor Details
-
DialogHandlerAdapter
public DialogHandlerAdapter()
-
-
Method Details
-
displayError
Description copied from interface:DialogHandlerPresent an error dialog.- Specified by:
displayErrorin interfaceDialogHandler- Parameters:
userData- user datatitle- dialog titletext- error text
-
displayLogin
public void displayLogin(Long userData, DialogId id, String title, String text, String defaultUsername, boolean askStore) Description copied from interface:DialogHandlerPresent a login dialog.- Specified by:
displayLoginin interfaceDialogHandler- Parameters:
userData- user dataid- dialog id, used to interact with this dialogtitle- dialog titletext- login textdefaultUsername- default username to display in the dialogaskStore- iftrue, ask if the credentials should be stored
-
displayQuestion
public void displayQuestion(Long userData, DialogId id, String title, String text, DialogQuestionType type, String cancel, String action1, String action2) Description copied from interface:DialogHandlerPresent a question dialog.- Specified by:
displayQuestionin interfaceDialogHandler- Parameters:
userData- user dataid- dialog id, used to interact with this dialogtitle- dialog titletext- question texttype- type of questioncancel- cancel action textaction1- first action textaction2- second action text
-
displayProgress
public void displayProgress(Long userData, DialogId id, String title, String text, int indeterminate, float position, String cancel) Description copied from interface:DialogHandlerPresent a progress dialog.- Specified by:
displayProgressin interfaceDialogHandler- Parameters:
userData- user dataid- dialog id, used to interact with this dialogtitle- dialog titletext- progress textindeterminate-trueif the progress is indeterminate;falseif it is notposition- percent completioncancel- cancel action text
-
cancel
Description copied from interface:DialogHandlerPresent a cancel dialog.- Specified by:
cancelin interfaceDialogHandler- Parameters:
userData- user dataid- dialog id, used to interact with this dialog
-
updateProgress
Description copied from interface:DialogHandlerUpdate a progress dialog.- Specified by:
updateProgressin interfaceDialogHandler- Parameters:
userData- user dataid- dialog id, used to interact with this dialogposition- percent completiontext- progress text
-