org.pdfsam.guiclient.configuration.services
Interface GuiConfigurationService

All Known Implementing Classes:
XmlGuiConfigurationService

public interface GuiConfigurationService

Services related to the GUI configuration

Author:
Andrea Vacondio

Method Summary
 void addRecentEnvironment(java.lang.String envPath)
          adds the given env ensuring that there are no duplicates, that the new env is at the top of the list and that the list size is at most 8.
 int getExtendedState()
           
 java.awt.Dimension getHorizontalDividerDimension()
           
 int getHorizontalDividerLocation()
           
 java.awt.Point getLocationOnScreen()
           
 java.util.Collection<java.lang.String> getRecentEnvironments()
           
 java.lang.String getSelectedPlugin()
           
 java.awt.Dimension getSize()
           
 java.awt.Dimension getVerticalDividerDimension()
           
 int getVerticalDividerLocation()
           
 void save()
          saves the current gui configuration
 void setExtendedState(int state)
          set the extended state
 void setHorizontalDividerDimension(java.awt.Dimension horizontalDividerDimension)
          set the horizontal divider dimension
 void setHorizontalDividerLocation(int location)
          set the horizontal divider location
 void setLocationOnScreen(java.awt.Point point)
          set the location on screen
 void setSelectedPlugin(java.lang.String selectedPlugin)
          set the selected plugin
 void setSize(java.awt.Dimension dimension)
          set the size
 void setVerticalDividerDimension(java.awt.Dimension verticalDividerDimension)
          set the vertical divider dimension
 void setVerticalDividerLocation(int location)
          set the vertical divider location
 

Method Detail

getExtendedState

int getExtendedState()
Returns:
the extended state
See Also:
Frame.getExtendedState()

setExtendedState

void setExtendedState(int state)
set the extended state

Parameters:
state -

getSize

java.awt.Dimension getSize()
Returns:
See Also:
javax.swing.JFrame#getSize())

setSize

void setSize(java.awt.Dimension dimension)
set the size

Parameters:
dimension -

getLocationOnScreen

java.awt.Point getLocationOnScreen()
Returns:
See Also:
javax.swing.JFrame#getLocationOnScreen())

setLocationOnScreen

void setLocationOnScreen(java.awt.Point point)
set the location on screen

Parameters:
point -

getHorizontalDividerLocation

int getHorizontalDividerLocation()
Returns:
the horizontal divider location

setHorizontalDividerLocation

void setHorizontalDividerLocation(int location)
set the horizontal divider location

Parameters:
location -

getVerticalDividerLocation

int getVerticalDividerLocation()
Returns:
the vertical divider location

setVerticalDividerLocation

void setVerticalDividerLocation(int location)
set the vertical divider location

Parameters:
location -

getHorizontalDividerDimension

java.awt.Dimension getHorizontalDividerDimension()
Returns:
the horizontal divider dimension

setHorizontalDividerDimension

void setHorizontalDividerDimension(java.awt.Dimension horizontalDividerDimension)
set the horizontal divider dimension

Parameters:
horizontalDividerDimension -

getVerticalDividerDimension

java.awt.Dimension getVerticalDividerDimension()
Returns:
the vertical divider dimension

setVerticalDividerDimension

void setVerticalDividerDimension(java.awt.Dimension verticalDividerDimension)
set the vertical divider dimension

Parameters:
verticalDividerDimension -

setSelectedPlugin

void setSelectedPlugin(java.lang.String selectedPlugin)
set the selected plugin

Parameters:
selectedPlugin -

getSelectedPlugin

java.lang.String getSelectedPlugin()
Returns:
the selected plugin

save

void save()
          throws java.io.IOException
saves the current gui configuration

Throws:
java.io.IOException

addRecentEnvironment

void addRecentEnvironment(java.lang.String envPath)
adds the given env ensuring that there are no duplicates, that the new env is at the top of the list and that the list size is at most 8.

Parameters:
envPath -

getRecentEnvironments

java.util.Collection<java.lang.String> getRecentEnvironments()
Returns:
the queue with the recent environments