Class semper.preferences.PrefGroup
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.preferences.PrefGroup

java.lang.Object
   |
   +----semper.preferences.PrefGroup

public class PrefGroup
extends Object
implements Streamable

Variable Index

 o groupName

Constructor Index

 o PrefGroup()
preferences constructor used by newInstance().
 o PrefGroup(String, String)
preferences constructor.

Method Index

 o cancel()
Cancel user's modifications by setting each field back to their intial value.
 o delField(String)
Delete a particular field of the current group.
 o fieldsList()
Returns every field's name in this group.
 o get(String)
Gets a particular field of this group.
 o getLabel()
Gives the label for that group.
 o getName()
Gives the name of that group.
 o isModified()
Returns true if a field has been modified since last update.
 o myStreamSize()
Returns the size of the stream that would hold the externalized form of the object.
 o numberOfFields()
Return the number of Fields in the group.
 o put(PrefField)
Adds a field to this group.
 o readObject(StreamInputInterface)
Internalizes this group.
 o setPreferredSize(Dimension)
TO BE REMOVED.
 o showme(PrefFrame)
This method adds to a frame the components of the group.
 o update()
Apply the modification when the changes in a group are done.
 o writeObject(StreamOutputInterface)
Externalizes this group object.

Variables

 o groupName
  public String groupName

Constructors

 o PrefGroup
  public PrefGroup(String groupname,
                   String withlabel)
preferences constructor.
Parameters:
name - is the reference name of that group with respect to the preferences manager interface.
withlabel - is the label appearing on display to refer to that group.
Returns:
none
 o PrefGroup
  public PrefGroup()
preferences constructor used by newInstance(). This make nothing.
Returns:
empty object

Methods

 o setPreferredSize
  public void setPreferredSize(Dimension d)
TO BE REMOVED.
 o getName
  public String getName()
Gives the name of that group.
Returns:
the stringname.
 o getLabel
  public String getLabel()
Gives the label for that group.
Returns:
the string representing the label.
 o numberOfFields
  public int numberOfFields()
Return the number of Fields in the group.
Returns:
none
 o fieldsList
  public Enumeration fieldsList()
Returns every field's name in this group.
Returns:
Enumeration of fields.
 o put
  public PrefField put(PrefField field)
Adds a field to this group.
Parameters:
field - is the PrefField object to be added.
Returns:
Null if that fieldname is new, return the previous field otherwise.
 o get
  public PrefField get(String fieldName)
Gets a particular field of this group.
Parameters:
fieldName - is the name of the field to get.
Returns:
the field if exists and null otherwise.
 o delField
  public PrefField delField(String fieldName)
Delete a particular field of the current group.
Parameters:
fieldName - is the name of the field to delete.
Returns:
the field if exists and null otherwise.
 o showme
  public void showme(PrefFrame p)
This method adds to a frame the components of the group.
Parameters:
p - is the frame on which the components are added.
Returns:
none.
 o isModified
  public boolean isModified()
Returns true if a field has been modified since last update.
Returns:
true iff there exists a field modified.
 o update
  public boolean update()
Apply the modification when the changes in a group are done. The modification are performed only if each field are OK.
Returns:
true if the modification has been performed, false otherwise.
 o cancel
  public void cancel()
Cancel user's modifications by setting each field back to their intial value.
Returns:
none.
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Returns the size of the stream that would hold the externalized form of the object.
Returns:
the size of the stream in bytes
See Also:
Streamable
 o readObject
  public void readObject(StreamInputInterface stream) throws StreamIOException
Internalizes this group.
Parameters:
stream - is the stream of data the object state is retrieved from
Returns:
none.
See Also:
Streamable
 o writeObject
  public void writeObject(StreamOutputInterface stream) throws StreamIOException
Externalizes this group object.
Parameters:
stream - is the stream of data the object state is recorded in
Returns:
none
See Also:
Streamable

All Packages  Class Hierarchy  This Package  Previous  Next  Index