public abstract class AbstractTuttiAction<M extends org.jdesktop.beans.AbstractBean,UI extends TuttiUI<M,?>,H extends AbstractTuttiUIHandler<M,UI>>
extends org.jdesktop.beans.AbstractBean
| Modifier and Type | Field and Description |
|---|---|
protected String |
actionDescription |
protected H |
handler |
protected boolean |
hideBody |
protected Object |
lock |
static String |
PROPERTY_DONE |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTuttiAction(H handler,
boolean hideBody) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
askAdminPassword(String askMessage,
String askMessageTitle,
String errorMessage,
String errorMessageTitle) |
protected boolean |
askBeforeDelete(String title,
String message) |
protected File |
chooseFile(String title,
String buttonLabel,
String... filters)
Choisir un fichier via un sélecteur graphique de fichiers.
|
protected String |
decorate(Object object) |
protected String |
decorate(Object object,
String context) |
protected void |
displayInfoMessage(String title,
String message) |
protected void |
displayWarningMessage(String title,
String message) |
abstract void |
doAction() |
String |
getActionDescription() |
protected TuttiApplicationConfig |
getConfig() |
TuttiUIContext |
getContext() |
TuttiDataContext |
getDataContext() |
protected <O> org.nuiton.decorator.Decorator<O> |
getDecorator(Class<O> type,
String name) |
H |
getHandler() |
M |
getModel() |
protected ProgressionModel |
getProgressionModel() |
UI |
getUI() |
boolean |
isHideBody() |
void |
postFailedAction(Throwable error) |
void |
postSuccessAction() |
boolean |
prepareAction() |
protected void |
releaseAction() |
protected File |
saveFile(File defaultFile,
String filename,
String extension,
String title,
String buttonLabel,
String... filters)
Sauver un fichier via un sélecteur graphique de fichiers.
|
protected File |
saveFile(String filename,
String extension,
String title,
String buttonLabel,
String... filters)
Sauver un fichier via un sélecteur graphique de fichiers.
|
protected void |
sendMessage(String message) |
void |
setActionDescription(String actionDescription) |
void |
setProgressionModel(ProgressionModel progressionModel) |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic static final String PROPERTY_DONE
protected final H extends AbstractTuttiUIHandler<M,UI> handler
protected String actionDescription
protected final boolean hideBody
protected final Object lock
protected AbstractTuttiAction(H handler, boolean hideBody)
protected void releaseAction()
public void postSuccessAction()
public void postFailedAction(Throwable error)
public H getHandler()
public M getModel()
public final UI getUI()
public TuttiUIContext getContext()
public String getActionDescription()
public void setActionDescription(String actionDescription)
public void setProgressionModel(ProgressionModel progressionModel)
protected ProgressionModel getProgressionModel()
public boolean isHideBody()
public TuttiDataContext getDataContext()
protected TuttiApplicationConfig getConfig()
protected void sendMessage(String message)
protected <O> org.nuiton.decorator.Decorator<O> getDecorator(Class<O> type, String name)
protected boolean askAdminPassword(String askMessage, String askMessageTitle, String errorMessage, String errorMessageTitle)
protected File chooseFile(String title, String buttonLabel, String... filters)
title - le titre du dialogue de sélectionbuttonLabel - le label du boutton d'acceptationfilters - les filtres + descriptions sur le sélecteur de
fichiersprotected File saveFile(File defaultFile, String filename, String extension, String title, String buttonLabel, String... filters)
title - le titre du dialogue de sélectionbuttonLabel - le label du boutton d'acceptationfilters - les filtres + descriptions sur le sélecteur de
fichiersnull si pas de fichier choisi ou
pas voulu écrasé un fichier existant.protected File saveFile(String filename, String extension, String title, String buttonLabel, String... filters)
title - le titre du dialogue de sélectionbuttonLabel - le label du boutton d'acceptationfilters - les filtres + descriptions sur le sélecteur de
fichiersnull si pas de fichier choisi ou
pas voulu écrasé un fichier existant.Copyright © 2012–2013 Ifremer. All rights reserved.