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

Class semper.preferences.PrefFieldNegotiable

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

public class PrefFieldNegotiable
extends PrefField

Constructor Index

 o PrefFieldNegotiable()
 o PrefFieldNegotiable(String, String[], int)
Construct a negotiable field where each item is unused and with defaults constraints.
 o PrefFieldNegotiable(String, String[], int, GridBagConstraints)
Construct a negotiable field where each item is unused.

Method Index

 o applyModification()
Applies the modification by loading the new value in the current value.
 o cancel()
This method put in the unused List the elements of unused and put in the priority List elements of priority.
 o getValue()
This method returns the priority list in a vector form.
 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)
This method change the list of an item.
 o showme(PrefFrame)
Implementation of the abstract showme method from PrefField.
 o writeObject(StreamOutputInterface)
Externalizes this field.

Constructors

 o PrefFieldNegotiable
  public PrefFieldNegotiable(String fieldname,
                             String items[],
                             int visibleLines,
                             GridBagConstraints constraint)
Construct a negotiable field where each item is unused.
Parameters:
fieldname - for that field.
a - vector containing the set of items.
visibleLines - is the number of lines shown in list components.
constraints - is the set of GridBagConstraints for that component.
Returns:
the new object.
 o PrefFieldNegotiable
  public PrefFieldNegotiable(String fieldname,
                             String items[],
                             int visibleLines)
Construct a negotiable field where each item is unused and with defaults constraints.
Parameters:
fieldname - for that field.
a - vector containing the set of items.
visibleLines - is the number of lines shown in list components.
Returns:
the new object.
 o PrefFieldNegotiable
  public PrefFieldNegotiable()

Methods

 o showme
  public void showme(PrefFrame p)
Implementation of the abstract showme method from PrefField.
Parameters:
p - is the frame where to put the group's fields
Returns:
none.
Overrides:
showme in class PrefField
 o getValue
  public Object getValue()
This method returns the priority list in a vector form.
Returns:
the vector containing all the items.
Overrides:
getValue in class PrefField
 o setValue
  public void setValue(Object item)
This method change the list of an item. If the item was in the unused list then it is moved next in the priority list. If the item was in the priority list then it is moved as unused.
Parameters:
item - is the item to move. If no such item is in the set of all items then nothing is done.
Returns:
none.
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 put in the unused List the elements of unused and put in the priority List elements of priority.
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