vijxtadialog.java

来自「jxta官方例程」· Java 代码 · 共 67 行

JAVA
67
字号
/* * Copyright (c) [2005] [Jeffrey Moore] * * Redistributions in source code form must reproduce the above copyright and  * this condition. * * The contents of this file are subject to the Sun Project JXTA License  * Version 1.1 (the "License"); you may not use this file except in compliance  * with the License. A copy of the License is available at  * http://www.jxta.org/jxta_license.html. * *//* * ViJxtaDialog.java * * Created on April 9, 2005, 12:46 PM */package net.jxta.myjxta.plugins.vijxta;import net.jxta.myjxta.MyJXTA;import net.jxta.myjxta.View;import net.jxta.myjxta.plugin.PluginPanel;import net.jxta.myjxta.ui.MyJXTAView;import net.jxta.myjxta.dialog.OneToOneCommandDialog;import net.jxta.myjxta.util.Group;import net.jxta.protocol.PipeAdvertisement;import net.jxta.util.JxtaBiDiPipe;import org.apache.log4j.Level;import org.apache.log4j.Logger;/** * Base dialog for ViJxta * @author Jeff Moore */public class ViJxtaDialog extends OneToOneCommandDialog {    public static final String IMFREE_DIALOG_NAME = IMFREE + "VIJXTADialog";    public static String DIALOG_NAME = IMFREE_DIALOG_NAME;    private static final Logger LOG = Logger.getLogger(ViJxtaDialog.class);    public ViJxtaDialog(Group group, PipeAdvertisement pa, MyJXTA myJxta) {        super(group, pa, myJxta);        if (LOG.isEnabledFor (Level.INFO)) {        LOG.info("new dialog for "+pa.getName ());        }    }    public PluginPanel getDialogPanel(View p_myJXTAView) {        return new ViJxtaDialogPanel(p_myJXTAView, this);    }    public ViJxtaDialog(Group group, JxtaBiDiPipe pipe, MyJXTA myJxta) {        super(group, pipe, myJxta);        if (LOG.isEnabledFor (Level.INFO)) {        LOG.info("new dialog for "+pipe.getPipeAdvertisement ().getName ());        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?