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
-
defCsts
-
-
PrefField()
-
-
applyModification()
- Applies the modification by loading the new value in the current value.
-
cancel()
- the appearance of that field returns to it's initial value.
-
getName()
- This method returns the name of that field.
-
getValue()
- Return the actual value for that field.
-
isModified()
- Indicates if the field has been changed by the user during interactive edition.
-
isOK()
- Returns whether the value selected by the user is valid.
-
myStreamSize()
- Returns the size of the stream that would hold the externalized form of this field.
-
newName(String)
- Select a new name.
-
readObject(StreamInputInterface)
- Internalizes this field.
-
setValue(Object)
- Allows to set the value for that field.
-
showme(PrefFrame)
- Adds this field component in a frame.
-
writeObject(StreamOutputInterface)
- Externalizes this field.
defCsts
public static GridBagConstraints defCsts
PrefField
public PrefField()
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.
getValue
public abstract Object getValue()
- Return the actual value for that field.
- Returns:
- the value.
setValue
public abstract void setValue(Object newval)
- Allows to set the value for that field.
- Parameters:
- newval - is the new value.
- Returns:
- none.
isModified
public abstract boolean isModified()
- Indicates if the field has been changed by the user during interactive edition.
- Returns:
- the answer.
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.
cancel
public abstract void cancel()
- the appearance of that field returns to it's initial value.
- Returns:
- none.
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.
newName
public void newName(String newname)
- Select a new name.
- Parameters:
- newname - is the new name.
- Returns:
- none.
getName
public String getName()
- This method returns the name of that field.
- Returns:
- the string name.
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
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
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