Class semper.preferences.PrefFieldLabel
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class semper.preferences.PrefFieldLabel
java.lang.Object
   |
   +----semper.preferences.PrefField
           |
           +----semper.preferences.PrefFieldLabel
  -  public class PrefFieldLabel
  -  extends PrefField
   
  -   PrefFieldLabel() PrefFieldLabel()
-  
  
-   PrefFieldLabel(String, String) PrefFieldLabel(String, String)
-  Constructor for strings fields with defaults constraints.
  
-   PrefFieldLabel(String, String, GridBagConstraints) PrefFieldLabel(String, String, GridBagConstraints)
-  Constructor for strings fields.
   
  -   applyModification() applyModification()
-  No modification needed.
  
-   cancel() cancel()
-  This method  does nothing.
  
-   getValue() getValue()
-  this method return the String for that label.
  
-   isModified() isModified()
-  A label field is never modified.
  
-   isOK() isOK()
-  A label is always ok.
  
-   myStreamSize() myStreamSize()
-  Returns the size of the stream that would hold the externalized form of this field.
  
-   readObject(StreamInputInterface) readObject(StreamInputInterface)
-  Internalizes this field.
  
-   setAlignement(int) setAlignement(int)
-  This sets the font for that label.
  
-   setValue(Object) setValue(Object)
-  Can be used to change the label.
  
-   showme(PrefFrame) showme(PrefFrame)
-  This adds the label to the given frame.
  
-   writeObject(StreamOutputInterface) writeObject(StreamOutputInterface)
-  Externalizes this field.
   
 PrefFieldLabel
PrefFieldLabel
  public PrefFieldLabel(String fieldname,
                        String description,
                        GridBagConstraints constraint)
  -  Constructor for strings fields.
  
    -  Parameters:
    
-  fieldname - is the string by which this component is accessed through the preferences manager.
    -  description - is the text for that label.
    -  constraints - is the set of GridBagConstraints for that component. The internal 
	  constraints representation is a clone of the input.
    
-  Returns:
    
-  the new object.
    
-  See Also:
    
-  GridBagConstraints, Label
  
 
 PrefFieldLabel
PrefFieldLabel
  public PrefFieldLabel(String fieldname,
                        String description)
  -  Constructor for strings fields with defaults constraints.
  
    -  Parameters:
    
-  fieldname - is the string by which this component is accessed through the preferences manager.
    -  description - is the text for that label.
    
-  Returns:
    
-  the new object.
    
-  See Also:
    
-  GridBagConstraints, Label
  
 
 PrefFieldLabel
PrefFieldLabel
  public PrefFieldLabel()
   
 showme
showme
  public void showme(PrefFrame p)
  -  This adds the label to the given frame.
  
    -  Parameters:
    
-  p - is the frame in which the label is added.
    
-  Returns:
    
-  none.
    
-  Overrides:
    
-  showme in class PrefField
  
 
 getValue
getValue
  public Object getValue()
  -  this method return the String for that label.
  
    -  Returns:
    
-  the string.
    
-  Overrides:
    
-  getValue in class PrefField
  
 
 setValue
setValue
  public void setValue(Object newval)
  -  Can be used to change the label.
  
    -  Parameters:
    
-  newval - is the new string. This should be a String object.
    
-  Returns:
    
-  none.
    
-  Overrides:
    
-  setValue in class PrefField
  
 
 setAlignement
setAlignement
  public void setAlignement(int a)
  -  This sets the font for that label.
  
    -  Parameters:
    
-  f - is the font.
    -  a - is the alignment.
    
-  Returns:
    
-  none.
public void setFont(Font f){
	appearance.setFont(f);
}
/**
This to set the algnement.
    
-  See Also:
    
-  Label
  
 
 isModified
isModified
  public boolean isModified()
  -  A label field is never modified.
  
    -  Returns:
    
-  false.
    
-  Overrides:
    
-  isModified in class PrefField
  
 
 applyModification
applyModification
  public boolean applyModification()
  -  No modification needed.
  
    -  Returns:
    
-  true
    
-  Overrides:
    
-  applyModification in class PrefField
  
 
 cancel
cancel
  public void cancel()
  -  This method  does nothing.
  
    -  Returns:
    
-  none.
    
-  Overrides:
    
-  cancel in class PrefField
  
 
 isOK
isOK
  public boolean isOK()
  -  A label is always ok.
  
    -  Returns:
    
-  true.
    
-  Overrides:
    
-  isOK in class PrefField
  
 
 myStreamSize
myStreamSize
  public int myStreamSize() throws StreamIOException
  -  Returns the size of the stream that would hold the externalized form of this field.
  
    -  Returns:
    
-  the size of the stream in bytes
    
-  Overrides:
    
-  myStreamSize in class PrefField
    
-  See Also:
    
-  Streamable
  
 
 readObject
readObject
  public void readObject(StreamInputInterface stream) throws StreamIOException
  -  Internalizes this field.
  
    -  Parameters:
    
-  stream - is the stream of data the object state is retrieved from
    
-  Returns:
    
-  none.
    
-  Overrides:
    
-  readObject in class PrefField
    
-  See Also:
    
-  Streamable
  
 
 writeObject
writeObject
  public void writeObject(StreamOutputInterface stream) throws StreamIOException
  -  Externalizes this field.
  
    -  Parameters:
    
-  stream - is the stream of data the object state is recorded in
    
-  Returns:
    
-  none
    
-  Overrides:
    
-  writeObject in class PrefField
    
-  See Also:
    
-  Streamable
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index