2023-09-17 22:13:42 +03:00
|
|
|
package GlobalData.RemoteFile.UI;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common_old.UI.Trees.TreeForm;
|
|
|
|
|
import Common_old.UI.UI;
|
|
|
|
|
import Common_old.UI.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;
|
|
|
|
|
}
|
|
|
|
|
}
|