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 TypeMethodDescriptionvoid
Present a cancel dialog.void
displayError
(Long userData, String title, String text) Present an error dialog.void
displayLogin
(Long userData, DialogId id, String title, String text, String defaultUsername, boolean askStore) Present a login dialog.void
displayProgress
(Long userData, DialogId id, String title, String text, int indeterminate, float position, String cancel) Present a progress dialog.void
displayQuestion
(Long userData, DialogId id, String title, String text, DialogQuestionType type, String cancel, String action1, String action2) Present a question dialog.void
updateProgress
(Long userData, DialogId id, float position, String text) Update a progress dialog.
-
Constructor Details
-
DialogHandlerAdapter
public DialogHandlerAdapter()
-
-
Method Details
-
displayError
Description copied from interface:DialogHandler
Present an error dialog.- Specified by:
displayError
in 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:DialogHandler
Present a login dialog.- Specified by:
displayLogin
in 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:DialogHandler
Present a question dialog.- Specified by:
displayQuestion
in 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:DialogHandler
Present a progress dialog.- Specified by:
displayProgress
in interfaceDialogHandler
- Parameters:
userData
- user dataid
- dialog id, used to interact with this dialogtitle
- dialog titletext
- progress textindeterminate
-true
if the progress is indeterminate;false
if it is notposition
- percent completioncancel
- cancel action text
-
cancel
Description copied from interface:DialogHandler
Present a cancel dialog.- Specified by:
cancel
in interfaceDialogHandler
- Parameters:
userData
- user dataid
- dialog id, used to interact with this dialog
-
updateProgress
Description copied from interface:DialogHandler
Update a progress dialog.- Specified by:
updateProgress
in interfaceDialogHandler
- Parameters:
userData
- user dataid
- dialog id, used to interact with this dialogposition
- percent completiontext
- progress text
-