本文整理汇总了Java中net.sf.memoranda.Resource.getPath方法的典型用法代码示例。如果您正苦于以下问题:Java Resource.getPath方法的具体用法?Java Resource.getPath怎么用?Java Resource.getPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.memoranda.Resource
的用法示例。
在下文中一共展示了Resource.getPath方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initTable
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
/**
* Create table for resources panel.
*/
public void initTable() {
Vector v = CurrentProject.getResourcesList().getAllResources();
files = new Vector();
for (int i = 0; i < v.size(); i++) {
Resource r = (Resource)v.get(i);
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
if (f.isFile())
files.add(r);
}
else
files.add(r);
}
}
示例2: getValueAt
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
public Object getValueAt(int row, int col) {
Resource r = (Resource)files.get(row);
if (col == _RESOURCE)
return r;
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
switch (col) {
case 0: return f.getName();
case 1: MimeType mt = MimeTypesList.getMimeTypeForFile(f.getName());
if (mt != null) return mt.getLabel();
else return "unknown";
case 2: Date d = new Date(f.lastModified());
return d;/*Local.getDateString(d, java.text.DateFormat.SHORT) +" "+
Local.getTimeString(d);*/
case 3:return f.getPath();
}
}
else {
if (col == 0)
return r.getPath();
else if (col == 1)
return Local.getString("Internet shortcut");
else
return "";
}
return null;
}
示例3: initTable
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
public void initTable() {
Vector v = CurrentProject.getResourcesList().getAllResources();
files = new Vector();
for (int i = 0; i < v.size(); i++) {
Resource r = (Resource) v.get(i);
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
if (f.isFile()) {
files.add(r);
}
} else {
files.add(r);
}
}
}
示例4: initTable
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
public void initTable() {
Vector v = CurrentProject.getResourcesList().getAllResources();
files = new Vector();
for (int i = 0; i < v.size(); i++) {
Resource r = (Resource)v.get(i);
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
if (f.isFile())
files.add(r);
}
else
files.add(r);
}
}
示例5: getValueAt
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
public Object getValueAt(int row, int col) {
Resource r = (Resource)files.get(row);
if (col == _RESOURCE)
return r;
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
switch (col) {
case 0: return f.getName();
case 1: MimeType mt = MimeTypesList.getMimeTypeForFile(f.getName());
if (mt != null) return mt.getLabel();
else return "unknown";
case 2: Date d = new Date(f.lastModified());
return d;/*Local.getDateString(d, java.text.DateFormat.SHORT) +" "+
Local.getTimeString(d);*/
case 3:return f.getPath();
default:
break;
}
}
else {
if (col == 0)
return r.getPath();
else if (col == 1)
return Local.getString("Internet shortcut");
else
return "";
}
return null;
}
示例6: initTable
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
public void initTable() {
Vector v = CurrentProject.getResourcesList().getAllResources();
files = new Vector();
for (int i = 0; i < v.size(); i++) {
Resource r = (Resource)v.get(i);
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
if (f.isFile())
files.add(r);
}
else
files.add(r);
}
}
示例7: initTable
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
public void initTable() {
Vector v = CurrentProject.getResourcesList().getAllResources();
files = new Vector();
for (int i = 0; i < v.size(); i++) {
Resource r = (Resource) v.get(i);
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
if (f.isFile())
files.add(r);
} else
files.add(r);
}
}
示例8: getValueAt
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
public Object getValueAt(int row, int col) {
Resource r = (Resource) files.get(row);
if (col == _RESOURCE)
return r;
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
switch (col) {
case 0:
return f.getName();
case 1:
return r.getdescription();
case 2:
MimeType mt = MimeTypesList.getMimeTypeForFile(f.getName());
if (mt != null)
return mt.getLabel();
else
return "unknown";
case 3:
Date d = new Date(f.lastModified());
return d;/*
* Local.getDateString(d,
* java.text.DateFormat.SHORT) +" "+
* Local.getTimeString(d);
*/
case 4:
return f.getPath();
}
} else {
if (col == 0)
return r.getPath();
else if (col == 1)
return r.getdescription();
else if (col == 2)
return Local.getString("Internet shortcut");
else
return "";
}
return null;
}
示例9: initTable
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
private void initTable() {
Vector v = CurrentProject.getResourcesList().getAllResources();
files = new Vector<>();
for (Object aV : v) {
Resource r = (Resource) aV;
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
if (f.isFile())
files.add(r);
} else
files.add(r);
}
}
示例10: getValueAt
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
public Object getValueAt(int row, int col) {
Resource r = files.get(row);
if (col == _RESOURCE)
return r;
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
switch (col) {
case 0:
return f.getName();
case 1:
MimeType mt = MimeTypesList.getMimeTypeForFile(f.getName());
return mt.getLabel();
case 2:
Date d = new Date(f.lastModified());
return d;
case 3:
return f.getPath();
}
} else {
if (col == 0)
return r.getPath();
else if (col == 1)
return Local.getString("Internet shortcut");
else
return "";
}
return null;
}
示例11: getValueAt
import net.sf.memoranda.Resource; //导入方法依赖的package包/类
@Override
public Object getValueAt(int row, int col) {
Resource r = (Resource) files.get(row);
if (col == _RESOURCE) {
return r;
}
if (!r.isInetShortcut()) {
File f = new File(r.getPath());
switch (col) {
case 0:
return f.getName();
case 1:
MimeType mt = MimeTypesList.getMimeTypeForFile(f.getName());
if (mt != null) {
return mt.getLabel();
} else {
return "unknown";
}
case 2:
Date d = new Date(f.lastModified());
return d;/*
* Local.getDateString(d,
* java.text.DateFormat.SHORT) +" "+
* Local.getTimeString(d);
*/
case 3:
return f.getPath();
}
} else {
if (col == 0) {
return r.getPath();
} else if (col == 1) {
return Local.getString("Internet shortcut");
} else {
return "";
}
}
return null;
}