Fixed errors
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package org.openautonomousconnection.webclient.network.website.tab;
|
package org.openautonomousconnection.webclient.network.website.tab;
|
||||||
|
|
||||||
|
import org.openautonomousconnection.webclient.network.website.WebSite;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
@@ -10,5 +12,8 @@ public interface Tab {
|
|||||||
URL getInfoName();
|
URL getInfoName();
|
||||||
void setInfoName(URL infoName);
|
void setInfoName(URL infoName);
|
||||||
|
|
||||||
|
WebSite getWebSite();
|
||||||
|
void setWebSite(WebSite webSite);
|
||||||
|
|
||||||
void refresh() throws Exception;
|
void refresh() throws Exception;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ public final class WebTab implements Tab {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void refresh() throws Exception {
|
public void refresh() throws Exception {
|
||||||
|
|
||||||
if (client.getClientServerConnection().isConnected()) client.getClientServerConnection().disconnect();
|
if (client.getClientServerConnection().isConnected()) client.getClientServerConnection().disconnect();
|
||||||
int port = infoName.getPort() == -1 ? DEFAULT_WEB_PORT_TCP : infoName.getPort();
|
int port = infoName.getPort() == -1 ? DEFAULT_WEB_PORT_TCP : infoName.getPort();
|
||||||
client.buildServerConnection(null, true);
|
client.buildServerConnection(null, true);
|
||||||
|
|||||||
@@ -4,15 +4,7 @@
|
|||||||
|
|
||||||
package org.openautonomousconnection.webclient.ui;
|
package org.openautonomousconnection.webclient.ui;
|
||||||
|
|
||||||
import lombok.Getter;
|
import org.openautonomousconnection.oacswing.component.OACFrame;
|
||||||
|
|
||||||
import javax.swing.*;
|
|
||||||
import java.awt.*;
|
|
||||||
import java.awt.event.ComponentAdapter;
|
|
||||||
import java.awt.event.ComponentEvent;
|
|
||||||
import java.awt.event.MouseAdapter;
|
|
||||||
import java.awt.event.MouseEvent;
|
|
||||||
import java.awt.geom.RoundRectangle2D;
|
|
||||||
|
|
||||||
public abstract class BrowserFrame extends OACFrame {
|
public abstract class BrowserFrame extends OACFrame {
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import java.awt.event.MouseAdapter;
|
|||||||
import java.awt.event.MouseEvent;
|
import java.awt.event.MouseEvent;
|
||||||
import java.awt.event.MouseMotionAdapter;
|
import java.awt.event.MouseMotionAdapter;
|
||||||
|
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
public class TopBar extends JPanel {
|
public class TopBar extends JPanel {
|
||||||
@Getter
|
@Getter
|
||||||
private MenuButton closeButton, minimizeButton, maximizeButton;
|
private MenuButton closeButton, minimizeButton, maximizeButton;
|
||||||
|
|||||||
Reference in New Issue
Block a user