com.denova.io
Class FileGroup

java.lang.Object
  extended by com.denova.io.FileGroup

public class FileGroup
extends java.lang.Object

Manages multiple install types, folders, and components. A FileGroup is a collection of elements. Each element may itself be a FileGroup, or a FileSet.

Author:
DeNova © 1997-2008 DeNova

Constructor Summary
FileGroup()
          Creates a new proprerty list for the file group's attributes.
FileGroup(PropertyList properties)
          Sets the property list to use to maintain the file group.
FileGroup(java.lang.String name, java.lang.String description, java.util.Vector elements)
           A new property list is created to store the file group settings.
 
Method Summary
static void displayText(java.lang.String s)
          Display text.
 java.lang.String getDescription()
          Get the description of this file group.
 java.util.Vector getElements()
          Get the elements of this file group.
 java.lang.String getName()
          Get the name of this file group.
 PropertyList getProperties()
          Get the property list that is being used for the FileGroup.
 void setDescription(java.lang.String description)
          Set the description of this file group.
 void setElements(java.util.Vector elements)
          Set the elements for this file group.
 void setName(java.lang.String name)
          Set the name of this file group.
 void setProperties(PropertyList properties)
          Set the property list to use.
static void setTextDisplay(com.denova.ui.TextDisplayable d)
          Set the display area where any displayText appears.
 java.lang.String toString()
          Get the name of this file group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileGroup

public FileGroup()
Creates a new proprerty list for the file group's attributes.


FileGroup

public FileGroup(PropertyList properties)
Sets the property list to use to maintain the file group.

Parameters:
properties - the property list where the file group attributes are maintained.

FileGroup

public FileGroup(java.lang.String name,
                 java.lang.String description,
                 java.util.Vector elements)

A new property list is created to store the file group settings.

Parameters:
name - the name of this file group
description the description of this file group
elements the array list of elements for this file group
Method Detail

setName

public void setName(java.lang.String name)
Set the name of this file group.

Parameters:
name - name of the group of files

getName

public java.lang.String getName()
Get the name of this file group.


setDescription

public void setDescription(java.lang.String description)
Set the description of this file group.

Parameters:
description - description of the group of files

getDescription

public java.lang.String getDescription()
Get the description of this file group.


setElements

public void setElements(java.util.Vector elements)
Set the elements for this file group.

Converts the elements into one long concatenated string.

Parameters:
elements - elements of the group of files

getElements

public java.util.Vector getElements()
Get the elements of this file group.

Returns:
An array list of elements for this group which you can enumerate to access each element one by one.

setProperties

public void setProperties(PropertyList properties)
Set the property list to use.

Parameters:
properties - list of properties

getProperties

public PropertyList getProperties()
Get the property list that is being used for the FileGroup.


toString

public java.lang.String toString()
Get the name of this file group.

Overrides:
toString in class java.lang.Object

setTextDisplay

public static void setTextDisplay(com.denova.ui.TextDisplayable d)
Set the display area where any displayText appears.

Parameters:
d - text display area

displayText

public static void displayText(java.lang.String s)
Display text.

This method is useful to keep the user up-to-date about what's happening on their system as you work with FileGroups.

Parameters:
s - text to display