Package com.uc4.communication
Class GeneralSettings
java.lang.Object
com.uc4.communication.GeneralSettings
This class represents the general settings.
These settings can be found in the User Interface - Options - Settings - General
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSetting for magnetic windows.static enumToolbar label location. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the magnetic area in pixels.Returns the magnetic scope of the windows that are shown in the UserInterface.intReturns the maximum size in bytes for binary uploads (STORE objects).Returns the location of the toolbar label.booleanReturns the mode in which the desktop of the UserInterface is displayed.voidsetDesktopModeMulti(boolean desktopModeMulti) Sets the mode in which the desktop of the UserInterface is displayed.voidsetMagneticArea(int magneticArea) Sets the magnetic area in pixels.voidsetMagneticWindows(GeneralSettings.MagneticWindows magneticWindows) Sets the magnetic scope of the windows that are shown in the UserInterface.voidsetToolbarLabel(GeneralSettings.ToolbarLabel toolbarLabel) Sets the location of the toolbar label.
-
Method Details
-
isDesktopModeMulti
public boolean isDesktopModeMulti()Returns the mode in which the desktop of the UserInterface is displayed.- Returns:
- Desktop mode
-
setDesktopModeMulti
public void setDesktopModeMulti(boolean desktopModeMulti) Sets the mode in which the desktop of the UserInterface is displayed. Note that the settings that have been specified in the first connection are applied if several connections are open.- Parameters:
desktopModeMulti- Desktop mode
-
getMagneticWindows
Returns the magnetic scope of the windows that are shown in the UserInterface. By default, this function is deactivated.- Returns:
- Magnetic scope
-
setMagneticWindows
Sets the magnetic scope of the windows that are shown in the UserInterface.- Parameters:
magneticWindows- Magnetic scope
-
getMagneticArea
public int getMagneticArea()Returns the magnetic area in pixels. If this value is not kept, the window is aligned to the nearest screen edge or window.- Returns:
- Magnetic Area in pixels
-
setMagneticArea
public void setMagneticArea(int magneticArea) Sets the magnetic area in pixels. If this value is not kept, the window is aligned to the nearest screen edge or window.- Parameters:
magneticArea- Magnetic Area in pixels
-
getToolbarLabel
Returns the location of the toolbar label.- Returns:
- Location of the label in toolbars
-
setToolbarLabel
Sets the location of the toolbar label.- Parameters:
toolbarLabel- Location of the label in toolbars
-
getMaxStoreImportSize
public int getMaxStoreImportSize()Returns the maximum size in bytes for binary uploads (STORE objects).- Returns:
- Max size of a file in a STORE object.
-