printergroupinfoinvokerimpl.java

来自「打印管理程序,测试完全通过.windows开发环境.」· Java 代码 · 共 39 行

JAVA
39
字号
package jp.co.ntl.swing.ext.printer.printergroup;

import java.util.Vector;

import jp.co.ntl.Net;
import jp.co.ntl.NetworkException;
import jp.co.ntl.ServerException;
import jp.co.ntl.TimeOutException;
import jp.co.ntl.printergroup.PrinterGroupInfo;
import jp.co.ntl.swing.ext.InvokerUtil;

public class PrinterGroupInfoInvokerImpl extends PrinterGroupInfoInvoker {
	InvokerUtil		iu;
	
	PrinterGroupInfoInvokerImpl(Net net) {
		this.iu = new InvokerUtil(net);
	}
	
	public Vector getPrinterGroupInfo() throws NetworkException, ServerException, TimeOutException {
		return iu.serverAccessRetVector(Net.printergroupServletName, Net.CMD_GetPrinterGroupInfo);
	}

	public void setPrinterGroupInfo(PrinterGroupInfo printerGroupInfo) throws NetworkException, ServerException, TimeOutException {
		iu.serverAccessRetVoid(Net.printergroupServletName, Net.CMD_SetPrinterGroupInfo, printerGroupInfo);
	}

	public int addPrinterGroup(PrinterGroupInfo printerGroupInfo) throws NetworkException, ServerException, TimeOutException {
		return iu.serverAccessRetInt(Net.printergroupServletName, Net.CMD_AddPrinterGroup, printerGroupInfo);
	}

	public void delPrinterGroup(Vector vcPgInfo) throws NetworkException, ServerException, TimeOutException {
		iu.serverAccessRetVoid(Net.printergroupServletName, Net.CMD_DelPrinterGroup, vcPgInfo);
	}
	
	public boolean isRelatedPrinterGroup(Vector vcPgInfo) throws NetworkException, ServerException, TimeOutException {
		return iu.serverAccessRetBoolean(Net.printergroupServletName, Net.CMD_IsRelatedPrinterGroup, vcPgInfo, InvokerUtil.RET_RELATED);
	}
}

⌨️ 快捷键说明

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