Class PropertyLoader
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.publication.PropertyLoader
-
public class PropertyLoader extends java.lang.Object
Central class to load and define graphical properties and parameters for the data submission and publication tool
-
-
Field Summary
Fields Modifier and Type Field Description static java.net.URL
ADOBE_GET_URL
static javax.swing.ImageIcon
ADOBE_ICON
static java.awt.Font
AGREEMENT_PANEL_FONT
static java.lang.String
AGREEMENT_PANEL_PROPERTY
static java.lang.String
AGREEMENT_PDF_PROPERTY
static int
ATTRIBUTE_LABEL_FONT_SIZE
static int
ATTRIBUTE_LABEL_WIDTH
static int
ATTRIBUTE_PANEL_WIDTH
static int
AUTHOR_PANEL_HEIGHT
static AttributeLabel
AUTHORS_LABEL
static java.awt.Font
DEFAULT_FONT
static int
DEFAULT_FONT_SIZE
static AttributeLabel
DESCRIPTION_LABEL
static int
DESCRIPTION_PANEL_HEIGHT
static java.awt.Color
DISABLED_FONT_COLOR
static java.awt.Image
EDAL_ICON
static java.awt.Image
EDAL_LOGO
static AttributeLabel
EMBARGO_LABEL
static int
EMBARGO_PANEL_HEIGHT
static java.awt.Color
HEADER_FOOTER_COLOR
static java.awt.Color
LABEL_COLOR
static AttributeLabel
LANGUAGE_LABEL
static AttributeLabel
LICENSE_LABEL
static int
LICENSE_PANEL_HEIGHT
static java.awt.Color
MAIN_BACKGROUND_COLOR
static java.awt.Color
MAIN_FONT_COLOR
static java.awt.Dimension
MINIMUM_DIM_PUBLICATION_FRAME
static java.awt.Color
OPEN_ACCESS_COLOR
static java.awt.Font
OPEN_ACCESS_FONT
static javax.swing.ImageIcon
PDF_ICON
static java.net.URL
PGP_CONTRACT_URL
static java.lang.String
PROGRAM_NAME
static java.util.Properties
props
static AttributeLabel
PUBLISHER_LABEL
static int
PUBLISHER_PANEL_HEIGHT
static AttributeLabel
RESOURCE_LABEL
static java.util.List<java.lang.String>
RESOURCE_TYPES
static java.nio.file.Path
RUNNING_PATH
static int
SMALL_BUTTON_FONT_SIZE
static AttributeLabel
SUBJECTS_LABEL
static int
SUBJECTS_PANEL_HEIGHT
static java.util.List<java.lang.String>
SUPPORTED_LICENSES
static java.util.List<java.lang.String>
SUPPORTED_LICENSES_HUMAN_READABLE_URL
static java.util.List<java.lang.String>
SUPPORTED_LICENSES_LEGAL_CODE_URL
static java.awt.Color
TABLE_HAS_VALUE_BACKGROUND_COLOR
static AttributeLabel
TITLE_LABEL
static int
TITLE_PANEL_HEIGHT
static int
TWO_LINE_HEIGHT
static AttributeLabel
UPLOADPATH_LABEL
static java.util.Properties
userValues
-
Constructor Summary
Constructors Constructor Description PropertyLoader()
-
Method Summary
Modifier and Type Method Description static void
initialize(java.lang.String propsFile)
static java.lang.String
loadAuthorsString()
static java.lang.String
loadLanguageString()
static java.lang.String
loadPublisherString()
static java.lang.String
loadResourceString()
static java.lang.String
loadSubjectsString()
static java.lang.String
loadUploadPathString()
static void
setUserValue(java.lang.String key, java.lang.String value)
-
-
-
Field Detail
-
PROGRAM_NAME
public static final java.lang.String PROGRAM_NAME
- See Also:
- Constant Field Values
-
AGREEMENT_PANEL_PROPERTY
public static final java.lang.String AGREEMENT_PANEL_PROPERTY
- See Also:
- Constant Field Values
-
AGREEMENT_PDF_PROPERTY
public static final java.lang.String AGREEMENT_PDF_PROPERTY
- See Also:
- Constant Field Values
-
PGP_CONTRACT_URL
public static java.net.URL PGP_CONTRACT_URL
-
ADOBE_GET_URL
public static java.net.URL ADOBE_GET_URL
-
EDAL_LOGO
public static java.awt.Image EDAL_LOGO
-
EDAL_ICON
public static java.awt.Image EDAL_ICON
-
PDF_ICON
public static javax.swing.ImageIcon PDF_ICON
-
ADOBE_ICON
public static javax.swing.ImageIcon ADOBE_ICON
-
props
public static java.util.Properties props
-
userValues
public static java.util.Properties userValues
-
RUNNING_PATH
public static java.nio.file.Path RUNNING_PATH
-
HEADER_FOOTER_COLOR
public static final java.awt.Color HEADER_FOOTER_COLOR
-
MAIN_BACKGROUND_COLOR
public static final java.awt.Color MAIN_BACKGROUND_COLOR
-
LABEL_COLOR
public static final java.awt.Color LABEL_COLOR
-
MAIN_FONT_COLOR
public static final java.awt.Color MAIN_FONT_COLOR
-
DISABLED_FONT_COLOR
public static final java.awt.Color DISABLED_FONT_COLOR
-
OPEN_ACCESS_COLOR
public static final java.awt.Color OPEN_ACCESS_COLOR
-
TABLE_HAS_VALUE_BACKGROUND_COLOR
public static final java.awt.Color TABLE_HAS_VALUE_BACKGROUND_COLOR
-
OPEN_ACCESS_FONT
public static final java.awt.Font OPEN_ACCESS_FONT
-
DEFAULT_FONT_SIZE
public static final int DEFAULT_FONT_SIZE
- See Also:
- Constant Field Values
-
ATTRIBUTE_LABEL_FONT_SIZE
public static final int ATTRIBUTE_LABEL_FONT_SIZE
- See Also:
- Constant Field Values
-
SMALL_BUTTON_FONT_SIZE
public static final int SMALL_BUTTON_FONT_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_FONT
public static final java.awt.Font DEFAULT_FONT
-
AGREEMENT_PANEL_FONT
public static final java.awt.Font AGREEMENT_PANEL_FONT
-
TITLE_PANEL_HEIGHT
public static final int TITLE_PANEL_HEIGHT
- See Also:
- Constant Field Values
-
SUBJECTS_PANEL_HEIGHT
public static final int SUBJECTS_PANEL_HEIGHT
- See Also:
- Constant Field Values
-
PUBLISHER_PANEL_HEIGHT
public static final int PUBLISHER_PANEL_HEIGHT
- See Also:
- Constant Field Values
-
AUTHOR_PANEL_HEIGHT
public static final int AUTHOR_PANEL_HEIGHT
- See Also:
- Constant Field Values
-
EMBARGO_PANEL_HEIGHT
public static final int EMBARGO_PANEL_HEIGHT
- See Also:
- Constant Field Values
-
LICENSE_PANEL_HEIGHT
public static final int LICENSE_PANEL_HEIGHT
- See Also:
- Constant Field Values
-
DESCRIPTION_PANEL_HEIGHT
public static final int DESCRIPTION_PANEL_HEIGHT
- See Also:
- Constant Field Values
-
TWO_LINE_HEIGHT
public static final int TWO_LINE_HEIGHT
- See Also:
- Constant Field Values
-
MINIMUM_DIM_PUBLICATION_FRAME
public static final java.awt.Dimension MINIMUM_DIM_PUBLICATION_FRAME
-
ATTRIBUTE_PANEL_WIDTH
public static final int ATTRIBUTE_PANEL_WIDTH
- See Also:
- Constant Field Values
-
ATTRIBUTE_LABEL_WIDTH
public static final int ATTRIBUTE_LABEL_WIDTH
- See Also:
- Constant Field Values
-
SUPPORTED_LICENSES
public static java.util.List<java.lang.String> SUPPORTED_LICENSES
-
SUPPORTED_LICENSES_LEGAL_CODE_URL
public static java.util.List<java.lang.String> SUPPORTED_LICENSES_LEGAL_CODE_URL
-
SUPPORTED_LICENSES_HUMAN_READABLE_URL
public static java.util.List<java.lang.String> SUPPORTED_LICENSES_HUMAN_READABLE_URL
-
RESOURCE_TYPES
public static java.util.List<java.lang.String> RESOURCE_TYPES
-
UPLOADPATH_LABEL
public static AttributeLabel UPLOADPATH_LABEL
-
TITLE_LABEL
public static AttributeLabel TITLE_LABEL
-
DESCRIPTION_LABEL
public static AttributeLabel DESCRIPTION_LABEL
-
AUTHORS_LABEL
public static AttributeLabel AUTHORS_LABEL
-
SUBJECTS_LABEL
public static AttributeLabel SUBJECTS_LABEL
-
LANGUAGE_LABEL
public static AttributeLabel LANGUAGE_LABEL
-
LICENSE_LABEL
public static AttributeLabel LICENSE_LABEL
-
PUBLISHER_LABEL
public static AttributeLabel PUBLISHER_LABEL
-
EMBARGO_LABEL
public static AttributeLabel EMBARGO_LABEL
-
RESOURCE_LABEL
public static AttributeLabel RESOURCE_LABEL
-
-
Method Detail
-
initialize
public static void initialize(java.lang.String propsFile)
-
loadSubjectsString
public static java.lang.String loadSubjectsString()
-
loadPublisherString
public static java.lang.String loadPublisherString()
-
loadAuthorsString
public static java.lang.String loadAuthorsString()
-
setUserValue
public static void setUserValue(java.lang.String key, java.lang.String value)
-
loadLanguageString
public static java.lang.String loadLanguageString()
-
loadResourceString
public static java.lang.String loadResourceString()
-
loadUploadPathString
public static java.lang.String loadUploadPathString()
-
-