stella.jview
Class JLogField

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by jview.AbstractDisplayable
                  extended by jview.JStatusField
                      extended by stella.jview.JLogField
All Implemented Interfaces:
Cloneable, Displayable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class JLogField
extends JStatusField

A status field that works together with LogLines.


Nested Class Summary
static class JLogField.Show
          Test pupose.
 
Nested classes/interfaces inherited from class jview.JStatusField
JStatusField.Test
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static int DEFSEVERITY
          All levels are show.
private static boolean DEFSHOWCHANNEL
          Default shows level.
private static boolean DEFSHOWCLASS
          Default shows level.
private static DateFormat DEFSHOWDATE
          Default date format.
private static boolean DEFSHOWEXTEND
          Default shows level.
private static boolean DEFSHOWHOST
          Default shows level.
private static boolean DEFSHOWLEVEL
          Default shows level.
private static boolean DEFSHOWMESSAGE
          Default shows level.
private static boolean DEFSHOWMETHOD
          Default shows level.
private static boolean DEFSHOWTHREAD
          Default shows level.
static String KEY_SEVERITY
          The severity level filter.
static String KEY_SHOWCHANNEL
          Defines if the severity level should be shown.
static String KEY_SHOWCLASS
          Defines if the severity level should be shown.
static String KEY_SHOWDATE
          Defines the date format.
static String KEY_SHOWEXTEND
          Defines if the severity level should be shown.
static String KEY_SHOWHOST
          Defines if the severity level should be shown.
static String KEY_SHOWLEVEL
          Defines if the severity level should be shown.
static String KEY_SHOWMESSAGE
          Defines if the severity level should be shown.
static String KEY_SHOWMETHOD
          Defines if the severity level should be shown.
static String KEY_SHOWTHREAD
          Defines if the severity level should be shown.
static String SHOW
          Text in pop-up menu.
 
Fields inherited from class jview.JStatusField
KEY_DEBUGCOLOR, KEY_ERRORCOLOR, KEY_FATALCOLOR, KEY_INFOCOLOR, KEY_STATUSSIZE, KEY_WARNINGCOLOR
 
Fields inherited from class jview.AbstractDisplayable
KEY_COMPONENTNAME, KEY_ICON, KEY_INSETS
 
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
JLogField(Map<String,String> prop)
          Construct a new log field, component with JStatusField.getRepresentation().
 
Method Summary
 void addMouseLevelSelector()
          Adds a mouse listener that allows selecting of log levels.
 void enableLevel(int level, boolean yes)
          Enables or disables display of further incoming loglines of the specified level.
 void enableLevel(String level, boolean yes)
          Enables or disables display of further incoming loglines of the specified level.
 void erase()
          Ereases the text field.
 void log(List<LogLine> ll)
          Displays a list of log lines according to our current setting.
 
Methods inherited from class jview.JStatusField
append, debug, error, error, fatal, getRepresentation, getStatus, getStatusDocument, info, init, prepareRepresentation, setColor, warning
 
Methods inherited from class jview.AbstractDisplayable
getComponentName, getIcon, getIcon
 
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

SHOW

public static final String SHOW
Text in pop-up menu.

See Also:
Constant Field Values

KEY_SEVERITY

public static final String KEY_SEVERITY
The severity level filter.

See Also:
Constant Field Values

KEY_SHOWDATE

public static final String KEY_SHOWDATE
Defines the date format.

See Also:
Constant Field Values

KEY_SHOWLEVEL

public static final String KEY_SHOWLEVEL
Defines if the severity level should be shown.

See Also:
Constant Field Values

KEY_SHOWCHANNEL

public static final String KEY_SHOWCHANNEL
Defines if the severity level should be shown.

See Also:
Constant Field Values

KEY_SHOWHOST

public static final String KEY_SHOWHOST
Defines if the severity level should be shown.

See Also:
Constant Field Values

KEY_SHOWTHREAD

public static final String KEY_SHOWTHREAD
Defines if the severity level should be shown.

See Also:
Constant Field Values

KEY_SHOWCLASS

public static final String KEY_SHOWCLASS
Defines if the severity level should be shown.

See Also:
Constant Field Values

KEY_SHOWMETHOD

public static final String KEY_SHOWMETHOD
Defines if the severity level should be shown.

See Also:
Constant Field Values

KEY_SHOWMESSAGE

public static final String KEY_SHOWMESSAGE
Defines if the severity level should be shown.

See Also:
Constant Field Values

KEY_SHOWEXTEND

public static final String KEY_SHOWEXTEND
Defines if the severity level should be shown.

See Also:
Constant Field Values

DEFSEVERITY

private static final int DEFSEVERITY
All levels are show.

See Also:
Constant Field Values

DEFSHOWDATE

private static final DateFormat DEFSHOWDATE
Default date format.


DEFSHOWLEVEL

private static final boolean DEFSHOWLEVEL
Default shows level.

See Also:
Constant Field Values

DEFSHOWCHANNEL

private static final boolean DEFSHOWCHANNEL
Default shows level.

See Also:
Constant Field Values

DEFSHOWHOST

private static final boolean DEFSHOWHOST
Default shows level.

See Also:
Constant Field Values

DEFSHOWTHREAD

private static final boolean DEFSHOWTHREAD
Default shows level.

See Also:
Constant Field Values

DEFSHOWCLASS

private static final boolean DEFSHOWCLASS
Default shows level.

See Also:
Constant Field Values

DEFSHOWMETHOD

private static final boolean DEFSHOWMETHOD
Default shows level.

See Also:
Constant Field Values

DEFSHOWMESSAGE

private static final boolean DEFSHOWMESSAGE
Default shows level.

See Also:
Constant Field Values

DEFSHOWEXTEND

private static final boolean DEFSHOWEXTEND
Default shows level.

See Also:
Constant Field Values
Constructor Detail

JLogField

public JLogField(Map<String,String> prop)
Construct a new log field, component with JStatusField.getRepresentation().

Method Detail

enableLevel

public void enableLevel(String level,
                        boolean yes)
Enables or disables display of further incoming loglines of the specified level. Uses string representation as in LogLine.LOGLEVEL


enableLevel

public void enableLevel(int level,
                        boolean yes)
Enables or disables display of further incoming loglines of the specified level.


log

public void log(List<LogLine> ll)
Displays a list of log lines according to our current setting.


erase

public void erase()
Ereases the text field.


addMouseLevelSelector

public void addMouseLevelSelector()
Adds a mouse listener that allows selecting of log levels.