public class PCDObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.io.File |
dir
The parent directory that the menu item was read from (optional)
|
java.lang.String |
exec
If the exec parameter in a PCD file is set, this variable will
also be set.
|
java.lang.String |
icon
The menu item icon for the current PCD file program
|
java.lang.String |
name
The menu item name for the current PCD file program
|
java.util.Set<SystemToken> |
systems
Stores which systems the current PCD file is supported on
|
java.lang.String |
tooltip
The menu item tooltip text for the current PCD file program
|
java.util.Map<java.lang.String,Widget> |
widgetList
The widget list to use for running the current PCD command.
|
Constructor and Description |
---|
PCDObject(java.io.File dir,
java.lang.String name,
java.lang.String exec,
java.lang.String icon,
java.lang.String tooltip,
java.util.Set<SystemToken> systems,
java.util.Map<java.lang.String,Widget> widgetList)
Creates a new PCD object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSystemSupported()
Calculates whether this PCD menu is supported
on the current system-architecture configuration.
|
public java.io.File dir
public java.lang.String name
public java.lang.String exec
public java.lang.String icon
public java.lang.String tooltip
public java.util.Set<SystemToken> systems
public java.util.Map<java.lang.String,Widget> widgetList
public PCDObject(java.io.File dir, java.lang.String name, java.lang.String exec, java.lang.String icon, java.lang.String tooltip, java.util.Set<SystemToken> systems, java.util.Map<java.lang.String,Widget> widgetList)
dir
- the directory where the PCD menu was loaded. This is
important for relative icon paths.name
- the name of the PCD menuexec
- the command for the PCD menu to execute when clicked
(without presenting widgets to the user), set to null
(default) if you want to use widgets and command
button insteadicon
- the icon for the PCD menu commandtooltip
- the tooltip text to present to the user for this
PCD commandsystems
- a set object containing all of the
system-architectures the PCD menu will work withwidgetList
- a map object containing all of the PCD widgets
associated with this menu itemCopyright © 2008-2022 University of Manitoba.