|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.jbrowser.JBrowsePlugin.PropAccessor
public static class JBrowsePlugin.PropAccessor
Constructor Summary | |
---|---|
JBrowsePlugin.PropAccessor()
|
Method Summary | |
---|---|
java.lang.String |
getProperty(java.lang.String name)
Fetches a property, returning null if it's not defined. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.Object[] args)
Returns the property with the specified name, formatting it with the java.text.MessageFormat.format() method. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String def)
Fetches a property, returning the default value if it's not defined. |
java.lang.Object |
setProperty(java.lang.String name,
java.lang.String value)
Sets a property to a new value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JBrowsePlugin.PropAccessor()
Method Detail |
---|
public java.lang.String getProperty(java.lang.String name)
PropertyAccessor
getProperty
in interface PropertyAccessor
name
- The propertypublic java.lang.String getProperty(java.lang.String name, java.lang.String def)
PropertyAccessor
getProperty
in interface PropertyAccessor
name
- The propertydef
- The default valuepublic java.lang.String getProperty(java.lang.String name, java.lang.Object[] args)
PropertyAccessor
java.text.MessageFormat.format()
method.
getProperty
in interface PropertyAccessor
name
- The propertyargs
- The positional parameterspublic java.lang.Object setProperty(java.lang.String name, java.lang.String value)
PropertyAccessor
setProperty
in interface PropertyAccessor
name
- The propertyvalue
- The new value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |