public class XMLViewer extends ApplicationProject
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_BAR_TIMEOUT
Timeout da barra de status.
|
PREFERENCE_MESSAGE, PROJECT_FILE_MESSAGE| Modifier and Type | Method and Description |
|---|---|
XMLPanelStyleInterface |
getTipicalStyle(String fileType)
Consulta o estilo típico a ser usado dado um tipo de arquivo.
|
void |
handleException(Exception e)
Tratador de exceção da aplicação.
|
void |
killApplication()
Método para encerramento da execução, que pode ser redefinido para
comportamentos próprios da aplicações.
|
void |
openXML(csbase.logic.ClientFile file)
Abre arquivo.
|
void |
refreshAll()
Atualização.
|
void |
resetFile()
Limpa a definição de arquivo corrente.
|
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 |
setStyle(XMLPanelStyleInterface style)
Ajusta estilo do programa.
|
void |
showFindPanel()
Exibe o painel de busca.
|
protected boolean |
userCanKillApplication()
Método de kill pelo usuário é específico do desktop applications
|
browseFileOpen, browseFileOpen, browseFileOpen, browseFileOpen, browseFileOpenFromProject, browseFileSave, browseFileSave, browseFileSave, browseFileSave, browseFileSave, browseFileSave, browseFileSave, browseFileSaveFromProject, browseFileSaveFromProject, fileToString, stringArrayToFile, stringArrayToFileWithCreation, stringToFile, stringToFileWithCreationaddPreferenceListener, addWindow, buildApplicationFrame, buildApplicationImage, closeDependentWindows, finishApplication, getApplicationCommand, getApplicationCommandDir, getApplicationFrame, getApplicationProject, getClassString, getClassString, getDesktopFrame, getLocale, getPreferences, getResource, getResourceBundle, getStatusBar, getString, getString, handleError, hasClassString, hasString, isConnectedToServer, isVisible, logDetailedApplicationEvent, removeAllPreferenceListeners, removeWindow, savePreferences, setInitialFrameState, setVisible, showError, showError, showException, showExceptionStack, showInformation, showInformation, showMessage, showMessage, showOptionDialog, showOptionDialog, showWarning, showWarning, startApplicationcloseApplication, 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 static final int STATUS_BAR_TIMEOUT
public XMLViewer(String id) throws ApplicationException
id - identificador da aplicação.ApplicationException - em caso de falhapublic void killApplication()
killApplication in class Applicationpublic final void handleException(Exception e)
e - exceçãoprotected boolean userCanKillApplication()
userCanKillApplication in class ApplicationTypepublic void openXML(csbase.logic.ClientFile file)
throws Exception
file - arquivo de entrada.Exception - em caso de erro.public 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.public void resetFile()
public void showFindPanel()
public void refreshAll()
public XMLPanelStyleInterface getTipicalStyle(String fileType)
fileType - tipo de arquivonull).public void setStyle(XMLPanelStyleInterface style)
style - estiloCopyright © 2020. All rights reserved.