org.springframework.richclient.util
Class RcpSupport
java.lang.Object
org.springframework.richclient.util.RcpSupport
public class RcpSupport
- extends Object
Method Summary |
static void |
configure(AbstractCommand command)
|
static void |
configure(Object object,
String id)
|
static ActionCommand |
createDummyCommand(String id,
String msg)
|
static JComponent |
createDummyPanel(String vakske)
|
static JPanel |
createIconButtonPanel(List<? extends AbstractCommand> commands)
|
static void |
executeViewDataEditorCommand(DataEditorWidgetViewCommand command,
Object filter,
Object defaultSelectedObject)
Toon een dataeditor in de huidige applicationwindow op basis van een command |
static
|
getBean(String id)
|
static Object |
getClone(Object value)
|
static
|
getCommand(String commandId)
|
static Icon |
getIcon(String key)
|
static String |
getMessage(MessageSourceResolvable msr)
|
static String |
getMessage(String id)
|
static String |
getMessage(String id,
String name,
String type)
|
static String |
getMessage(String id,
String name,
String type,
Object[] params)
|
static String[] |
getMessageKeys(String id,
String name,
String type)
|
static void |
handleException(Throwable t)
|
static void |
mapObjectOnFormModel(FormModel formModel,
Object objectToMap)
This method tries to map the values of the given object on the valueModels of the formModel. |
static int |
showConfirmationDialog(Component parent,
String id)
|
static int |
showConfirmationDialog(Component parent,
String id,
Object[] parameters)
|
static int |
showConfirmationDialog(Component parent,
String id,
Object[] parameters,
int optionType)
|
static int |
showConfirmationDialog(String id)
|
static void |
showErrorDialog(Component parent,
org.jdesktop.swingx.error.ErrorInfo errorInfo)
|
static void |
showErrorDialog(String message)
|
static void |
showErrorDialog(String message,
String detail)
|
static void |
showErrorDialog(String title,
String message,
String detail)
|
static void |
showErrorDialog(String id,
Throwable cause)
|
static void |
showErrorDialog(Throwable t)
|
static void |
showErrorDialogResolveMessages(String id)
|
static void |
showMessageDialog(Component parent,
String id,
Object[] parameters,
int optionType)
|
static void |
showSQLExceptionErrorDialog(SQLException sqlException)
|
static void |
showWarningDialog(Component parent,
String id)
|
static int |
showWarningDialog(Component parent,
String id,
int optionType)
|
static void |
showWarningDialog(Component parent,
String id,
Object[] parameters)
|
static int |
showWarningDialog(Component parent,
String id,
Object[] parameters,
int optionType)
|
static int |
showWarningDialog(Component parent,
String id,
Object[] parameters,
int optionType,
int initialValue)
|
static void |
showWarningDialog(String id)
|
static int |
showWarningDialog(String id,
int optionType)
|
static int |
showWarningDialog(String id,
int optionType,
int initialValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR_KEY
public static final String ERROR_KEY
- See Also:
- Constant Field Values
LABEL
public static final String LABEL
- See Also:
- Constant Field Values
HEADER
public static final String HEADER
- See Also:
- Constant Field Values
TEXT
public static final String TEXT
- See Also:
- Constant Field Values
TITLE
public static final String TITLE
- See Also:
- Constant Field Values
MESSAGE
public static final String MESSAGE
- See Also:
- Constant Field Values
DETAIL
public static final String DETAIL
- See Also:
- Constant Field Values
CAPTION
public static final String CAPTION
- See Also:
- Constant Field Values
ICON
public static final String ICON
- See Also:
- Constant Field Values
YES_OPTION
public static final int YES_OPTION
- See Also:
- Constant Field Values
OK_OPTION
public static final int OK_OPTION
- See Also:
- Constant Field Values
NO_OPTION
public static final int NO_OPTION
- See Also:
- Constant Field Values
CANCEL_OPTION
public static final int CANCEL_OPTION
- See Also:
- Constant Field Values
RcpSupport
public RcpSupport()
getMessageKeys
public static String[] getMessageKeys(String id,
String name,
String type)
getMessage
public static String getMessage(String id,
String name,
String type)
getMessage
public static String getMessage(MessageSourceResolvable msr)
getMessage
public static String getMessage(String id)
getMessage
public static String getMessage(String id,
String name,
String type,
Object[] params)
configure
public static void configure(AbstractCommand command)
configure
public static void configure(Object object,
String id)
getIcon
public static Icon getIcon(String key)
getBean
public static <T> T getBean(String id)
getCommand
public static <T> T getCommand(String commandId)
handleException
public static void handleException(Throwable t)
showErrorDialog
public static void showErrorDialog(Throwable t)
showSQLExceptionErrorDialog
public static void showSQLExceptionErrorDialog(SQLException sqlException)
showErrorDialogResolveMessages
public static void showErrorDialogResolveMessages(String id)
showErrorDialog
public static void showErrorDialog(String message)
showErrorDialog
public static void showErrorDialog(String message,
String detail)
showErrorDialog
public static void showErrorDialog(String id,
Throwable cause)
showErrorDialog
public static void showErrorDialog(String title,
String message,
String detail)
showErrorDialog
public static void showErrorDialog(Component parent,
org.jdesktop.swingx.error.ErrorInfo errorInfo)
showWarningDialog
public static int showWarningDialog(String id,
int optionType)
- See Also:
showWarningDialog(Component, String, int)
showWarningDialog
public static int showWarningDialog(Component parent,
String id,
int optionType)
- See Also:
showWarningDialog(Component, String, int)
showWarningDialog
public static int showWarningDialog(Component parent,
String id,
Object[] parameters,
int optionType)
showWarningDialog
public static int showWarningDialog(String id,
int optionType,
int initialValue)
- See Also:
showWarningDialog(Component, String, Object[], int, int)
showWarningDialog
public static int showWarningDialog(Component parent,
String id,
Object[] parameters,
int optionType,
int initialValue)
createDummyCommand
public static ActionCommand createDummyCommand(String id,
String msg)
showWarningDialog
public static void showWarningDialog(String id)
showWarningDialog
public static void showWarningDialog(Component parent,
String id)
showWarningDialog
public static void showWarningDialog(Component parent,
String id,
Object[] parameters)
showConfirmationDialog
public static int showConfirmationDialog(String id)
showConfirmationDialog
public static int showConfirmationDialog(Component parent,
String id)
showConfirmationDialog
public static int showConfirmationDialog(Component parent,
String id,
Object[] parameters)
showConfirmationDialog
public static int showConfirmationDialog(Component parent,
String id,
Object[] parameters,
int optionType)
showMessageDialog
public static void showMessageDialog(Component parent,
String id,
Object[] parameters,
int optionType)
mapObjectOnFormModel
public static void mapObjectOnFormModel(FormModel formModel,
Object objectToMap)
- This method tries to map the values of the given object on the valueModels of the formModel. Instead of
setting the object as a backing object, all valueModels are processed one by one and the corresponding
property value is fetched from the objectToMap and set on that valueModel. This triggers the usual
buffering etc. just as if the user entered the values.
- Parameters:
formModel
- objectToMap
-
getClone
public static Object getClone(Object value)
createIconButtonPanel
public static JPanel createIconButtonPanel(List<? extends AbstractCommand> commands)
createDummyPanel
public static JComponent createDummyPanel(String vakske)
executeViewDataEditorCommand
public static void executeViewDataEditorCommand(DataEditorWidgetViewCommand command,
Object filter,
Object defaultSelectedObject)
- Toon een dataeditor in de huidige applicationwindow op basis van een command
- Parameters:
command
- De command die de dataeditor toont (mag niet null zijn)filter
- Eventueel initieel filterobject voor de dataeditordefaultSelectedObject
- Eventueel initieel geselecteerd item in de lijst- Since:
- 0.4.4
Copyright © 2004-2009 The Spring Framework. All Rights Reserved.