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

Class semper.preferences.PrefField

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

public class PrefField
extends Object
implements Streamable

Variable Index

 o defCsts

Constructor Index

 o PrefField()

Method Index

 o applyModification()
Applies the modification by loading the new value in the current value.
 o cancel()
the appearance of that field returns to it's initial value.
 o getName()
This method returns the name of that field.
 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 newName(String)
Select a new name.
 o readObject(StreamInputInterface)
Internalizes this field.
 o setValue(Object)
Allows to set the value for that field.
 o showme(PrefFrame)
Adds this field component in a frame.
 o writeObject(StreamOutputInterface)
Externalizes this field.

Variables

 o defCsts
  public static GridBagConstraints defCsts

Constructors

 o PrefField
  public PrefField()

Methods

 o showme
  public abstract void showme(PrefFrame p)
Adds this field component in a frame.
Parameters:
p - is the frame that will receive the component.
Returns:
none.
 o getValue
  public abstract Object getValue()
Return the actual value for that field.
Returns:
the value.
 o setValue
  public abstract void setValue(Object newval)
Allows to set the value for that field.
Parameters:
newval - is the new value.
Returns:
none.
 o isModified
  public abstract boolean isModified()
Indicates if the field has been changed by the user during interactive edition.
Returns:
the answer.
 o applyModification
  public abstract boolean applyModification()
Applies the modification by loading the new value in the current value.
Returns:
true if the modification is valid, false otherwise. The modification is applied only if valid.
 o cancel
  public abstract void cancel()
the appearance of that field returns to it's initial value.
Returns:
none.
 o isOK
  public abstract boolean isOK()
Returns whether the value selected by the user is valid.
Returns:
true if the new value can replace the previous one.
 o newName
  public void newName(String newname)
Select a new name.
Parameters:
newname - is the new name.
Returns:
none.
 o getName
  public String getName()
This method returns the name of that field.
Returns:
the string name.
 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
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.
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
See Also:
Streamable

All Packages  Class Hierarchy  This Package  Previous  Next  Index