Package com.install4j.api.context
Interface InstallationComponentSetup
-
public interface InstallationComponentSetupThis interface provides information about installation components. Installation components are configured on the "Installation Components" tab in the install4j IDE.Objects of this type are returned by
Context.getInstallationComponents()andContext.getInstallationComponentById(String)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetId()The ID of the installation component.java.lang.StringgetName()Returns the name of this installation components.booleanisChangeable()Returns whether the selection state of the installation component can be changed by the user or not.booleanisDownloaded()Returns whether the installation component is downloaded.booleanisHidden()Returns whether the installation component is hidden from the user.booleanisSelected()Returns whether the installation components has been selected by the user.voidsetChangeable(boolean changeable)Sets whether the selection state of the installation component can be changed by the user or not.voidsetHidden(boolean hidden)Sets whether the installation component is hidden.voidsetSelected(boolean selected)Sets whether the installation component should be installed or not.
-
-
-
Method Detail
-
isSelected
boolean isSelected()
Returns whether the installation components has been selected by the user.- Returns:
trueorfalse.
-
setSelected
void setSelected(boolean selected)
Sets whether the installation component should be installed or not. This method only has an effect when called before the "Install files" action.- Parameters:
selected- the new selection state
-
isChangeable
boolean isChangeable()
Returns whether the selection state of the installation component can be changed by the user or not.- Returns:
trueorfalse.
-
setChangeable
void setChangeable(boolean changeable)
Sets whether the selection state of the installation component can be changed by the user or not.- Parameters:
changeable- the new state
-
isHidden
boolean isHidden()
Returns whether the installation component is hidden from the user. This only affects the display in the component tree.- Returns:
trueorfalse.
-
setHidden
void setHidden(boolean hidden)
Sets whether the installation component is hidden. This only affects the display in the component tree.- Parameters:
hidden- the new state
-
getName
java.lang.String getName()
Returns the name of this installation components. This is the name that you have specified in the install4j IDE. The check box in the installation component tree displays this name.- Returns:
- the name
-
getId
java.lang.String getId()
The ID of the installation component. You can display component IDs in the install4j IDE.- Returns:
- the ID
-
isDownloaded
boolean isDownloaded()
Returns whether the installation component is downloaded.- Returns:
trueorfalse.
-
-