org.globus.cog.gridface.interfaces
Interface GridFaceLabelGenerator


public interface GridFaceLabelGenerator

A Name Generator generates unique names of the datatype string. This is useful to automatically generate unique names for GridFaces so they can be distingusched mere easily and conveniently from each other.


Method Summary
 String get()
          Creates a unique name
 String get(String prefix, String postfix)
          Creates a unique name and puts it between prefix and postfix.
 void setPostfix(String postfix)
          Appends a sting postfix every time the get method is called.
 void setPrefix(String prefix)
          Sets a prefix that will be added every time the get method is called.
 

Method Detail

get

public String get(String prefix,
                  String postfix)
Creates a unique name and puts it between prefix and postfix.

Parameters:
prefix - a String that is included at the beginning.
postfix - a String that is appended.
Returns:
a String that is unique.

get

public String get()
Creates a unique name

Returns:
a String that is unique

setPrefix

public void setPrefix(String prefix)
Sets a prefix that will be added every time the get method is called. The default is "".

Parameters:
prefix - a String the string to be included.

setPostfix

public void setPostfix(String postfix)
Appends a sting postfix every time the get method is called. The default is "".

Parameters:
postfix - a String value