Package de.willuhn.jameica.hbci.server
Class UmsatzTreeNode
- java.lang.Object
-
- de.willuhn.jameica.hbci.server.UmsatzTreeNode
-
- All Implemented Interfaces:
de.willuhn.datasource.GenericObject
,de.willuhn.datasource.GenericObjectNode
,java.lang.Comparable
,java.rmi.Remote
public class UmsatzTreeNode extends java.lang.Object implements de.willuhn.datasource.GenericObjectNode, java.lang.Comparable
Hilfsklasse, um die Kategorien und zugeordneten Umsaetzen in einem einheitlichen Tree abzubilden. Die Klasse wird primaer verwendet, um den Baum bequem in der GUI darzustellen.
-
-
Constructor Summary
Constructors Constructor Description UmsatzTreeNode(UmsatzTyp typ)
ct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Umsatz umsatz)
Fuegt der Gruppe einen neuen Umsatz hinzu.int
compareTo(java.lang.Object o)
Implementiert, damit wir nach dem Feld "nummer" sortieren koennen.boolean
equals(de.willuhn.datasource.GenericObject other)
java.lang.Object
getAttribute(java.lang.String arg0)
java.lang.String[]
getAttributeNames()
de.willuhn.datasource.GenericIterator
getChildren()
java.lang.String
getID()
de.willuhn.datasource.GenericObjectNode
getParent()
de.willuhn.datasource.GenericIterator
getPath()
de.willuhn.datasource.GenericIterator
getPossibleParents()
java.lang.String
getPrimaryAttribute()
java.util.List<UmsatzTreeNode>
getSubGroups()
Liefert ggf.java.util.List<Umsatz>
getUmsaetze()
Liefert die Umsaetze der Kategorie.UmsatzTyp
getUmsatzTyp()
Liefert den zugehoerigen Umsatztyp.boolean
hasChild(de.willuhn.datasource.GenericObjectNode node)
void
setParent(UmsatzTreeNode parent)
Legt das Parent fest.
-
-
-
Constructor Detail
-
UmsatzTreeNode
public UmsatzTreeNode(UmsatzTyp typ)
ct.- Parameters:
typ
-
-
-
Method Detail
-
getUmsatzTyp
public UmsatzTyp getUmsatzTyp()
Liefert den zugehoerigen Umsatztyp.- Returns:
- der zugehoerige Umsatztyp.
-
add
public void add(Umsatz umsatz)
Fuegt der Gruppe einen neuen Umsatz hinzu.- Parameters:
umsatz
-
-
setParent
public void setParent(UmsatzTreeNode parent)
Legt das Parent fest.- Parameters:
parent
- das Parent.
-
getUmsaetze
public java.util.List<Umsatz> getUmsaetze()
Liefert die Umsaetze der Kategorie.- Returns:
- Umsaetze der Kategorie.
-
getSubGroups
public java.util.List<UmsatzTreeNode> getSubGroups()
Liefert ggf. vorhandene Unter-Kategorien.- Returns:
- Liste der Unter-Kategorien.
-
getChildren
public de.willuhn.datasource.GenericIterator getChildren() throws java.rmi.RemoteException
- Specified by:
getChildren
in interfacede.willuhn.datasource.GenericObjectNode
- Throws:
java.rmi.RemoteException
- See Also:
GenericObjectNode.getChildren()
-
getParent
public de.willuhn.datasource.GenericObjectNode getParent() throws java.rmi.RemoteException
- Specified by:
getParent
in interfacede.willuhn.datasource.GenericObjectNode
- Throws:
java.rmi.RemoteException
- See Also:
GenericObjectNode.getParent()
-
getPath
public de.willuhn.datasource.GenericIterator getPath() throws java.rmi.RemoteException
- Specified by:
getPath
in interfacede.willuhn.datasource.GenericObjectNode
- Throws:
java.rmi.RemoteException
- See Also:
GenericObjectNode.getPath()
-
getPossibleParents
public de.willuhn.datasource.GenericIterator getPossibleParents() throws java.rmi.RemoteException
- Specified by:
getPossibleParents
in interfacede.willuhn.datasource.GenericObjectNode
- Throws:
java.rmi.RemoteException
- See Also:
GenericObjectNode.getPossibleParents()
-
hasChild
public boolean hasChild(de.willuhn.datasource.GenericObjectNode node) throws java.rmi.RemoteException
- Specified by:
hasChild
in interfacede.willuhn.datasource.GenericObjectNode
- Throws:
java.rmi.RemoteException
- See Also:
GenericObjectNode.hasChild(de.willuhn.datasource.GenericObjectNode)
-
equals
public boolean equals(de.willuhn.datasource.GenericObject other) throws java.rmi.RemoteException
- Specified by:
equals
in interfacede.willuhn.datasource.GenericObject
- Throws:
java.rmi.RemoteException
- See Also:
GenericObject.equals(de.willuhn.datasource.GenericObject)
-
getAttribute
public java.lang.Object getAttribute(java.lang.String arg0) throws java.rmi.RemoteException
- Specified by:
getAttribute
in interfacede.willuhn.datasource.GenericObject
- Throws:
java.rmi.RemoteException
- See Also:
GenericObject.getAttribute(java.lang.String)
-
getAttributeNames
public java.lang.String[] getAttributeNames() throws java.rmi.RemoteException
- Specified by:
getAttributeNames
in interfacede.willuhn.datasource.GenericObject
- Throws:
java.rmi.RemoteException
- See Also:
GenericObject.getAttributeNames()
-
getID
public java.lang.String getID() throws java.rmi.RemoteException
- Specified by:
getID
in interfacede.willuhn.datasource.GenericObject
- Throws:
java.rmi.RemoteException
- See Also:
GenericObject.getID()
-
getPrimaryAttribute
public java.lang.String getPrimaryAttribute() throws java.rmi.RemoteException
- Specified by:
getPrimaryAttribute
in interfacede.willuhn.datasource.GenericObject
- Throws:
java.rmi.RemoteException
- See Also:
GenericObject.getPrimaryAttribute()
-
compareTo
public int compareTo(java.lang.Object o)
Implementiert, damit wir nach dem Feld "nummer" sortieren koennen.- Specified by:
compareTo
in interfacejava.lang.Comparable
- See Also:
Comparable.compareTo(java.lang.Object)
-
-