public class CommandViewer extends ApplicationType
| Constructor and Description |
|---|
CommandViewer(String id)
Construtor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finishApplication()
Método abstrato para fechamento do diálogo das aplicações
|
void |
killApplication()
Método para encerramento da execução, que pode ser redefinido para
comportamentos próprios da aplicações.
|
void |
sendMessage(String name,
Object value,
String senderId)
Método para enviar atributos para uma aplicação; deve ser definido na
aplicação de acordo com a necessidade da mesma.
|
void |
startApplication()
Método abstrato para abertura do diálogo das aplicações
|
protected boolean |
userCanKillApplication()
Método de kill pelo usuário é específico do desktop applications
|
closeApplication, getApplicationRegistry, getApplicationResourceAsStream, getApplicationResourceAsStream, getApplicationResourceAsURL, getApplicationResourceAsURL, getAuthorMail, getAuthorName, getBooleanSpecificProperty, getDescription, getDoubleSpecificProperty, getFileTypes, getId, getImageIcon, getImageIcon, getImageIcon, getInstanceId, getInstanceIndex, getIntSpecificProperty, getLongSpecificProperty, getLongSpecificProperty, getMainApplicationClass, getName, getStringListSpecificProperty, getStringSpecificProperty, getVersion, getVersionNumber, launchApplication, postInitializationaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic CommandViewer(String id)
id - identificador único da aplicação.public void killApplication()
killApplication in class ApplicationTypeprotected boolean userCanKillApplication()
userCanKillApplication in class ApplicationTypepublic void startApplication()
throws ApplicationException
ApplicationTypestartApplication in class ApplicationTypeApplicationException - Em caso de erro ao iniciar a aplicação.public void finishApplication()
ApplicationTypefinishApplication in class ApplicationTypepublic void sendMessage(String name, Object value, String senderId)
sendMessage in class ApplicationTypename - nome do atributo.value - seu valor.senderId - a identificação da aplicação que enviou a mensagem.Copyright © 2020. All rights reserved.