All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface semper.util.browser.BrowseableActions

public interface BrowseableActions
A BrowseableActions object will contain the methods for manipulating Browseable objects in several ways when a user is browsing. The BrowseableActions are first loaded by the Browser. To support the browsing procedure, a BrowseableActions object provides methods for sorting and calling dynamically methods on the Browseables.

See Also:
Browser

Method Index

 o compareTo(Browseable, Browseable, int, boolean)
Method for sorting on a specified key.
 o getActions()
Obtain the names of the actions which can be called for a browseable.
 o getKeys()
Obtain the names of the keys which can be used to sort.
 o getMethodName(int)
Obtain the name of the method that should be called for a browseable.

Methods

 o compareTo
 public abstract int compareTo(Browseable one,
                               Browseable other,
                               int keyno,
                               boolean reverse)
Method for sorting on a specified key. Other methods could make sorting (and selecting) on individual fields possible.

Precondition: the objects must be of the same type.

Parameters:
one - Browseable object to compare with other.
other - Browseable object to compare with one.
keyno - number of the key field to use in comparisons.
reverse - if true use the reverse order.
Returns:
-1, 0, or 1 iff this is "less than", "equal to", or "larger than" other, respectively.
 o getKeys
 public abstract String[] getKeys()
Obtain the names of the keys which can be used to sort. The index of the key in the result array is its key number.

Returns:
a String per key.
 o getActions
 public abstract String[] getActions()
Obtain the names of the actions which can be called for a browseable.

Returns:
a String per action.
 o getMethodName
 public abstract String getMethodName(int n)
Obtain the name of the method that should be called for a browseable.

Returns:
the name of the method.

All Packages  Class Hierarchy  This Package  Previous  Next  Index