|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.Pack
public class Pack
Represents a Pack.
Field Summary | |
---|---|
static int |
BLACK
black colour |
int |
color
The color of the node. |
private java.lang.String |
condition
Condition for this pack * |
java.util.List<java.lang.String> |
dependencies
The list of packs this pack depends on |
java.lang.String |
description
The pack description. |
java.lang.String |
excludeGroup
All packs in the same excludeGroup are mutually exclusive. |
private static java.text.DecimalFormat |
formatter
Used of conversions. |
private static double |
GIGABYTES
Used of conversions. |
static int |
GREY
grey colour |
java.lang.String |
group
The group the pack is associated with. |
java.lang.String |
id
The langpack id |
java.util.Set<java.lang.String> |
installGroups
An association of this pack to zero or more installation groups. |
private static double |
KILOBYTES
Used of conversions. |
boolean |
loose
Flag for store files of this pack outside the installation jar file |
private static double |
MEGABYTES
Used of conversions. |
java.lang.String |
name
The pack name. |
long |
nbytes
The bumber of bytes contained in the pack. |
java.util.List<OsConstraint> |
osConstraints
The target operation system of this pack |
java.lang.String |
packImgId
The id to use if we want to obtain this pack's image resource |
java.lang.String |
parent
Parent pack name to display it in the TreePacksPanel (optional) |
boolean |
preselected
Whether this pack is suggested (preselected for installation). |
boolean |
required
True if the pack is required. |
java.util.List<java.lang.String> |
revDependencies
Reverse dependencies(childs) |
(package private) static long |
serialVersionUID
|
boolean |
uninstall
If true, all files of the pack will be deleted during uninstallation, if false they are only removed if uninstaller force delete option is activated. |
static int |
WHITE
white colour |
Constructor Summary | |
---|---|
Pack(java.lang.String name,
java.lang.String id,
java.lang.String description,
java.util.List<OsConstraint> osConstraints,
java.util.List<java.lang.String> dependencies,
boolean required,
boolean preselected,
boolean loose,
java.lang.String excludegroup,
boolean uninstall)
The constructor. |
Method Summary | |
---|---|
void |
addRevDep(java.lang.String name0)
This adds a reverse dependency. |
java.lang.String |
depString()
Creates a text list of all the packs it depend on |
java.lang.String |
getCondition()
|
java.util.List<java.lang.String> |
getDependencies()
getter method for dependencies |
boolean |
hasCondition()
|
void |
setCondition(java.lang.String condition)
|
static java.lang.String |
toByteUnitsString(long bytes)
Convert bytes into appropiate mesaurements. |
java.lang.String |
toString()
To a String (usefull for JLists). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
public boolean loose
public boolean uninstall
public java.lang.String name
public java.lang.String id
public java.util.Set<java.lang.String> installGroups
public java.lang.String excludeGroup
public java.lang.String group
public java.lang.String description
public java.util.List<OsConstraint> osConstraints
private java.lang.String condition
public java.util.List<java.lang.String> dependencies
public java.util.List<java.lang.String> revDependencies
public boolean required
public long nbytes
public boolean preselected
public java.lang.String parent
public int color
public java.lang.String packImgId
public static final int WHITE
public static final int GREY
public static final int BLACK
private static final double KILOBYTES
private static final double MEGABYTES
private static final double GIGABYTES
private static final java.text.DecimalFormat formatter
Constructor Detail |
---|
public Pack(java.lang.String name, java.lang.String id, java.lang.String description, java.util.List<OsConstraint> osConstraints, java.util.List<java.lang.String> dependencies, boolean required, boolean preselected, boolean loose, java.lang.String excludegroup, boolean uninstall)
name
- The pack name.id
- The id of the pack which is used e.g. for I18Ndescription
- The pack description.osConstraints
- the OS constraint (or null for any OS)dependencies
- dependencies of this packrequired
- Indicates wether the pack is required or not.preselected
- This pack will be selected automatically.loose
- Flag for store files of this pack outside the installation jar fileexcludegroup
- associated exclude groupuninstall
- If true, pack must be uninstalled.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<java.lang.String> getDependencies()
public void addRevDep(java.lang.String name0)
name0
- The name of the pack that depents to this packpublic java.lang.String depString()
public static java.lang.String toByteUnitsString(long bytes)
bytes
- A number of bytes to convert to a String.
public java.lang.String getCondition()
public void setCondition(java.lang.String condition)
condition
- the condition to setpublic boolean hasCondition()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |