Package jadx.gui.treemodel
Class JResource
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- jadx.gui.treemodel.JNode
-
- jadx.gui.treemodel.JLoadableNode
-
- jadx.gui.treemodel.JResource
-
- All Implemented Interfaces:
jadx.api.gui.tree.ITreeNode,java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<JNode>,javax.swing.tree.MutableTreeNode,javax.swing.tree.TreeNode
public class JResource extends JLoadableNode
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJResource.JResType
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<JResource>RESOURCES_COMPARATOR
-
Constructor Summary
Constructors Constructor Description JResource(jadx.api.ResourceFile resFile, java.lang.String name, JResource.JResType type)JResource(jadx.api.ResourceFile resFile, java.lang.String name, java.lang.String shortName, JResource.JResType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSubNode(JResource node)booleanequals(java.lang.Object o)jadx.api.ICodeInfogetCodeInfo()@Nullable ContentPanelgetContentPanel(TabbedPane tabbedPane)jadx.api.resources.ResourceContentTypegetContentType()javax.swing.IcongetIcon()java.lang.StringgetID()JClassgetJParent()SimpleTaskgetLoadTask()java.lang.StringgetName()jadx.api.ResourceFilegetResFile()java.util.List<JResource>getSubNodes()java.lang.StringgetSyntaxName()JResource.JResTypegetType()inthashCode()static booleanisOpenInExternalTool(jadx.api.ResourceType type)static booleanisSupportedForView(jadx.api.ResourceType type)voidloadNode()java.lang.StringmakeLongString()java.lang.StringmakeString()javax.swing.JPopupMenuonTreePopupMenu(MainWindow mainWindow)voidsortSubNodes()voidupdate()-
Methods inherited from class jadx.gui.treemodel.JLoadableNode
removeNode, searchNode
-
Methods inherited from class jadx.gui.treemodel.JNode
childrenList, compareTo, disableHtml, getCodeNodeRef, getJavaNode, getPos, getRootClass, getTooltip, hasDescString, isEditable, makeDescString, makeLongStringHtml, makeStringHtml, supportsQuickTabs, toString
-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
-
-
-
Field Detail
-
RESOURCES_COMPARATOR
public static final java.util.Comparator<JResource> RESOURCES_COMPARATOR
-
-
Constructor Detail
-
JResource
public JResource(jadx.api.ResourceFile resFile, java.lang.String name, JResource.JResType type)
-
JResource
public JResource(jadx.api.ResourceFile resFile, java.lang.String name, java.lang.String shortName, JResource.JResType type)
-
-
Method Detail
-
update
public void update()
-
loadNode
public void loadNode()
- Specified by:
loadNodein classJLoadableNode
-
getLoadTask
public SimpleTask getLoadTask()
- Specified by:
getLoadTaskin classJLoadableNode
-
getName
public java.lang.String getName()
-
getType
public JResource.JResType getType()
-
getSubNodes
public java.util.List<JResource> getSubNodes()
-
addSubNode
public void addSubNode(JResource node)
-
sortSubNodes
public void sortSubNodes()
-
getContentPanel
@Nullable public @Nullable ContentPanel getContentPanel(TabbedPane tabbedPane)
- Overrides:
getContentPanelin classJNode
-
onTreePopupMenu
public javax.swing.JPopupMenu onTreePopupMenu(MainWindow mainWindow)
- Overrides:
onTreePopupMenuin classJNode
-
getCodeInfo
public jadx.api.ICodeInfo getCodeInfo()
- Overrides:
getCodeInfoin classJNode
-
getContentType
public jadx.api.resources.ResourceContentType getContentType()
- Overrides:
getContentTypein classJNode
-
getSyntaxName
public java.lang.String getSyntaxName()
- Overrides:
getSyntaxNamein classJNode
-
getIcon
public javax.swing.Icon getIcon()
-
isSupportedForView
public static boolean isSupportedForView(jadx.api.ResourceType type)
-
isOpenInExternalTool
public static boolean isOpenInExternalTool(jadx.api.ResourceType type)
-
getResFile
public jadx.api.ResourceFile getResFile()
-
getJParent
public JClass getJParent()
- Specified by:
getJParentin classJNode
-
getID
public java.lang.String getID()
-
makeString
public java.lang.String makeString()
- Specified by:
makeStringin classJNode
-
makeLongString
public java.lang.String makeLongString()
- Overrides:
makeLongStringin classJNode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-