java.applet.Applet.getParameter()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(296)

本文整理了Java中java.applet.Applet.getParameter()方法的一些代码示例,展示了Applet.getParameter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Applet.getParameter()方法的具体详情如下:
包路径:java.applet.Applet
类名称:Applet
方法名:getParameter

Applet.getParameter介绍

暂无

代码示例

代码示例来源:origin: plantuml/plantuml

protected String getValue(String fullKey) {
 return _applet.getParameter(fullKey);
}

代码示例来源:origin: stackoverflow.com

if (getParameter("show")!=null) {
  show = getParameter("show");

代码示例来源:origin: org.apache.commons/commons-configuration2

@Override
protected Object getPropertyInternal(final String key)
{
  return handleDelimiters(applet.getParameter(key));
}

代码示例来源:origin: stackoverflow.com

String param = getParameter("param");
System.out.println("parameter: " + param);
add(new JLabel(param));

代码示例来源:origin: stackoverflow.com

validate();
String sampleRate = getParameter("samplerate");
if (sampleRate!=null) {
  try {
String fpw = getParameter("fpw");
if (fpw!=null) {
  try {
boolean harmonic = (getParameter("addharmonic")!=null);
bp.setAddHarmonic(harmonic);
if ( getParameter("autoloop")!=null ) {
  String loopcount = getParameter("loopcount");
  if (loopcount!=null) {
    try {

代码示例来源:origin: stackoverflow.com

<APPLET code=MyApplet width=100 height=100>
<PARAM name="object" value="someValue">
</APPLET>

public class MyApplet extends java.applet.Applet
{
    public void init()
    {
        String value = getParameter("object");
    }
    ....
}

代码示例来源:origin: net.sourceforge.plantuml/plantuml

protected String getValue(String fullKey) {
 return _applet.getParameter(fullKey);
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public String get(String name) {
    return app.getParameter(name);
  }
} ;

代码示例来源:origin: arhs/sd-dss

public String getParameter(String parameterName) {
  return applet.getParameter(parameterName);
}

代码示例来源:origin: stackoverflow.com

import java.applet.*;    
import java.awt.*; 

public class DrawStringApplet extends Applet {

 private String defaultMessage = "Hello!";

 public void paint(Graphics g) {

  String inputFromPage = this.getParameter("Message");
  if (inputFromPage == null) inputFromPage = defaultMessage;
  g.drawString(inputFromPage, 50, 25);

 }

}

代码示例来源:origin: ATLauncher/ATLauncher

@Override
public String getParameter(String name) {
  String param = params.get(name);
  if (param != null) {
    return param;
  }
  try {
    return super.getParameter(name);
  } catch (Exception ignore) {
  }
  return null;
}

代码示例来源:origin: stackoverflow.com

import java.awt.*;
import java.applet.*;

public class ParamDemo extends Applet{
  String strName;
  public void start()
  {
    strName=getParameter("name");
    if(strName==null)
      strName="Not Found";
  }
  public void paint(Graphics g)
  {
    g.drawString("Name :"+strName,10,20);
  }
}

代码示例来源:origin: Spoutcraft/LegacyLauncher

@Override
public String getParameter(String name) {
  String custom = this.customParameters.get(name);
  if (custom != null) {
    return custom;
  }
  try {
    return super.getParameter(name);
  } catch (Exception e) {
    this.customParameters.put(name, null);
  }
  return null;
}

代码示例来源:origin: stackoverflow.com

import java.awt.*;
import java.applet.*;

public class DocFooter extends Applet {
    String date;
    String email;

    public void init() {
        resize(500,100);
        date = getParameter("LAST_UPDATED");
        email = getParameter("EMAIL");
    }

    public void paint(Graphics g) {
        g.drawString(date + " by ",100, 15);
        g.drawString(email,290,15);
    }
}

代码示例来源:origin: org.apache.yoko/yoko-core

private static String[] parseAppletParams(java.applet.Applet app) {
  String[] args = new String[0];
  //
  // Check for parameter list
  //
  String paramList = app.getParameter("ORBparams");
  if (paramList != null) {
    java.util.StringTokenizer p = new java.util.StringTokenizer(
        paramList);
    args = new String[p.countTokens()];
    int i = 0;
    while (p.hasMoreTokens())
      args[i++] = p.nextToken();
  }
  return args;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration

public Object getProperty(String key)
{
  return handleDelimiters(applet.getParameter(key));
}

代码示例来源:origin: org.apache.commons/org.motechproject.org.apache.commons.configuration

public Object getProperty(String key)
{
  return handleDelimiters(applet.getParameter(key));
}

代码示例来源:origin: stackoverflow.com

/* <applet
  code='TestParam'
  width='200'
  height='30'>
<param name='path' value='test\test'>
</applet> */
import javax.swing.*;

public class TestParam extends JApplet {

  public void init() {
    JTextField output = new JTextField(getParameter("path"), 20);
    add(output);
    validate();
  }
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

public Object getProperty(String key)
{
  return handleDelimiters(applet.getParameter(key));
}

代码示例来源:origin: stackoverflow.com

import java.awt.*;
import javax.swing.JApplet;

public class LastAirBender extends JApplet {

  private static final long serialVersionUID = 1L;
  private Image aang;

  @Override
  public void init() {
    aang = getImage(getDocumentBase(), getParameter("images.jpg"));
  }

  @Override
  public void paint(Graphics g) {
    g.drawImage(aang, 100, 100, this);
  }
}

相关文章