?? printergrouptablemodel.java
字號:
package jp.co.ntl.swing.ext.printer.printergroup;
import java.util.Vector;
import jp.co.ntl.printergroup.PrinterGroupInfo;
import jp.co.ntl.swing.ext.AbstractInfoTableModel;
public class PrinterGroupTableModel extends AbstractInfoTableModel {
/**
*
*/
private static final long serialVersionUID = 1L;
private final String columnPrinterGroup;
public PrinterGroupTableModel(Vector vcPrinterGroupInfo) {
super(vcPrinterGroupInfo);
this.columnPrinterGroup = Resource.getString(Resource.LIST_PRINTERGROUP);
this.columnNames = new String[] {
columnPrinterGroup
};
}
public Object getValueAt(int row, int column) {
if (vcInfo == null) {
return null;
}
if (row >= vcInfo.size()) {
return null;
}
if (column >= columnNames.length) {
return null;
}
PrinterGroupInfo prnGroupInfo = (PrinterGroupInfo)vcInfo.get(row);
String name = columnNames[column];
if (name.equals(columnPrinterGroup)) {
return prnGroupInfo.getPrinterGName();
}
return "";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -