package bluej.stride.generic;
import bluej.stride.framedjava.frames.StrideCategory;
| A utility predicate-like class for checking which frames are accepted in a given canvas.
|
| We need two methods because there isn't a one-to-one correspondence between category
| and frame. Specifically, var frames can be inserted in three categories (var, local constant, class constant)
| and only accepted by certain canvases, but after insertion, they can be moved around
| freely between canvases.
|
public interface FrameTypeCheck
{
| Checks if the given category can be inserted as new.
|
public boolean canInsert(StrideCategory category);
| Checks if the given frame class can be moved here.
|
public boolean canPlace(Class<? extends Frame> type);
}
top,
use,
map,
interface FrameTypeCheck
. canInsert
. canPlace
12 neLoCode
+ 7 LoComm