|
|
|
@ -11,6 +11,7 @@ import com.fr.file.filetree.IOFileNodeFilter;
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
|
|
public class AuthorityEditorPane extends BasicBeanPane<RemoteDesignAuthority> { |
|
|
|
|
|
|
|
|
@ -24,6 +25,7 @@ public class AuthorityEditorPane extends BasicBeanPane<RemoteDesignAuthority> {
|
|
|
|
|
this.setBorder(BorderFactory.createEmptyBorder()); |
|
|
|
|
this.add(label, BorderLayout.NORTH); |
|
|
|
|
IOFileNodeFilter filter = new IOFileNodeFilter(new String[]{".cpt", ".class", ".frm", ".form"}); |
|
|
|
|
tree.setDigIn(true); |
|
|
|
|
tree.setFileNodeFilter(filter); |
|
|
|
|
this.add(new UIScrollPane(tree), BorderLayout.CENTER); |
|
|
|
|
tree.refreshEnv(FRContext.getCurrentEnv()); |
|
|
|
@ -43,6 +45,7 @@ public class AuthorityEditorPane extends BasicBeanPane<RemoteDesignAuthority> {
|
|
|
|
|
@Override |
|
|
|
|
public RemoteDesignAuthority updateBean() { |
|
|
|
|
// todo 更新权限信息
|
|
|
|
|
System.out.println(Arrays.toString(tree.getCheckBoxTreeSelectionModel().getSelectionPaths())); |
|
|
|
|
return new RemoteDesignAuthority(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|