stella.jview
Class JObjectHelper

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.xml.ElementHelper
                  extended by stella.xml.ObjectHelper
                      extended by stella.jview.JObjectHelper
All Implemented Interfaces:
Cloneable, JUserAdjustable, UserAdjustable, UserDetails, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class JObjectHelper
extends ObjectHelper
implements JUserAdjustable

A simple extension to a normal element helper. Here, the messages are piped to a JStatusPanel instead to Syslog


Nested Class Summary
 
Nested classes/interfaces inherited from class stella.xml.ElementHelper
ElementHelper.Valid
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static List ORDER
          The order how to display objects.
private static JStatusField status
          The reference to the status field.
private static Map TOOLTIP
          The tooltip map.
 
Fields inherited from class stella.xml.ObjectHelper
CATALOGS, DEFID, KEY_FIELDCATALOG, KEY_ID, KEY_IDGUIDE, KEY_MAGLIMIT, KEY_MAINCATALOG, KEY_MAINFIELD, KEY_RESOLVETIME, KEY_UPDATETIME
 
Fields inherited from class stella.xml.ElementHelper
KEY_APPENDIX, KEY_HELPERCLASS, KEY_INIT, KEY_REQUIREMENT, KEY_SETTABLE, KEY_TYPEMAP, KEY_VALUEDETAILS
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
JObjectHelper(Map prop)
          Constructs a new element helper that pipes messages to a status panel.
 
Method Summary
protected  void error(String warn)
          Issues an error message.
 List getOrder()
          Returns the order.
 Map getToolTips()
          Returns the tooltips.
protected  void info(String warn)
          Issues an info message.
static void setJStatusField(JStatusField message)
          Assigns the status panel.
protected  void warn(String warn)
          Issues a warning message.
 
Methods inherited from class stella.xml.ObjectHelper
createObjectHelper, erase, getFieldCatalogName, getFieldCatalogTime, getFieldOfView, getGuiderSetup, getMain, getResolveTime, init, isValid, resolveFieldOfView, resolveObjectName, setFieldOfView, setFieldOfView, setMain, setMain, setValue, update, update
 
Methods inherited from class stella.xml.ElementHelper
createElementHelper, createElementHelpers, createElementHelpers, createHelperMap, createHelperMap, debug, fatal, fromResourceName, fromResourceName, getDefined, getDetails, getID, getMissing, getRequired, getSettable, getType, getValue, getVariables, toLongString, toString
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface stella.xml.UserAdjustable
getDefined, getID, getMissing, getRequired, getSettable, getType, getValue, getVariables, isValid, setValue, update
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 

Field Detail

status

private static JStatusField status
The reference to the status field. All helpers have a single panel.


ORDER

private static final List ORDER
The order how to display objects.


TOOLTIP

private static final Map TOOLTIP
The tooltip map.

Constructor Detail

JObjectHelper

public JObjectHelper(Map prop)
Constructs a new element helper that pipes messages to a status panel. Only usable after the status panel has been assigned with setJStatusField(jview.JStatusField).

Method Detail

getToolTips

public Map getToolTips()
Returns the tooltips.

Specified by:
getToolTips in interface JUserAdjustable

getOrder

public List getOrder()
Returns the order.

Specified by:
getOrder in interface JUserAdjustable

setJStatusField

public static void setJStatusField(JStatusField message)
Assigns the status panel.


error

protected void error(String warn)
Issues an error message. This class pipes directly to Syslog.error.

Overrides:
error in class ElementHelper

warn

protected void warn(String warn)
Issues a warning message. This class pipes directly to Syslog.warning.

Overrides:
warn in class ElementHelper

info

protected void info(String warn)
Issues an info message. This class pipes directly to Syslog.info.

Overrides:
info in class ElementHelper