2024-10-09 22:21:57 +03:00
|
|
|
package _VisualDVM.GlobalData.RemoteFile.UI;
|
2024-10-09 20:35:18 +03:00
|
|
|
import Common.Visual.Trees.TreeForm;
|
2024-10-09 22:01:19 +03:00
|
|
|
import _VisualDVM.Visual.UI;
|
2024-10-08 22:33:49 +03:00
|
|
|
import Common.Visual.Windows.Dialog.DialogFields;
|
2023-09-17 22:13:42 +03:00
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
|
import java.awt.event.ActionListener;
|
|
|
|
|
public class RemoteFileChooserFields implements DialogFields {
|
|
|
|
|
public JPanel MainPanel;
|
|
|
|
|
public JLabel lCurrentFolder;
|
|
|
|
|
public JLabel lCurrentFile;
|
|
|
|
|
public TreeForm treeForm;
|
|
|
|
|
private JPanel TreePanel;
|
|
|
|
|
private JButton bBack;
|
|
|
|
|
private JButton bHome;
|
|
|
|
|
public RemoteFileChooserFields() {
|
|
|
|
|
bBack.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
|
|
UI.getRemoteFileChooser().goUp();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
bHome.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
|
|
UI.getRemoteFileChooser().goHome();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
private void createUIComponents() {
|
|
|
|
|
// TODO: place custom component creation code here
|
|
|
|
|
TreePanel = (treeForm = new TreeForm(RemoteFilesTree.class)).getContent();
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public Component getContent() {
|
|
|
|
|
return MainPanel;
|
|
|
|
|
}
|
|
|
|
|
}
|