B4J Library [B4X] [XUI] jSD_TreeList

Star-Dust

Expert
Licensed User
Version for Android, iOS, Desktop
Required FontAweson

SD_TreeList

Author:
Star-Dust
Version: 0.07
  • B4XTree
    • Events:
      • Click (IDLeaf As String, LeafName As String)
      • ClickBranch (ID As String, Expanded As Boolean)
      • LongRightClick (IDLeaf As String, LeafName As String)
    • Functions:
      • Add (Name As String, IDBranch As String, FontAwesoneSymbol As String, Color As Int, ListLeaf As String()) As String
      • AddBranch (Name As String, IDBranch As String, IDParent As String, FontAwesoneSymbol As String, Color As Int) As String
      • AddLeaf (Name As String, Info As String, IDBLeaf As String, IDParent As String) As String
      • AddLeafOnTop (Name As String, Info As String, IDLeaf As String, IDBranch As String) As String
      • Class_Globals As String
      • Clear As String
      • CollapsesAllBranch As String
      • CollapsesBranch (IDBranch As String) As String
      • CollapsesBranchAndSOn (IDBranch As String) As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • ExpandAllBranch As String
      • ExpandBranch (IDBranch As String) As String
      • ExpandBranchAndSon (IDBranch As String) As String
      • GetBranchName (IDBranch As String) As String
      • GetBranchOfLeaf (IDLeaf As String) As String
      • GetLeafInfo (IDLeaf As String) As String
      • GetLeafName (IDLeaf As String) As String
      • Initialize (Callback As Object, EventName As String) As String
      • Invalidate
      • IsInitialized As Boolean
        Verifica se l'oggetto sia stato inizializzato.
      • MoveLeaf (IDLeaf As String, NewIDBranch As String) As String
      • RemoveBranch (IDBranch As String) As String
      • RemoveLeaf (IDLeaf As String) As String
      • SetBranch (IDBranch As String, NewName As String) As String
      • SetLeaf (IDLeaf As String, NewName As String, NewInfo As String) As String
      • Sort (Ascending As Boolean) As String
    • Properties:
      • BranchTextColor As Int
      • Height As Int
      • LeafTextColor As Int
      • Left As Int
      • OpenOnlyOneBranch As Boolean
      • Top As Int
      • Width As Int

Preview.gif
 

Attachments

Last edited:

AnandGupta

Well-Known Member
Licensed User
@Star-Dust,

You are a true developer :)
No description or explanation; but as they say "An image (animated) says thousands (in light years) words !!"
And most important the codes for us members to play with. Thanks a lot.

Regards,

Anand
 
Last edited:

Star-Dust

Expert
Licensed User
Update 0.02
Add Animation
Add filed: OpenOnlyOneBranch As Boolean​
 
Last edited:

Star-Dust

Expert
Licensed User
update 0.03
 

Star-Dust

Expert
Licensed User
Update 0.05
  • The methods for inserting the leaves have changed. Now the leaves require an ID and the raised event returns the ID
  • It is possible to move the leaves in another branch
  • It is possible to update the name and leaf info
  • Add Left,Top,Width,Height parameter
 

Star-Dust

Expert
Licensed User
Update 0.07

Add Event:
  • ClickBranch (ID As String, Expanded As Boolean)
Add propriety:
  • GetBranchName (IDBranch As String) As String
Sample:
Private Sub B4XTree1_ClickBranch (ID As String, Expanded As Boolean)
    Log($"ID Branch: ${ID}  Branch Name: ${B4XTree1.getBranchName(ID)} Expanded: ${Expanded}"$)
End Sub
 
Top