|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GuiBeanAPI
Title: GuiBeanAPI
Description: This interface provides a super flexible method for implementing
a Graphical User Interface Java Bean. The idea behind this interface is that under varying
situations the same bean functionality might want to be visualized in a variety of ways. For
instance, perhaps sometimes you want the bean to appear in a stand-alone frame, while other times
you may want the bean to appear as a button that when clicked, can visualize itself in some
useful method. The goal of this interface is to allow a bean to be written once and then
visualized in any number of ways. While this interface provides a suggestive list of possible
visualization names, this in no way should limit a developer to think these are the only ways
in which a bean might be visualized. Additionally, not all beans need to be able to visualize
themselves in any or all of the methods listed below. Good documentation on the implementing
class should clarify which visualizations are supported.
| Field Summary | |
|---|---|
static int |
APPLET
Use this to visualize a APPLET instance of the bean |
static int |
APPLICATION
Use this to visualize a APPLICATION instance of the bean |
static int |
BUTTON
Use this to visualize a BUTTON instance of the bean |
static int |
EMBED
Use this to visualize a EMBED instance of the bean |
static int |
MENUOPT
Use this to visualize a MENUOPT instance of the bean |
static int |
SPLASH
Use this to visualize a SPLASH instance of the bean |
static int |
WEB
Use this to visualize a WEB instance of the bean |
| Method Summary | |
|---|---|
Object |
getVisualization(int type)
Creates a visualization that can be used in any application type that returns true with a call to isVisualizationSupported(type). |
String |
getVisualizationClassName(int type)
|
boolean |
isVisualizationSupported(int type)
|
| Field Detail |
|---|
static final int APPLICATION
APPLICATION instance of the bean
static final int APPLET
APPLET instance of the bean
static final int WEB
WEB instance of the bean
static final int BUTTON
BUTTON instance of the bean
static final int EMBED
EMBED instance of the bean
static final int SPLASH
SPLASH instance of the bean
static final int MENUOPT
MENUOPT instance of the bean
| Method Detail |
|---|
Object getVisualization(int type)
throws IllegalArgumentException
true with a call to isVisualizationSupported(type).
type - An int defining the type of application visualization desired.
JComponent in
the case of an applet/application, but might just be an HTML String in the
case of a web application. Implementation can vary greatly.
IllegalArgumentException - If isVisualizationSupported(type) returns false.String getVisualizationClassName(int type)
type - The type of visualization desired.
getVisualization. If the given type is not supported, then
null is returned.boolean isVisualizationSupported(int type)
type - The type of application the visualization is desired for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||