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 void
addFolder(File f)
JPopupMenu
buildPopup(int row)
void
cleanupTileCache()
int
compareTo(VASSAL.launch.ModuleManagerWindow.AbstractInfo info)
String
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 FoldersString
getComments()
String
getError()
List<VASSAL.launch.ModuleManagerWindow.ExtensionInfo>
getExtensions()
ExtensionsManager
getExtensionsManager()
File
getFile()
SortedSet<File>
getFolders()
Icon
getIcon(boolean expanded)
String
getLocalizedDescription()
String
getModuleName()
String
getSortKey()
Return a String used to sort different types of AbstractInfo's that are children of the same parent.String
getToolTipText()
Color
getTreeCellFgColor()
Return the color of the text used to display the name in column 1.VASSAL.launch.ModuleManagerWindow.MyTreeNode
getTreeNode()
String
getValueAt(int column)
String
getVassalVersion()
String
getVersion()
boolean
isInUse()
protected boolean
isModuleTooNew()
boolean
isValid()
protected void
loadMetaData()
void
play()
void
refresh()
Refresh this module and all childrenvoid
refreshChildren()
void
removeFolder(File f)
void
setError(String s)
void
setFile(File f)
void
setIcon(Icon i)
void
setIcon(Icon open, Icon closed)
void
setTreeNode(VASSAL.launch.ModuleManagerWindow.MyTreeNode n)
void
setValid(boolean b)
String
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
-
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:
compareTo
in 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()
-