frysk.gui.monitor.filters
Class Filter
java.lang.Object
frysk.gui.monitor.GuiObject
frysk.gui.monitor.LiaisonItem
frysk.gui.monitor.filters.Filter
- All Implemented Interfaces:
- SaveableXXX
- Direct Known Subclasses:
- IntFilter, ProcFilter, TaskFilter
public abstract class Filter
- extends LiaisonItem
Method Summary |
boolean |
getFilterBoolean()
|
void |
load(Element node)
To load a stored property one does this:
String someString = node.getAttributeValue("someString");
To load @link frysk.gui.monitor.SaveableXXX one gets the appropriet
node and tells that object to load itself from that node. |
void |
save(Element node)
Save object to the given node
Saving Conventions:
If this object has a property such as a
String, char, int, etc, that is saved by
using node.setAttribute("someProperty", someProperty);
If this object contains composing @link frysk.gui.monitor.SaveableXXX
then a node is created for that and that object is told to save itself
to that node. |
void |
setFilterBoolean(boolean filterBoolean)
|
filterBoolean
boolean filterBoolean
Filter
public Filter()
Filter
public Filter(String name,
String toolTip)
Filter
public Filter(Filter other)
save
public void save(Element node)
- Description copied from interface:
SaveableXXX
- Save object to the given node
Saving Conventions:
If this object has a property such as a
String, char, int, etc, that is saved by
using node.setAttribute("someProperty", someProperty);
If this object contains composing @link frysk.gui.monitor.SaveableXXX
then a node is created for that and that object is told to save itself
to that node. Example:
Element filtersNode = new Element("filtersList");
this.filtersList.save(filtersNode);
node.addContent(filtersNode);
Be careful some times one wants to save the objects name rather
than the object itself, and then use the name to later recreate
that object via a managers. Like observers for instance. Perhaps
objects such as these should be smart enough to use a manager to
save/load themselves, that way an api client doesnt have to worry
... one day :).
- Specified by:
save
in interface SaveableXXX
- Overrides:
save
in class LiaisonItem
load
public void load(Element node)
- Description copied from interface:
SaveableXXX
- To load a stored property one does this:
String someString = node.getAttributeValue("someString");
To load @link frysk.gui.monitor.SaveableXXX one gets the appropriet
node and tells that object to load itself from that node.
Example:
Element filtersNode = node.getChild("filtersList");
this.filtersList.load(filtersNode);
- Specified by:
load
in interface SaveableXXX
- Overrides:
load
in class LiaisonItem
setFilterBoolean
public void setFilterBoolean(boolean filterBoolean)
getFilterBoolean
public boolean getFilterBoolean()