Package cern.accsoft.steering.util.gui
Interface UserInteractor
- 
- All Known Implementing Classes:
 SwingUserInteractor
public interface UserInteractorthis interface provides some simple methods for user-interaction. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringaskForString(java.lang.String question)java.lang.StringaskForString(java.lang.String question, java.lang.String defaultInput)booleanshowPanelDialog(PanelProvider panelProvider, java.awt.Component parent)opens a dialog with the panel of the given panelProviderbooleanshowPanelDialog(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
 
 
 - 
 
 -