|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.xml.TargetHelper
stella.jview.JTargetHelper
public class JTargetHelper
Identical to the parental class, except that messages are not piped to
standard/error out, but rather processed in a JStatusField.
To allow for this action, the status field must be registered to the target
maker with setStatusField(jview.JStatusField).
| Nested Class Summary | |
|---|---|
static class |
JTargetHelper.Display
Layout test. |
class |
JTargetHelper.DurationAction
The action that allows input of a target duration. |
class |
JTargetHelper.FileAction
The action that allows input of a file name. |
class |
JTargetHelper.TargetNameAction
The action that allows adjustment of the target name. |
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static int |
DEFBOTTOMBORDER
The default top border thickness. |
private static Color |
DEFGREENCOLOR
The default status color. |
private static String |
DEFLABELBUNDLE
The name for the label resource bundle. |
private static int |
DEFLEFTBORDER
The default top border thickness. |
private static Color |
DEFREDCOLOR
The default error color. |
private static String |
DEFRESOURCEBUNDLES
The resource bundles for localized labels and text. |
private static int |
DEFRIGHTBORDER
The default top border thickness. |
private static int |
DEFTOPBORDER
The default top border thickness. |
private static String |
DEFURLRESOURCES
The resources to add to the classpath. |
private JDialog |
directtarget
The representation of this helper. |
private Action |
durationaction
The action linked to the target duration. |
private Action |
fileaction
The action linked to the target file. |
static String |
KEY_BOTTOMBORDER
The key to the size of the top border. |
static String |
KEY_GREENCOLOR
The key denoting the color of requirements already present. |
static String |
KEY_LABELBUNDLE
The resource bundle name for localized labels. |
static String |
KEY_LEFTBORDER
The key to the size of the top border. |
static String |
KEY_REDCOLOR
The key denoting the color of missing requirements. |
static String |
KEY_RIGHTBORDER
The key to the size of the top border. |
static String |
KEY_TOPBORDER
The key to the size of the top border. |
private Action |
nameaction
The action linked to the target name. |
private Object |
parent
Parent of this helper. |
private JStatusField |
status
The status field to pipe messages to. |
| Fields inherited from class stella.xml.TargetHelper |
|---|
KEY_DURATION, KEY_FILE, KEY_TARGETNAME, KEY_TELESCOPE |
| 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 | |
|---|---|
JTargetHelper(Map prop)
Creates a new target helper with the specified properties. |
|
| Method Summary | |
|---|---|
protected void |
error(String warn)
Issues an error message. |
private JLabel |
getDefinedLabel(String label)
|
Action |
getDurationAction()
Returns the successor action. |
Action |
getFileAction()
Returns the successor action. |
Icon |
getIcon()
Might return an icon, if one was stated in the properties |
private String |
getLocalLabel(String key)
Returns the localized label by scanning the specified key in the KEY_LABELBUNDLE resource bundle. |
Action |
getNameAction()
Returns the successor action. |
Object |
getParent()
Returns the parent. |
Component |
getRepresentation()
Creates a non-modal dialog that displays target properties that are requiered along with their current values, if set. |
JStatusField |
getStatusField()
Returns the status field. |
private JLabel |
getUndefinedLabel(String label)
|
protected void |
info(String warn)
Issues an info message. |
void |
init()
Initializes the element display with my properties. |
void |
setExpertMode(boolean expert)
Sets the expert mode. |
void |
setParent(Object father)
Sets the parent component. |
void |
setStatusField(JStatusField pipe)
Assigns the status field to the target helper. |
protected void |
updateDialog()
Updates the directdialog. |
protected void |
warn(String warn)
Issues a warning message. |
| Methods inherited from class stella.xml.TargetHelper |
|---|
addDurationFragment, addFileFragment, addTargetNameFragment, createElementHelper, createObjectHelper, createTelescopeHelper, createTypeHelper, getDuration, getFile, getKnownTelescopes, getTargetName, getTelescopeHelper, makeTarget, selectTelescope, setDuration, setFile, setTargetName |
| 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, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
|---|
public static final String KEY_LABELBUNDLE
public static final String KEY_REDCOLOR
public static final String KEY_GREENCOLOR
public static final String KEY_TOPBORDER
public static final String KEY_LEFTBORDER
public static final String KEY_BOTTOMBORDER
public static final String KEY_RIGHTBORDER
private static final String DEFURLRESOURCES
private static final String DEFRESOURCEBUNDLES
private static final String DEFLABELBUNDLE
private static final Color DEFREDCOLOR
private static final Color DEFGREENCOLOR
private static final int DEFTOPBORDER
private static final int DEFLEFTBORDER
private static final int DEFBOTTOMBORDER
private static final int DEFRIGHTBORDER
private Object parent
JTargetHelper instance.
private JStatusField status
private JDialog directtarget
private Action nameaction
private Action fileaction
private Action durationaction
| Constructor Detail |
|---|
public JTargetHelper(Map prop)
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class TargetHelperpublic void setParent(Object father)
JTargetHelper.TargetNameAction additionally
invokes the action performed method of this listener, without
registering explicetly to the parent.
public Object getParent()
public void setStatusField(JStatusField pipe)
public JStatusField getStatusField()
public void setExpertMode(boolean expert)
public Icon getIcon()
getIcon in interface Displayablepublic Component getRepresentation()
KEY_REDCOLOR,
while others are displayed in KEY_GREENCOLOR.
getRepresentation in interface Displayablepublic Action getNameAction()
public Action getFileAction()
public Action getDurationAction()
protected void error(String warn)
error in class TargetHelperprotected void warn(String warn)
warn in class TargetHelperprotected void info(String warn)
info in class TargetHelperprotected void updateDialog()
private String getLocalLabel(String key)
KEY_LABELBUNDLE resource bundle.
private JLabel getDefinedLabel(String label)
private JLabel getUndefinedLabel(String label)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||