Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AppletStub
Quando um applet é criado pela primeira vez, um stub de applet é anexado a ele
usando o método setStub do applet. Este stub
serve como a interface entre o applet e o ambiente do
browser ou ambiente do visualizador de applet no qual a aplicação
está executando.
Applet.setStub(java.applet.AppletStub)| Method Summary | |
|---|---|
void |
appletResize(int width,
int height)
Chamado quando o applet quer ser redimensionado. |
AppletContext |
getAppletContext()
Obtém um manipulador para o contexto do applet. |
URL |
getCodeBase()
Obtém a URL base. |
URL |
getDocumentBase()
Obtém a URL do documento no qual o applet está embutido. |
String |
getParameter(String name)
Retorna o valor do parâmetro nomeado na tag HTML. |
boolean |
isActive()
Determina se o applet está ativo. |
| Method Detail |
|---|
boolean isActive()
start seja chamado. Ele se torna
inativo pouco antes que seu método stop seja chamado.
true se o applet está ativo;
false caso contrário.URL getDocumentBase()
http://java.sun.com/products/jdk/1.2/index.html
A base do documento é:
http://java.sun.com/products/jdk/1.2/index.html
URL do documento que contém o
applet.getCodeBase()URL getCodeBase()
URL base do
diretório que contém o applet.getDocumentBase()String getParameter(String name)
<applet code="Clock" width=50 height=50> <param name=Color value="blue"> </applet>
então uma chamada a getParameter("Color") returna o
valor "blue".
name - um nome de parâmetro.
AppletContext getAppletContext()
void appletResize(int width,
int height)
width - a nova largura solicitada para o applet.height - a nova altura solicitada para o applet.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.