|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.framework.Configuration
public final class Configuration
Settings used throughout the framework. These settings are used during initialization and should be set before the application is initialized, before EntityApplicationPanel.startApplication is called. EntityApplicationPanel.initializeSettings() is a convenience method for this purpose, override and use it to set configuration properties.
Field Summary | |
---|---|
static String |
ALL_PANELS_ACTIVE
Indicates whether all entity panels should be enabled and receiving input by default Value type: Boolean Default value: false |
static String |
ALLOW_COLUMN_REORDERING
Specifies whether or not columns can be rearranged in tables Value type: Boolean Default value: true |
static String |
AUTHENTICATION_REQUIRED
Specifies whether user authentication is required Value type: Boolean Default value: true |
static String |
AUTO_CREATE_ENTITY_MODELS
Specifies whether entity models should be automatically created if not specified. |
static String |
CACHE_REPORTS
Specifies whether or not reports are cached when loaded from disk/network, this prevents "hot deploy" of reports. |
static String |
CLIENT_CONNECTION_TYPE
Specifies whether the client should connect locally or remotely, accepted values: local, remote Value type: String Default value: local |
static String |
COMPACT_ENTITY_PANEL_LAYOUT
Indicates whether entity panels containing detail panels should by default be laid out in a compact manner Value type: Boolean Default value: true |
static String |
CONFIRM_EXIT
Indicates whether the application should ask for confirmation when exiting Value type: Boolean Default value: false |
static String |
CONNECTION_TYPE_LOCAL
Indicates a local database connection |
static String |
CONNECTION_TYPE_REMOTE
Indicates a remote database connection |
static String |
DEFAULT_COMBO_BOX_NULL_VALUE_ITEM
Specifies the value used by default to represent a null value in combo box models. |
static String |
DEFAULT_DATE_FORMAT
The date format pattern to use when showing date values in tables and when creating default date input fields Value type: String Default value: dd-MM-yyyy |
static String |
DEFAULT_FOREIGN_KEY_FETCH_DEPTH
Specifies the default foreign key fetch depth Value type: Integer Default value: 1 |
static String |
DEFAULT_LABEL_TEXT_ALIGNMENT
Specifies the default horizontal alignment used in labels Value type: Integer (JLabel.LEFT, JLabel.RIGHT, JLabel.CENTER) Default value: JLabel.LEFT |
static String |
DEFAULT_LOOK_AND_FEEL_CLASSNAME
Specifies the default look and feel classname Value type: String Default value: UIManager.getSystemLookAndFeelClassName() |
static String |
DEFAULT_SEARCH_PANEL_STATE
Specifies the default search panel state, whether it should be visible or not Value type: Boolean Default value: false |
static String |
DEFAULT_TIMESTAMP_FORMAT
The date format pattern to use when showing timestamp values in tables and when creating default timestamp input fields Value type: String Default value: dd-MM-yyyy HH:mm |
static String |
DEFAULT_USERNAME
Default username for the login panel |
static String |
ENTITY_DESERIALIZER_CLASS
Specifies the class used for deserializing entity instances. |
static String |
ENTITY_SERIALIZER_CLASS
Specifies the class used for serializing entity instances. |
static String |
INVALID_VALUE_BACKGROUND_COLOR
Specifies the color to use as background in input fields containing invalid values Value type: Color Default value: Color.LIGHT_GRAY |
static String |
JAVAX_NET_NET_TRUSTSTORE
|
static String |
LIMIT_FOREIGN_KEY_FETCH_DEPTH
Specifies whether the foreign key value graph should be fully populated instead of being limited by the foreign key fetch depth setting. |
static String |
LOAD_TEST_BATCH_SIZE
Specifies the initial client batch size Value type: Integer Default value: 10 |
static String |
LOAD_TEST_LOGIN_DELAY
Specifies the number which the max think time is multiplied with when initializing the clients Value type: Integer Default value: 2 |
static String |
LOAD_TEST_REMOTE
Indicates whether a load test runner should use a remote load test server Value type: Boolean Default value: false |
static String |
LOAD_TEST_REMOTE_HOSTNAME
Specifies the hostname of the remote load test server Value type: String Default value: localhost |
static String |
LOAD_TEST_THINKTIME
Specifies the initial think time setting for the load test client (max think time = thinktime, min think time = max think time / 2) Value type: Integer Default value: 2000 |
static String |
LOCAL_CONNECTION_PROVIDER
Specifies the class providing local db connections Value type: String (the name of a class implementing org.jminor.framework.db.provider.EntityConnectionProvider) Default value: org.jminor.framework.db.provider.LocalEntityConnectionProvider |
static String |
PERFORM_NULL_VALIDATION
Specifies whether the client layer should perform null validation on entities before update/insert actions are performed Value type: Boolean Default value: true |
static String |
PERSIST_ENTITY_PANELS
Specifies if EntityPanels opened via the EntityApplicationPanel.showEntityPanelDialog method
should be persisted, or kept in memory, when the dialog is closed. |
static String |
PERSIST_FOREIGN_KEY_VALUES
Specifies whether foreign key values should persist when the UI is cleared or be reset to null Value type: Boolean Default value: true |
static String |
PROPERTY_DEBUG_OUTPUT
Specifies whether the framework should output verbose debug output regarding property changes in entities Value type: Boolean Default value: false |
static String |
REMOTE_CONNECTION_PROVIDER
Specifies the class providing remote db connections Value type: String (the name of a class implementing org.jminor.framework.db.provider.EntityConnectionProvider) Default value: org.jminor.framework.server.RemoteEntityConnectionProvider |
static String |
REPORT_PATH
The report path used for the default report generation, either file or http based |
static String |
SERVER_ADMIN_PORT
The port on which the server should export the remote admin interface |
static String |
SERVER_CLIENT_LOGGING_ENABLED
The initial connection logging status on the server, either true (on) or false (off) Value type: Boolean Default value: true |
static String |
SERVER_CONNECTION_LIMIT
Specifies maximum number of concurrent connections the server accepts -1 indicates no limit and 0 indicates a closed server. |
static String |
SERVER_CONNECTION_LOG_SIZE
Specifies the size of the (circular) log the server keeps in memory for each connected client Value type: Integer Default value: 40 |
static String |
SERVER_CONNECTION_POOLING_INITIAL
Specifies a comma separated list of usernames for which to create connection pools on startup |
static String |
SERVER_CONNECTION_SSL_ENABLED
Specifies whether the server should establish connections using a secure sockets layer, true (on) or false (off) ValueType: Boolean Default value: true |
static String |
SERVER_DB_PORT
The port on which the server should export the remote database connections |
static String |
SERVER_DOMAIN_MODEL_CLASSES
Specifies a comma separated list of domain model classnames, these classes must be available on the server classpath or the jars containing these classes specified via the SERVER_DOMAIN_MODEL_JARS property |
static String |
SERVER_DOMAIN_MODEL_JARS
Specifies a comma separated list of jar files to use when loading domain model classes |
static String |
SERVER_HOST_NAME
The host on which to locate the server Value type: String Default value: localhost |
static String |
SERVER_NAME_PREFIX
Specifies the prefix used when exporting/looking up the JMinor server Value type: String Default value: JMinor Server |
static String |
SERVER_PORT
If specified, the client will look for a server running on this port |
static String |
SHOW_STARTUP_DIALOG
Specifies whether a startup dialog should be shown Value type: Boolean Default value: true |
static String |
SQL_BOOLEAN_VALUE_FALSE
Specifies the value used to denote a boolean false in the database Value type: Any Object Default value: 0 |
static String |
SQL_BOOLEAN_VALUE_TRUE
Specifies the value used to denote a boolean true in the database Value type: Any Object Default value: 1 |
static String |
TAB_PLACEMENT
Specifies the tab placement Value type: Integer (JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, JTabbedPane.RIGHT) Default value: JTabbedPane.TOP |
static String |
TABLE_AUTO_RESIZE_MODE
Specifies the default table column resize mode for tables in the application Value type: Integer (JTable.AUTO_RESIZE_*) Default value: JTable.AUTO_RESIZE_OFF |
static String |
TOOLBAR_BUTTONS
Specifies whether the action buttons (Save, update, delete, clear, refresh) should be on a toolbar Value type: Boolean Default value: false |
static String |
TRANSFER_FOCUS_ON_ENTER
Specifies whether focus should be transferred from components on enter, this does not work for editable combo boxes, combo boxes with the maximum match functionality enabled or text areas Value type: Boolean Default value: true |
static String |
USE_FOCUS_ACTIVATION
Indicates whether entity panels should be activated when the panel receives focus Value type: Boolean Default value: true |
static String |
USE_KEYBOARD_NAVIGATION
Indicates whether keyboard navigation will be enabled Value type: Boolean Default value: true |
static String |
USE_NUMBER_FORMAT_GROUPING
Specifies whether or not to use number format grouping in table views, i.e. 1234567 shown as 1.234.567 or 1,234,567 depending on locale. |
static String |
USE_OPTIMISTIC_LOCKING
Specifies whether optimistic locking should be performed, that is, if entities should be selected for update and checked for modification before being updated Value type: Boolean Default value: false |
static String |
USERNAME_PREFIX
Specifies a string to prepend to the username field in the login dialog Value type: String Default value: [empty string] |
static String |
WEB_SERVER_DOCUMENT_ROOT
Specifies the document root for the WebStartServer, if no specified the web server will not be started Value type: String Default value: null |
static String |
WEB_SERVER_PORT
Specifies the port number for the WebStartServer Value type: Integer Default value: 80 |
static String |
WILDCARD_CHARACTER
Specifies the wildcard character used by the framework Value type: String Default value: % |
Method Summary | |
---|---|
static void |
clearValue(String key)
|
static boolean |
entityDeserializerAvailable()
|
static boolean |
entitySerializerAvailable()
|
static Boolean |
getBooleanValue(String key)
|
static SimpleDateFormat |
getDefaultDateFormat()
|
static SimpleDateFormat |
getDefaultTimestampFormat()
|
static String |
getDefaultUsername(String applicationIdentifier)
|
static Integer |
getIntValue(String key)
|
static String |
getReportPath()
|
static String |
getStringValue(String key)
|
static Object |
getValue(String key)
|
static void |
init()
A convenience method for loading this class so that it parses configuration files and such |
static void |
resolveTruststoreProperty(String temporaryFileName)
Resolves the "javax.net.ssl.trustStore" to a temporary file, assigning it to the property |
static void |
setValue(String key,
Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONNECTION_TYPE_LOCAL
CLIENT_CONNECTION_TYPE
,
Constant Field Valuespublic static final String CONNECTION_TYPE_REMOTE
CLIENT_CONNECTION_TYPE
,
Constant Field Valuespublic static final String CLIENT_CONNECTION_TYPE
CONNECTION_TYPE_LOCAL
,
CONNECTION_TYPE_REMOTE
,
Constant Field Valuespublic static final String REPORT_PATH
public static final String CACHE_REPORTS
public static final String DEFAULT_USERNAME
public static final String SERVER_HOST_NAME
public static final String SERVER_PORT
public static final String SERVER_ADMIN_PORT
public static final String SERVER_DB_PORT
public static final String SERVER_CLIENT_LOGGING_ENABLED
public static final String SERVER_CONNECTION_LOG_SIZE
public static final String SERVER_CONNECTION_LIMIT
public static final String SERVER_CONNECTION_SSL_ENABLED
public static final String SERVER_CONNECTION_POOLING_INITIAL
public static final String SERVER_DOMAIN_MODEL_JARS
SERVER_DOMAIN_MODEL_CLASSES
,
Constant Field Valuespublic static final String SERVER_DOMAIN_MODEL_CLASSES
SERVER_DOMAIN_MODEL_JARS
,
Constant Field Valuespublic static final String LOAD_TEST_THINKTIME
public static final String LOAD_TEST_LOGIN_DELAY
public static final String LOAD_TEST_BATCH_SIZE
public static final String LOAD_TEST_REMOTE
public static final String LOAD_TEST_REMOTE_HOSTNAME
public static final String DEFAULT_TIMESTAMP_FORMAT
public static final String DEFAULT_DATE_FORMAT
public static final String ALL_PANELS_ACTIVE
USE_FOCUS_ACTIVATION
,
Constant Field Valuespublic static final String COMPACT_ENTITY_PANEL_LAYOUT
public static final String USE_KEYBOARD_NAVIGATION
public static final String USE_FOCUS_ACTIVATION
ALL_PANELS_ACTIVE
,
Constant Field Valuespublic static final String TABLE_AUTO_RESIZE_MODE
public static final String CONFIRM_EXIT
public static final String PROPERTY_DEBUG_OUTPUT
public static final String TAB_PLACEMENT
public static final String ALLOW_COLUMN_REORDERING
public static final String TOOLBAR_BUTTONS
public static final String PERSIST_FOREIGN_KEY_VALUES
public static final String USERNAME_PREFIX
public static final String AUTHENTICATION_REQUIRED
public static final String SHOW_STARTUP_DIALOG
public static final String TRANSFER_FOCUS_ON_ENTER
public static final String USE_OPTIMISTIC_LOCKING
public static final String SQL_BOOLEAN_VALUE_FALSE
public static final String SQL_BOOLEAN_VALUE_TRUE
public static final String PERSIST_ENTITY_PANELS
EntityApplicationPanel.showEntityPanelDialog
method
should be persisted, or kept in memory, when the dialog is closed.
EntityApplicationPanel.showEntityPanelDialog(org.jminor.framework.client.ui.EntityPanelProvider)
,
Constant Field Valuespublic static final String DEFAULT_SEARCH_PANEL_STATE
public static final String SERVER_NAME_PREFIX
public static final String WEB_SERVER_DOCUMENT_ROOT
public static final String WEB_SERVER_PORT
public static final String WILDCARD_CHARACTER
public static final String USE_NUMBER_FORMAT_GROUPING
Property.setUseNumberFormatGrouping(boolean)
,
Constant Field Valuespublic static final String REMOTE_CONNECTION_PROVIDER
public static final String ENTITY_SERIALIZER_CLASS
public static final String ENTITY_DESERIALIZER_CLASS
public static final String LOCAL_CONNECTION_PROVIDER
public static final String DEFAULT_COMBO_BOX_NULL_VALUE_ITEM
public static final String INVALID_VALUE_BACKGROUND_COLOR
public static final String PERFORM_NULL_VALIDATION
Property.setNullable(boolean)
,
Constant Field Valuespublic static final String DEFAULT_LABEL_TEXT_ALIGNMENT
SwingConstants.LEFT
,
SwingConstants.RIGHT
,
SwingConstants.CENTER
,
Constant Field Valuespublic static final String DEFAULT_FOREIGN_KEY_FETCH_DEPTH
public static final String LIMIT_FOREIGN_KEY_FETCH_DEPTH
public static final String DEFAULT_LOOK_AND_FEEL_CLASSNAME
public static final String AUTO_CREATE_ENTITY_MODELS
public static final String JAVAX_NET_NET_TRUSTSTORE
Method Detail |
---|
public static void init()
public static void setValue(String key, Object value)
public static void clearValue(String key)
public static Object getValue(String key)
public static Integer getIntValue(String key)
public static Boolean getBooleanValue(String key)
public static String getStringValue(String key)
public static String getDefaultUsername(String applicationIdentifier)
applicationIdentifier
- the application identifier name
public static SimpleDateFormat getDefaultDateFormat()
DEFAULT_DATE_FORMAT
public static SimpleDateFormat getDefaultTimestampFormat()
DEFAULT_TIMESTAMP_FORMAT
public static String getReportPath()
public static boolean entitySerializerAvailable()
public static boolean entityDeserializerAvailable()
public static void resolveTruststoreProperty(String temporaryFileName)
temporaryFileName
- the temp filename
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |