|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.uerj.petrinetanalyzer.gui.listener.AbstractActionListener
br.uerj.petrinetanalyzer.gui.listener.MenuActionListener
public class MenuActionListener
Define a Janela Principal para o Editor/Simulador de Redes de Petri Toda a parte gráfica
| Field Summary | |
|---|---|
private java.io.File |
file
|
| Fields inherited from class br.uerj.petrinetanalyzer.gui.listener.AbstractActionListener |
|---|
modo, sub_modo, window |
| Fields inherited from interface br.uerj.petrinetanalyzer.gui.interfaces.IntfMainConstants |
|---|
DRAW_ARC, EDIT_ARC, EDIT_DELETE, EDIT_LABEL, EDIT_LUGAR, EDIT_MOUSE, EDIT_TRANS, FILE_SAVE, MODO_ANALISE, MODO_EDICAO, MODO_SIMULACAO, PROP_LANGUAGE_FILE_DEFAULT, PROP_LANGUAGE_FILE_ENGLISH, PROP_LANGUAGE_FILE_PORT_BR, SIM_BACK, SIM_START, SIM_STOP |
| Constructor Summary | |
|---|---|
MenuActionListener(MainWindow w)
Construtor. |
|
| Method Summary | |
|---|---|
void |
analyzerPetriNet()
Trata evento de Análise das Propriedades da Rede de Petri |
private void |
newFile()
Limpa a janela de edição e prepara para começar uma nova rede de petri. |
private void |
openFile()
Lê o arquivo em formato XML e o converte para Objeto rede de Petri. |
private void |
openFileWindow()
Cria janela de diálogo para abrir o arquivo. |
void |
performed(javax.swing.JMenuItem item)
Através do nome do objeto verifica que ação deve tomar. |
private void |
saveAsWindow()
Cria e trata a Janela de diálogo para salvar o arquivo de rede de petri. |
void |
saveOnly()
Salva o arquivo se ele já existir, ou abre caixa de diálogo caso ele não exista. |
void |
showAboutMessage()
Exibe Mensagem Sobre na Tela |
private void |
showErrorCastOpenFile(java.lang.ClassCastException exc)
Exibe mensagem na tela informando falha ao tentar converter o arquivo. |
private void |
showErrorOpenFile(java.lang.Exception exc)
Exibe mensagem de erro na tela informando falha ao tentar ler o arquivo. |
private void |
showErrorSaveFile(java.io.IOException exc)
Exibição de mensagem de erro caso não consiga salvar o arquivo. |
private void |
showSucessOpenFile()
Exibe mensagem de sucesso na barra de satus informando que o arquivo foi aberto com sucesso. |
private void |
showSucessSaveFile()
Exibe na barra de status uma mensagem informando que o arquivo foi salvo com sucesso. |
private void |
writeFile()
Grava o arquivo de rede de petri no formato XML. |
| Methods inherited from class br.uerj.petrinetanalyzer.gui.listener.AbstractActionListener |
|---|
cleanInfoPanel, disableEditButton, disableSimulationButton, enableEditButton, enableSimulationButton, getWindow, setWindow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.io.File file
| Constructor Detail |
|---|
public MenuActionListener(MainWindow w)
w - Janela do Programa principal| Method Detail |
|---|
public void performed(javax.swing.JMenuItem item)
item - instancia de JMenuItemprivate void saveAsWindow()
public void saveOnly()
private void writeFile()
throws java.io.IOException
java.io.IOExceptionprivate void showErrorSaveFile(java.io.IOException exc)
exc - Exceção IOExceptionprivate void showSucessSaveFile()
private void openFileWindow()
private void openFile()
throws java.io.IOException,
java.lang.ClassCastException
java.io.IOException
java.lang.ClassCastExceptionprivate void showSucessOpenFile()
private void showErrorOpenFile(java.lang.Exception exc)
exc - Exceçãoprivate void showErrorCastOpenFile(java.lang.ClassCastException exc)
exc - Exceçãoprivate void newFile()
public void analyzerPetriNet()
public void showAboutMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||