Class semper.preferences.PrefFieldCatBag
All Packages Class Hierarchy This Package Previous Next Index
Class semper.preferences.PrefFieldCatBag
java.lang.Object
|
+----semper.preferences.PrefField
|
+----semper.preferences.PrefFieldCatBag
- public class PrefFieldCatBag
- extends PrefField
The field contains:
a Categorylist, which is split up in two
lists (CatNameList and CatList),
a Textfield to set/edit names of the categories,
a Choice to set/edit the category-level of the related category,
two buttons for adding and removing categories
- Version:
- beta-2 v1.7
- Author:
- Andreas Fleuti
- See Also:
- PrefFieldString, PrefFieldLabel, PrefFieldChoice, PrefFieldCheckBox, PrefFieldList
-
PrefFieldCatBag()
-
-
PrefFieldCatBag(String, CategoryBag)
- Construct a CatBagField
-
applyModification()
- Applies the modification by loading the new value in the current value.
-
cancel()
- This method undo all changes of the user
-
getValue()
- This method returns a CategoryBag
-
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.
-
myStreamSize()
- Returns the size of the stream that would hold the externalized form of this field.
-
readObject(StreamInputInterface)
- Internalizes this field.
-
setValue(CategoryBag)
-
-
setValue(Object)
- Just sets (and overwrite) the current CategoryBag of preferences.
-
showme(PrefFrame)
- Implementation of the abstract showme method from PrefField.
-
writeObject(StreamOutputInterface)
- Externalizes this field.
PrefFieldCatBag
public PrefFieldCatBag(String fieldname,
CategoryBag catbag)
- Construct a CatBagField
- Parameters:
- fieldnamefor - that field
- catbag, - which will be shown
- Returns:
- the new object.
PrefFieldCatBag
public PrefFieldCatBag()
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 a CategoryBag
- Returns:
- CategoryBag, which represent the actual preferences.
- Overrides:
- getValue in class PrefField
setValue
public void setValue(Object catbag)
- Just sets (and overwrite) the current CategoryBag of preferences.
- Returns:
- none.
- Overrides:
- setValue in class PrefField
setValue
public void setValue(CategoryBag catbag)
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
isOK
public boolean isOK()
- Returns whether the value selected by the user is valid.
- Overrides:
- isOK in class PrefField
cancel
public void cancel()
- This method undo all changes of the user
- Returns:
- none.
- Overrides:
- cancel in class PrefField
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
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
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