Package cern.accsoft.steering.util.gui
Interface UserInteractor
-
- All Known Implementing Classes:
SwingUserInteractor
public interface UserInteractor
this interface provides some simple methods for user-interaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
askForString(java.lang.String question)
java.lang.String
askForString(java.lang.String question, java.lang.String defaultInput)
boolean
showPanelDialog(PanelProvider panelProvider, java.awt.Component parent)
opens a dialog with the panel of the given panelProviderboolean
showPanelDialog(javax.swing.JPanel panel, java.awt.Component parent)
opens a dialog with the given panel
-
-
-
Method Detail
-
askForString
java.lang.String askForString(java.lang.String question)
- Parameters:
question
- the the String, which describes to the user, what to enter.- Returns:
- the answer. Null, if aborted
-
askForString
java.lang.String askForString(java.lang.String question, java.lang.String defaultInput)
- Parameters:
question
- the the String, which describes to the user, what to enter.defaultInput
- the string to display as default for the input- Returns:
- the answer. Null, if aborted
-
showPanelDialog
boolean showPanelDialog(javax.swing.JPanel panel, java.awt.Component parent)
opens a dialog with the given panel- Parameters:
panel
- the panel to show in the dialogparent
- the parent of the dialog- Returns:
- true, if the ok-button was pressed, false if not
-
showPanelDialog
boolean showPanelDialog(PanelProvider panelProvider, java.awt.Component parent)
opens a dialog with the panel of the given panelProvider- Parameters:
panelProvider
- the panelProvider which provides the panel to showparent
- the parent of the dialog- Returns:
- true, if the ok button was pressed, false otherwise
-
-