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

Class semper.preferences.PrefFieldString

java.lang.Object
   |
   +----semper.preferences.PrefField
           |
           +----semper.preferences.PrefFieldString

public class PrefFieldString
extends PrefField

Constructor Index

 o PrefFieldString()
 o PrefFieldString(String, String, String, int)
Constructor for strings fields with defaults constraints.
 o PrefFieldString(String, String, String, int, GridBagConstraints)
Constructor for strings fields.

Method Index

 o applyModification()
Applies the modification by loading the new value in the current value.
 o cancel()
This method set the Text field to the intial value.
 o getValue()
Return the actual value for that field.
 o isModified()
Indicates if the field has been changed by the user during interactive edition.
 o isOK()
Returns whether the value selected by the user is valid.
 o myStreamSize()
Returns the size of the stream that would hold the externalized form of this field.
 o readObject(StreamInputInterface)
Internalizes this field.
 o setValue(Object)
Allows to set the value for that field.
 o showme(PrefFrame)
put this field appearance in a frame.
 o writeObject(StreamOutputInterface)
Externalizes this field.

Constructors

 o PrefFieldString
  public PrefFieldString(String fieldname,
                         String fieldLabel,
                         String startval,
                         int width)
Constructor for strings fields with defaults constraints.
Parameters:
fieldname - is the string by which this component is accessed through the preferences manager.
fieldLabel - is the label appearing before the text area.
startval - is the starting string value.
width - is the witdth of the input area.
Returns:
the new object.
 o PrefFieldString
  public PrefFieldString(String fieldname,
                         String fieldLabel,
                         String startval,
                         int width,
                         GridBagConstraints constraint)
Constructor for strings fields.
Parameters:
fieldname - is the string by which this component is accessed through the preferences manager.
fieldLabel - is the label appearing before the text area.
startval - is the starting string value.
width - is the witdth of the input area.
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
 o PrefFieldString
  public PrefFieldString()

Methods

 o showme
  public void showme(PrefFrame p)
put this field appearance in a frame.
Parameters:
p - is the frame where to put this field.
Returns:
none.
Overrides:
showme in class PrefField
 o getValue
  public Object getValue()
Return the actual value for that field.
Overrides:
getValue in class PrefField
 o setValue
  public void setValue(Object newval)
Allows to set the value for that field.
Overrides:
setValue in class PrefField
 o isModified
  public boolean isModified()
Indicates if the field has been changed by the user during interactive edition.
Overrides:
isModified in class PrefField
 o applyModification
  public boolean applyModification()
Applies the modification by loading the new value in the current value.
Overrides:
applyModification in class PrefField
 o cancel
  public void cancel()
This method set the Text field to the intial value.
Returns:
none.
Overrides:
cancel in class PrefField
 o isOK
  public boolean isOK()
Returns whether the value selected by the user is valid.
Overrides:
isOK in class PrefField
 o 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
 o 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
 o 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