public class AbstractCrudItemBean.DetailItemDelegate extends Object implements Serializable
Constructor and Description |
---|
DetailItemDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
addErrorMessage(Throwable cause,
PersistAction action,
String key,
Object... arguments)
Adds an error message stating an action like persist, merge or remove
was not successful.
|
void |
addSuccessMessage(PersistAction action,
String key,
Object... arguments)
Adds a message stating an action like persist, merge or remove was
successful.
|
T |
getItem()
Gets the Item.
|
JsfBeanMode |
getMode()
Gets the mode of this DetailItemDelegate.
|
boolean |
isNewMode()
Determines whether the mode of this DetailItemDelegate is
JsfBeanMode.NEW . |
void |
setItem(T item)
Sets the Item.
|
void |
setMode(JsfBeanMode mode)
Sets the mode for this DetailItemDelegate.
|
public T getItem()
public void setItem(T item)
item
- The Item.public JsfBeanMode getMode()
public void setMode(JsfBeanMode mode)
mode
- The mode for this DetailItemDelegate.NullPointerException
- When the supplied mode is null.public boolean isNewMode()
JsfBeanMode.NEW
.public void addSuccessMessage(PersistAction action, String key, Object... arguments)
action
- The action that was performed.key
- The key of the message.arguments
- The optional message arguments.public void addErrorMessage(Throwable cause, PersistAction action, String key, Object... arguments)
cause
- The exception responsible for this error message or null
when this error message was not caused by another exception.action
- The action that was performed.key
- The key of the error message.arguments
- The optional message arguments.Copyright © 2008–2018. All rights reserved.