Package VASSAL.launch
Class ModuleManagerWindow.ModuleInfo
java.lang.Object
VASSAL.launch.ModuleManagerWindow.ModuleInfo
- All Implemented Interfaces:
Comparable<VASSAL.launch.ModuleManagerWindow.AbstractInfo>
- Enclosing class:
- ModuleManagerWindow
public class ModuleManagerWindow.ModuleInfo extends Object
Module Node User Information
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ModuleInfo(File f)ModuleInfo(String s)Initialise ModuleInfo based on a saved preference string. -
Method Summary
Modifier and Type Method Description voidaddFolder(File f)JPopupMenubuildPopup(int row)voidcleanupTileCache()intcompareTo(VASSAL.launch.ModuleManagerWindow.AbstractInfo info)Stringencode()Encode any information which needs to be recorded in the Preference entry for this module:- - Path to Module File - Paths to any child Save Game FoldersStringgetComments()StringgetError()List<VASSAL.launch.ModuleManagerWindow.ExtensionInfo>getExtensions()ExtensionsManagergetExtensionsManager()FilegetFile()SortedSet<File>getFolders()IcongetIcon(boolean expanded)StringgetLocalizedDescription()StringgetModuleName()StringgetSortKey()Return a String used to sort different types of AbstractInfo's that are children of the same parent.StringgetToolTipText()ColorgetTreeCellFgColor()Return the color of the text used to display the name in column 1.VASSAL.launch.ModuleManagerWindow.MyTreeNodegetTreeNode()StringgetValueAt(int column)StringgetVassalVersion()StringgetVersion()booleanisInUse()protected booleanisModuleTooNew()booleanisValid()protected voidloadMetaData()voidplay()voidrefresh()Refresh this module and all childrenvoidrefreshChildren()voidremoveFolder(File f)voidsetError(String s)voidsetFile(File f)voidsetIcon(Icon i)voidsetIcon(Icon open, Icon closed)voidsetTreeNode(VASSAL.launch.ModuleManagerWindow.MyTreeNode n)voidsetValid(boolean b)StringtoString()
-
Field Details
-
file
-
openIcon
-
closedIcon
-
valid
protected boolean valid -
error
-
node
protected VASSAL.launch.ModuleManagerWindow.MyTreeNode node
-
-
Constructor Details
-
ModuleInfo
-
ModuleInfo
Initialise ModuleInfo based on a saved preference string. See encode().- Parameters:
s- Preference String
-
-
Method Details
-
loadMetaData
protected void loadMetaData() -
isModuleTooNew
protected boolean isModuleTooNew() -
getVassalVersion
-
refresh
public void refresh()Refresh this module and all children -
encode
Encode any information which needs to be recorded in the Preference entry for this module:- - Path to Module File - Paths to any child Save Game Folders- Returns:
- encoded data
-
getExtensionsManager
-
addFolder
-
removeFolder
-
getFolders
-
getExtensions
-
play
public void play() -
buildPopup
-
cleanupTileCache
public void cleanupTileCache() -
isInUse
public boolean isInUse() -
getVersion
-
getLocalizedDescription
-
getModuleName
-
toString
-
getValueAt
-
getSortKey
Return a String used to sort different types of AbstractInfo's that are children of the same parent.- Returns:
- sort key
-
getTreeCellFgColor
Return the color of the text used to display the name in column 1. Over-ride this to change color depending on item state.- Returns:
- cell text color
-
getFile
-
setFile
-
getToolTipText
-
compareTo
public int compareTo(VASSAL.launch.ModuleManagerWindow.AbstractInfo info)- Specified by:
compareToin interfaceComparable<VASSAL.launch.ModuleManagerWindow.AbstractInfo>
-
getIcon
-
setIcon
-
setIcon
-
setValid
public void setValid(boolean b) -
isValid
public boolean isValid() -
setError
-
getError
-
getComments
-
getTreeNode
public VASSAL.launch.ModuleManagerWindow.MyTreeNode getTreeNode() -
setTreeNode
public void setTreeNode(VASSAL.launch.ModuleManagerWindow.MyTreeNode n) -
refreshChildren
public void refreshChildren()
-