frysk.gui.monitor.filters
Class Filter

java.lang.Object
  extended by frysk.gui.monitor.GuiObject
      extended by frysk.gui.monitor.LiaisonItem
          extended by frysk.gui.monitor.filters.Filter
All Implemented Interfaces:
SaveableXXX
Direct Known Subclasses:
IntFilter, ProcFilter, TaskFilter

public abstract class Filter
extends LiaisonItem


Field Summary
(package private)  boolean filterBoolean
           
 
Fields inherited from class frysk.gui.monitor.LiaisonItem
needInfo, runnable
 
Fields inherited from class frysk.gui.monitor.GuiObject
propertiesChanged
 
Constructor Summary
Filter()
           
Filter(Filter other)
           
Filter(String name, String toolTip)
           
 
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)
           
 
Methods inherited from class frysk.gui.monitor.LiaisonItem
getArgument, getArgumentCompletionList, getCopy, setArgument
 
Methods inherited from class frysk.gui.monitor.GuiObject
dontSaveObject, doSaveObject, getName, getSummary, getToolTip, setName, setSummay, setToolTip, shouldSaveObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface frysk.gui.monitor.SaveableXXX
dontSaveObject, doSaveObject, shouldSaveObject
 

Field Detail

filterBoolean

boolean filterBoolean
Constructor Detail

Filter

public Filter()

Filter

public Filter(String name,
              String toolTip)

Filter

public Filter(Filter other)
Method Detail

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()