public abstract class AbstractApplicationAction<M extends org.jdesktop.beans.AbstractBean,UI extends ApplicationUI<M,?>,H extends AbstractApplicationUIHandler<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 |
AbstractApplicationAction(H handler,
boolean hideBody) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
askBeforeDelete(String title,
String message) |
protected boolean |
askOverwriteFile(File file) |
protected File |
chooseFile(String title,
String buttonLabel,
String... filters)
Choisir un fichier via un sélecteur graphique de fichiers.
|
protected void |
createProgressionModelIfRequired(int total) |
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() |
ApplicationActionEngine |
getActionEngine() |
ApplicationActionFactory |
getActionFactory() |
protected ApplicationConfiguration |
getConfig() |
ApplicationUIContext |
getContext() |
protected <O> org.nuiton.decorator.Decorator<O> |
getDecorator(Class<O> type,
String name) |
H |
getHandler() |
M |
getModel() |
protected ApplicationProgressionModel |
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 abstract void |
sendMessage(String message) |
void |
setActionDescription(String actionDescription) |
void |
setProgressionModel(ApplicationProgressionModel 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 AbstractApplicationUIHandler<M,UI> handler
protected String actionDescription
protected final boolean hideBody
protected final Object lock
protected AbstractApplicationAction(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 ApplicationUIContext getContext()
public String getActionDescription()
public void setActionDescription(String actionDescription)
public void setProgressionModel(ApplicationProgressionModel progressionModel)
protected ApplicationProgressionModel getProgressionModel()
public boolean isHideBody()
protected ApplicationConfiguration getConfig()
protected abstract void sendMessage(String message)
protected <O> org.nuiton.decorator.Decorator<O> getDecorator(Class<O> type, String name)
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.protected boolean askOverwriteFile(File file)
protected void createProgressionModelIfRequired(int total)
public ApplicationActionFactory getActionFactory()
public ApplicationActionEngine getActionEngine()
Copyright © 2008–2014 CodeLutin. All rights reserved.