public abstract class Preferences extends java.lang.Object implements HasProperties, Scannable, java.awt.event.ActionListener
Constructor and Description |
---|
Preferences() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
abstract void |
applyToCurrent() |
abstract PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
PropertyPanel |
getEditingPanel() |
Property |
getProperty(java.lang.String name)
Returns a property associated with a specified path name.
|
boolean |
isWritable()
Returns
true if this component should in fact be written to
secondary storage. |
int |
numScanWarnings()
Number of warnings issued during the most recent scan operartion.
|
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer.
|
void |
setDefaults() |
abstract void |
setFromCurrent() |
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter.
|
void |
writeItems(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref) |
public abstract PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public Property getProperty(java.lang.String name)
HasProperties
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.getProperty
in interface HasProperties
name
- name of the desired property or sub-propertypublic void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
Scannable
write
.public void writeItems(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
java.io.IOException
public int numScanWarnings()
public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
Scannable
scan
and complete
enough to allow full reconstruction of the element.public boolean isWritable()
Scannable
true
if this component should in fact be written to
secondary storage. This gives subclasses control over whether or
not they are actually written out.isWritable
in interface Scannable
true
if this component should be written to
secondary storage.public void setDefaults()
public abstract void applyToCurrent()
public abstract void setFromCurrent()
public PropertyPanel getEditingPanel()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener