|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsdk.v1_0.helper.application.AbstractApplication
csdk.v1_0.helper.AbstractCSDKApplication
csdk.v1_0.helper.AbstractCSDKWindowApplication
textviewer.TextViewer
public class TextViewer
Aplicação de testes mínima do CSDK que permite a abertura e gravação de arquivos ASCII.
| Field Summary | |
|---|---|
static String |
TEXT_MESSAGE_TYPE
Tipo de mensagem que pode ser recebida pela aplicação para definir o texto inicial. |
| Constructor Summary | |
|---|---|
TextViewer(ICSDKEnvironment csdkInterface)
Construtor. |
|
| Method Summary | |
|---|---|
protected void |
applicationEnded()
|
protected void |
applicationStarted(JFrame mainFrame)
|
boolean |
canEndApplication()
|
IFile |
getSelectedFile()
Retorna o último arquivo selecionado. |
String |
getText()
Retorna o texto exibido no programa |
void |
onMessageReceived(IMessage message,
IMessageSender sender)
|
void |
openFile(IFile file)
Abre um arquivo no visualizador. |
void |
saveFile(IFile file)
Salva o conteúdo do visualizador num arquivo. |
void |
setSelectedFile(IFile selectedFile)
Define o arquivo selecionado. |
void |
setText(String string)
Ajusta o texto visível no painel. |
| Methods inherited from class csdk.v1_0.helper.AbstractCSDKWindowApplication |
|---|
addWindow, closeDependentWindows, getApplicationFrame, onApplicationEnd, onApplicationStart, removeWindow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface csdk.v1_0.api.core.IContext |
|---|
isActive, onContextActivate, onContextDeactivate |
| Field Detail |
|---|
public static final String TEXT_MESSAGE_TYPE
| Constructor Detail |
|---|
public TextViewer(ICSDKEnvironment csdkInterface)
csdkInterface - interface padrão para o ambiente CSDK.| Method Detail |
|---|
protected void applicationStarted(JFrame mainFrame)
applicationStarted in class AbstractCSDKWindowApplicationpublic String getText()
public void setText(String string)
string - o textopublic boolean canEndApplication()
canEndApplication in interface IApplicationcanEndApplication in class AbstractApplicationpublic IFile getSelectedFile()
public void setSelectedFile(IFile selectedFile)
selectedFile - arquivo selecionado.
public void onMessageReceived(IMessage message,
IMessageSender sender)
onMessageReceived in interface IApplicationonMessageReceived in class AbstractApplicationpublic void saveFile(IFile file)
file - o arquivo.public void openFile(IFile file)
file - o arquivo.protected void applicationEnded()
applicationEnded in class AbstractCSDKWindowApplication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||