|
|||||||||
| Home >> All >> org >> scopemvc >> util >> [ convertor overview ] | PREV PACKAGE NEXT PACKAGE | ||||||||
Package org.scopemvc.util.convertor
Utility classes that include two main areas of interest to application developers: ScopeConfig for configuring the Scope framework, and UIStrings used to look up user-readable Strings from localised resources.
See:
Description
| Interface Summary | |
| StringConvertor | Specifies contract for all classes converting object values to
String representation and back from String
into object instances. |
| Class Summary | |
| BigDecimalStringConvertor | String convertor for type BigDecimal. |
| BigIntegerStringConvertor | String convertor for type BigInteger. |
| BooleanStringConvertor | String convertor for type java.util.Date. |
| DateStringConvertor | String convertor for type java.util.Date. |
| DateTimeStringConvertor | String convertor for type org.scopemvc.util.DateTime or
java.util.Date. |
| DoubleStringConvertor | String convertor for type java.lang.Double. |
| FloatStringConvertor | String convertor for type java.lang.Float. |
| IntegerStringConvertor | String convertor for type java.lang.Integer. |
| LongStringConvertor | String convertor for type java.lang.Long. |
| NullStringConvertor |
Abstract base class for StringConvertors that recognise
a presetn String value to represent null. |
| NumberStringConvertor | Abstract base class for numeric StringConvertors. |
| StringConvertors | Factory class for creation of default convertors for arbitrary classes. |
| StringStringConvertor | String convertor for type java.lang.String. |
| TimeStringConvertor | String convertor for type org.scopemvc.util.Time or
java.util.Date. |
Package org.scopemvc.util.convertor Description
Utility classes that include two main areas of interest to application developers: ScopeConfig for configuring the Scope framework, and UIStrings used to look up user-readable Strings from localised resources.
ScopeConfig
ScopeConfig is the configuration manager used to configure various aspects of Scope. Default configuration is provided by the org.scopemvc.util.DefaultScopeConfig ResourceBundle.
Scope can be configured by supplying an application-specific ResourceBundle and calling setPropertiesName 55 during application startup. Any properties defined in a custom config in this way will override the defaults.
Scope configuration includes the following:
- org.scopemvc.controller.swing.SwingContext.window_icon defines the image resource used as the icon for JDialogs and JFrames. Default: /org/scopemvc/images/window_icon.gif
- org.scopemvc.controller.swing.SwingContext.progress_start_delay defines the milliseconds delay before ViewContext.startBusy() is called (ie delay before busy cursor shows in Swing if a Controller takes a long time to handle a Control). Default: 500
- List of StringConvertor.{datatype} defines the StringConvertor classes used to convert datatypes to and from their String representation. Defaults: the convertors in for all basic Java datatypes.
- org.scopemvc.util.convertor.DateStringConvertor.formatter defines either a DateFormat or a String used to create a SimpleDateFormat that will be used by DateStringConvertors to format Dates.
- List of org.scopemvc.util.convertor.DateStringConvertor.formatter.{number} defines the DateFormat objects used to parse Dates. If Strings are supplied in the config they are used to create SimpleDateFormats. The list of keys must be suffixed with sequential integers from 0 to n.
- org.scopemvc.util.convertor.TimeStringConvertor.formatter defines either a DateFormat or a String used to create a SimpleDateFormat that will be used by TimeStringConvertors to format Times.
- List of org.scopemvc.util.convertor.TimeStringConvertor.formatter.{number} defines the DateFormat objects used to parse Times. If Strings are supplied in the config they are used to create SimpleDateFormats. The list of keys must be suffixed with sequential integers from 0 to n.
- org.scopemvc.util.convertor.DateTimeStringConvertor.formatter defines either a DateFormat or a String used to create a SimpleDateFormat that will be used by DateTimeStringConvertors to format DateTimes.
- List of org.scopemvc.util.convertor.DateTimeStringConvertor.formatter.{number} defines the DateFormat objects used to parse DateTimes. If Strings are supplied in the config they are used to create SimpleDateFormats. The list of keys must be suffixed with sequential integers from 0 to n.
-
List of PropertyViewer.{viewtype}-{datatype}
defines the Views that BeansEditorManager returns to view
specific datatypes.
Defaults: viewers from
org.scopemvc.view.swingfor basic Java datatypes for the Swing viewtype. -
List of PropertyEditor.{viewtype}-{datatype}
defines the Views that BeansEditorManager returns to edit
specific datatypes.
Defaults: editors from
org.scopemvc.view.swingfor basic Java datatypes for the Swing viewtype. -
PropertyManager defines the concrete PropertyManager
implementation returned from
PropertyManager#getInstance. Default:org.scopemvc.model.beans.BeansPropertyManager. -
ActionManager defines the concrete ActionManager
implementation returned from
ActionManager#getInstance. Default:org.scopemvc.model.beans.BeansActionManager. -
EditorManager defines the concrete EditorManager
implementation returned from
EditorManager#getInstance. Default:org.scopemvc.model.beans.BeansEditorManager. - org.scopemvc.controller.servlet.ScopeServlet.ControlParam defines the HTTP parameter used to specify ControlID in an incoming request to ScopeServlet. Default: action
- org.scopemvc.controller.servlet.ScopeServlet.ViewIDParam defines the HTTP parameter used to specify ViewID in an incoming request to ScopeServlet. Default: view
- ServletFormParameter.propertyIDPrefix defines the prefix used to identify HTTP parameters that ScopeServlet will use to repopulate a ServletView's bound model.
- ServletFormParameter.viewIDSuffix defines the separator between viewID and propertyID in an HTTP parameter used to repopulate a ServletView's bound model.
-
org.scopemvc.view.servlet.xml.AbstractServletXSLView.shouldCacheTemplates
determines whether
org.scopemvc.view.servlet.xml.AbstractServletXSLViewcaches compiled XSLTs. "1" means templates are cached. "0" means templates are not cached: useful during development when XSLT edits need to be seen immediately without restarting the web application. Default: 1 (templates are cached) -
org.scopemvc.view.servlet.xml.AbstractServletXSLView.debugXMLDirectory
determines whether
org.scopemvc.view.servlet.xml.AbstractServletXSLViewwrites the XML produced from a bound model as a file. If "" then XML is not written to the filesystem, else a file is written every time a view is shown. The XML is put into the directory specified by this config. Default: ""
UIStrings
A dictionary that uses localised ResourceBundle(s) to look up user-readable Strings by a key. This is used by the default ControlException handler in BasicController treating the message in the exception as a key to look up a localised String from UIStrings.
The property resource used for an application must be set up
by calling UIStrings.setPropertiesName(java.lang.String)>UIStrings.setPropertiesName(java.lang.String) 55
at application startup. The usual ResourceBundle localisation
applies to the resource specified.
|
|||||||||
| Home >> All >> org >> scopemvc >> util >> [ convertor overview ] | PREV PACKAGE NEXT PACKAGE | ||||||||