|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginCallback
An interface through which Internal Viewers can talk back to CPC.
| Field Summary | |
|---|---|
static int |
FIRST
Offset for getVFileRelativeTo. |
static int |
LAST
Offset for getVFileRelativeTo. |
static int |
NEXT
Offset for getVFileRelativeTo. |
static int |
PREVIOUS
Offset for getVFileRelativeTo. |
| Method Summary | |
|---|---|
CpCmdr |
getCPC()
Return the CPC object. |
java.lang.String |
getMIMETypeFor(VFile vf)
Obtain the MIME type for a given VFile |
VFile |
getVFileRelativeTo(VFile base,
PluginRuntime iv,
int offset,
java.util.Set<java.lang.String> excludeMimes)
Returns a VFile given a "base" VFile. |
java.util.Comparator<VFile> |
getVFileSorter()
Return the current sort order. |
void |
teleportTo(VFile vf)
Cause CPC to teleport to the supplied VFile. |
boolean |
viewerBoundTo(Viewer v,
VFile vf)
Returns whether the viewer is bound to the supplied VFile. |
| Methods inherited from interface ccs.utils.Hurlable |
|---|
hurl |
| Field Detail |
|---|
static final int FIRST
getVFileRelativeTo. The result sorts first in
the listing.
static final int PREVIOUS
getVFileRelativeTo. The result is the predecessor
to the base.
static final int NEXT
getVFileRelativeTo. The result is the successor to
the base.
static final int LAST
getVFileRelativeTo. The result sorts last in
the listing.
| Method Detail |
|---|
CpCmdr getCPC()
void teleportTo(VFile vf)
VFile getVFileRelativeTo(VFile base,
PluginRuntime iv,
int offset,
java.util.Set<java.lang.String> excludeMimes)
isAcceptable method.
offset parameter.
base - The base, as described above.iv - Yourself.offset - The navigation relationship; one of the four constants above.excludeMimes - An optional set of MIME types for which you may be
registered, but nevertheless don't want to get back under the circumstances.
May be null.
IOException - If the method fails to obtjava.lang.String getMIMETypeFor(VFile vf)
vf - The VFile to test
boolean viewerBoundTo(Viewer v,
VFile vf)
java.util.Comparator<VFile> getVFileSorter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||