Top Description Fields Constructors Methods
org.jabref.logic.remote

public Class RemotePreferences

extends Object
Class Inheritance
Imports
java.net.InetAddress, .UnknownHostException, javafx.beans.property.BooleanProperty, .IntegerProperty, .SimpleBooleanProperty, .SimpleIntegerProperty

Place for handling the preferences for the remote communication

Field Summary

Modifier and TypeField and Description
private final IntegerProperty
private final BooleanProperty

Constructor Summary

AccessConstructor and Description
public
RemotePreferences(int port, boolean useRemoteServer)

Method Summary

Modifier and TypeMethod and Description
public static InetAddress
getIpAddress()

Gets the IP address where the remote server is listening.

public int
public boolean
isDifferentPort(int otherPort)

public IntegerProperty
public void
setPort(int port)

public void
setUseRemoteServer(boolean useRemoteServer)

public boolean
public BooleanProperty
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

portback to summary
private final IntegerProperty port
useRemoteServerback to summary
private final BooleanProperty useRemoteServer

Constructor Detail

RemotePreferencesback to summary
public RemotePreferences(int port, boolean useRemoteServer)

Method Detail

getIpAddressback to summary
public static InetAddress getIpAddress() throws UnknownHostException

Gets the IP address where the remote server is listening.

getPortback to summary
public int getPort()
isDifferentPortback to summary
public boolean isDifferentPort(int otherPort)
portPropertyback to summary
public IntegerProperty portProperty()
setPortback to summary
public void setPort(int port)
setUseRemoteServerback to summary
public void setUseRemoteServer(boolean useRemoteServer)
useRemoteServerback to summary
public boolean useRemoteServer()
useRemoteServerPropertyback to summary
public BooleanProperty useRemoteServerProperty()