přejmenování tříd s dialogy
parent
c3d56cf13d
commit
f4c15f2697
|
|
@ -28,7 +28,7 @@ import jnet.lib.object.Node;
|
|||
import jnet.lib.object.NodeConnection;
|
||||
import jnet.lib.object.Site;
|
||||
|
||||
public class ConnectionDialog extends JFrame {
|
||||
public class DialogConnection extends JFrame {
|
||||
|
||||
private Node startObj;
|
||||
private Node endObj;
|
||||
|
|
@ -55,14 +55,14 @@ public class ConnectionDialog extends JFrame {
|
|||
private JComboBox<String> sourceDeviceComboBox = new JComboBox<>();
|
||||
private JComboBox<Item> sourceInterfaceComboBox = new JComboBox<>();
|
||||
|
||||
// public ConnectionDialog(Node startObj, Node endObj, boolean newObject) throws HeadlessException {
|
||||
// public DialogConnection(Node startObj, Node endObj, boolean newObject) throws HeadlessException {
|
||||
// this.startObj = startObj;
|
||||
// this.endObj = endObj;
|
||||
// this.newObject = newObject;
|
||||
//
|
||||
// init();
|
||||
// }
|
||||
public ConnectionDialog(NodeConnection connection, boolean newObject) throws HeadlessException {
|
||||
public DialogConnection(NodeConnection connection, boolean newObject) throws HeadlessException {
|
||||
this.connection = connection;
|
||||
this.newObject = newObject;
|
||||
|
||||
|
|
@ -3,7 +3,6 @@ package jnet.client.gui.dialog;
|
|||
import jnet.client.gui.Window;
|
||||
import jnet.client.gui.serversettings.ServerSettingsPanel;
|
||||
import jnet.client.client.NettyClientManager;
|
||||
import jnet.lib.LogFile;
|
||||
import jnet.lib.Message;
|
||||
import jnet.lib.object.ObjectType;
|
||||
|
||||
|
|
@ -20,15 +19,15 @@ import java.util.Base64;
|
|||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class AddDeviceTypeDialog extends JDialog {
|
||||
public class DialogDeviceType extends JDialog {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(AddDeviceTypeDialog.class.getName());
|
||||
private static final Logger LOG = Logger.getLogger(DialogDeviceType.class.getName());
|
||||
|
||||
private JLabel info = new JLabel("PNG obrázek o šířce 32px");
|
||||
private JTextField nazevText = new JTextField(15);
|
||||
private String imgStr = "";
|
||||
|
||||
public AddDeviceTypeDialog() {
|
||||
public DialogDeviceType() {
|
||||
setTitle("Přidat typ zařízení");
|
||||
setModal(true);
|
||||
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
|
||||
|
|
@ -16,16 +16,16 @@ import java.util.logging.Logger;
|
|||
import static jnet.client.Client.nettyClient;
|
||||
import jnet.lib.LogFile;
|
||||
|
||||
public class LoginDialog extends JDialog {
|
||||
public class DialogLogin extends JDialog {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(LoginDialog.class.getName());
|
||||
private static final Logger LOG = Logger.getLogger(DialogLogin.class.getName());
|
||||
|
||||
private JTextField serverText;
|
||||
private JTextField portText;
|
||||
private JTextField userText;
|
||||
private JPasswordField passwordText;
|
||||
|
||||
public LoginDialog() {
|
||||
public DialogLogin() {
|
||||
setTitle("Přihlásit");
|
||||
setSize(350, 250);
|
||||
setLocationRelativeTo(null);
|
||||
|
|
@ -19,18 +19,18 @@ import jnet.client.gui.mapview.MapView;
|
|||
import jnet.lib.object.Node;
|
||||
import jnet.lib.object.Site;
|
||||
|
||||
public class NodeChangeSite extends JDialog {
|
||||
public class DialogNodeChangeSite extends JDialog {
|
||||
|
||||
private final Node node;
|
||||
private final MapView mapView; // může být null
|
||||
|
||||
// Původní konstruktor pro zachování kompatibility
|
||||
public NodeChangeSite(Node node) {
|
||||
public DialogNodeChangeSite(Node node) {
|
||||
this(node, null);
|
||||
}
|
||||
|
||||
// Nový konstruktor s MapView
|
||||
public NodeChangeSite(Node node, MapView mapView) {
|
||||
public DialogNodeChangeSite(Node node, MapView mapView) {
|
||||
this.node = node;
|
||||
this.mapView = mapView;
|
||||
setModal(true);
|
||||
|
|
@ -20,12 +20,12 @@ import jnet.lib.object.Node;
|
|||
import jnet.lib.object.Site;
|
||||
|
||||
|
||||
public class NodeMapLinkDialog extends JDialog {
|
||||
public class DialogNodeMapLink extends JDialog {
|
||||
|
||||
private Boolean newObject;
|
||||
private Node node;
|
||||
|
||||
public NodeMapLinkDialog(Node node, Boolean newObject) {
|
||||
public DialogNodeMapLink(Node node, Boolean newObject) {
|
||||
this.newObject = newObject;
|
||||
this.node = node;
|
||||
|
||||
|
|
@ -16,12 +16,12 @@ import javax.swing.JDialog;
|
|||
import jnet.client.client.NettyClientManager;
|
||||
import jnet.lib.Message;
|
||||
|
||||
public class NodeStaticDialog extends JDialog {
|
||||
public class DialogNodeStatic extends JDialog {
|
||||
|
||||
private Boolean newObject;
|
||||
private Node node;
|
||||
|
||||
public NodeStaticDialog(Node node, Boolean newObject) {
|
||||
public DialogNodeStatic(Node node, Boolean newObject) {
|
||||
this.newObject = newObject;
|
||||
this.node = node;
|
||||
|
||||
|
|
@ -16,9 +16,9 @@ import jnet.lib.LogFile;
|
|||
import jnet.lib.ResourceLoader;
|
||||
import jnet.lib.object.OnlineClients;
|
||||
|
||||
public class OnlineClientsDialog extends JDialog {
|
||||
public class DialogOnlineClients extends JDialog {
|
||||
|
||||
public OnlineClientsDialog() {
|
||||
public DialogOnlineClients() {
|
||||
setTitle("Online klienti");
|
||||
setLocationRelativeTo(null);
|
||||
setAlwaysOnTop(true);
|
||||
|
|
@ -6,9 +6,9 @@ import jnet.lib.Message;
|
|||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class NewSiteDialog extends JDialog {
|
||||
public class DialogSite extends JDialog {
|
||||
|
||||
public NewSiteDialog() {
|
||||
public DialogSite() {
|
||||
setTitle("Přidat mapu");
|
||||
setModal(true);
|
||||
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
|
||||
|
|
@ -10,7 +10,7 @@ import javax.swing.*;
|
|||
import java.awt.*;
|
||||
import java.security.SecureRandom;
|
||||
|
||||
public class UserDialog extends JDialog {
|
||||
public class DialogUser extends JDialog {
|
||||
|
||||
private boolean newUser;
|
||||
private final User user;
|
||||
|
|
@ -24,7 +24,7 @@ public class UserDialog extends JDialog {
|
|||
private JCheckBox deleteObject;
|
||||
private JCheckBox editObject;
|
||||
|
||||
public UserDialog(User user, boolean newUser) {
|
||||
public DialogUser(User user, boolean newUser) {
|
||||
this.user = user;
|
||||
this.newUser = newUser;
|
||||
|
||||
Loading…
Reference in New Issue