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
This field contains an information string plus two lists. The first
list (at left) contains the possible options (unused). The second list contains
the selected options in preferences order. The user can put some
possible options in a priority list or can remove items from the
priority list back to the possible options (unused).
- Version:
- $Revision: 1.13 $ $Date: 1997/09/26 16:29:32 $
- Author:
- Louis Salvail (CWI)
- See Also:
- PrefFieldString, PrefFieldLabel, PrefFieldChoice, PrefFieldCheckBox
-
PrefFieldNegotiable()
-
Constructor used by new Instance when internalizing a new
negotiable field.
-
PrefFieldNegotiable(String, String[], int)
-
Construct a negotiable field where each item is unused and with defaults constraints.
-
PrefFieldNegotiable(String, String[], int, GridBagConstraints)
-
Construct a negotiable field where each item is unused.
-
applyModification()
-
Applies the modification by loading the new value in the current value.
-
cancel()
-
This method put in the unused List the elements of unused and put in the priority List
elements of priority.
-
getValue()
-
This method returns the priority list in a vector form.
-
isModified()
-
Indicates if the field has been changed by the user during
interactive editing.
-
isOK()
-
Returns whether the value selected by the user is valid.
-
moveButton()
-
Returns the move Button.Used by NegotiablePanels.
-
priorityList()
-
Returns the priority list.
-
removeButton()
-
Returns the remove Button.Used by NegotiablePanels.
-
setValue(Object)
-
This method change the list of an item.
-
showme(PrefFrame)
-
Implementation of the abstract showme method from PrefField.
-
unusedList()
-
Return the unused list.
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 PrefFieldNegotiable object.
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 PrefFieldNegotiable object.
PrefFieldNegotiable
public PrefFieldNegotiable()
- Constructor used by new Instance when internalizing a new
negotiable field.
- Returns:
- an empty negotiation field.
moveButton
public Button moveButton()
- Returns the move Button.Used by NegotiablePanels.
removeButton
public Button removeButton()
- Returns the remove Button.Used by NegotiablePanels.
unusedList
public List unusedList()
- Return the unused list.
priorityList
public List priorityList()
- Returns the priority list.
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
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
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
isModified
public boolean isModified()
- Indicates if the field has been changed by the user during
interactive editing.
- Overrides:
- isModified in class PrefField
applyModification
public boolean applyModification()
- Applies the modification by loading the new value in the current value.
- Overrides:
- applyModification in class PrefField
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
isOK
public boolean isOK()
- Returns whether the value selected by the user is valid.
- Overrides:
- isOK in class PrefField
All Packages Class Hierarchy This Package Previous Next Index