/*
* Created on 2004/08/15
* Author aki@www.xucker.jpn.org
* License Apache2.0 or Common Public License
*/
package org.jpn.xucker.commons.swt.series.fls;
import java.io.File;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.RowData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Shell;
import org.jpn.xucker.commons.swt.series.fls.FileListStandard;
import org.jpn.xucker.commons.swt.ui.CopyTable;
/**
*
*
*/
public class Sample extends FileListStandard{
/**
* @param shell
*/
Button showNormalHtmlCheckButton;
public Sample(Shell shell) {
super(shell);
// TODO Auto-generated constructor stub
}
public static void main(String[] args) {
Display display=new Display();
Shell shell=new Shell(display,SWT.CLOSE|SWT.MIN);
Sample main=new Sample(shell);
shell.open();
while(!shell.isDisposed()){
if (!display.readAndDispatch ()){
display.sleep ();
}
}
display.dispose();
}
/* (non-Javadoc)
* @see org.jpn.xucker.commons.swt.series.fls.FileListStandard#afterConstract()
*/
protected void afterConstract() {
// TODO Auto-generated method stub
}
/* (non-Javadoc)
* @see org.jpn.xucker.commons.swt.series.fls.FileListStandard#beforeConstract()
*/
protected void beforeConstract() {
// TODO Auto-generated method stub
resultColumnText=new String[]{"状態","ファイル名","エラー内容","ディレクトリー"};
resultColumnWidth=new int[]{50,120,120,130};
HOMEPAGE_URL="http://www.xucker.jpn.org/product/";
APP_NAME="App";
ICON_RESOURCE="org/jpn/xucker/commons/resource/icon.png";
EXEC_LABEL="exec";
}
/* (non-Javadoc)
* @see org.jpn.xucker.commons.swt.series.fls.FileListStandard#execFile(java.io.File)
*/
public void execFile(File file) {
// TODO Auto-generated method stub
System.out.println(file.getAbsolutePath());
}
/* (non-Javadoc)
* @see org.jpn.xucker.commons.swt.series.fls.FileListStandard#createOptionUI(org.eclipse.swt.widgets.Group)
*/
protected void createOptionUI(Group optionGroup) {
RowData data=new RowData();
data.width=470;
optionGroup.setLayoutData(data);
showNormalHtmlCheckButton=new Button(optionGroup,SWT.CHECK);
showNormalHtmlCheckButton.setText("エラーでないHTMLも結果に表示する");
RowData data2=new RowData();
data2.width=200;;
showNormalHtmlCheckButton.setLayoutData(data2);
}
}
|