Package VASSAL.launch
Class ModuleManagerWindow.ModuleInfo
java.lang.Object
VASSAL.launch.ModuleManagerWindow.ModuleInfo
- All Implemented Interfaces:
Comparable<VASSAL.launch.ModuleManagerWindow.AbstractInfo>
- Enclosing class:
- ModuleManagerWindow
Module Node User Information
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModuleInfo(File f)ModuleInfo(String s)Initialise ModuleInfo based on a saved preference string. -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildPopup(int row)voidintcompareTo(VASSAL.launch.ModuleManagerWindow.AbstractInfo info)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 FoldersgetError()List<VASSAL.launch.ModuleManagerWindow.ExtensionInfo>getFile()getIcon(boolean expanded)Return a String used to sort different types of AbstractInfo's that are children of the same parent.Return the color of the text used to display the name in column 1.VASSAL.launch.ModuleManagerWindow.MyTreeNodegetValueAt(int column)booleanisInUse()protected booleanbooleanisValid()protected voidvoidplay()voidrefresh()Refresh this module and all childrenvoidvoidremoveFolder(File f)voidvoidvoidvoidvoidsetTreeNode(VASSAL.launch.ModuleManagerWindow.MyTreeNode n)voidsetValid(boolean b)toString()
-
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
-
getLastSaved
-
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()
-