|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.fruitioninc.jwc.Component
A component is an object having a graphical representation that can be displayed on the screen and that can interact with the user. Every component is a split into 3 parts: model, view, and controller.
Field Summary | |
static char |
NAME_DELIMITER
|
Constructor Summary | |
Component(Model model,
View view)
|
|
Component(java.lang.String name,
Model model,
View view)
|
Method Summary | |
void |
addComponentListener(ComponentListener listener)
Adds a ComponentListener to this component. |
void |
addMouseListener(MouseListener listener)
Adds a MouseListener to this component. |
void |
fireComponentSerialize(ComponentEvent event)
Fires a ComponentEvent that signifies that the component is about to be serialized. |
void |
fireMouseClicked(MouseEvent event)
Fires a MouseEvent that signifies that the user as clicked on the component with the mouse. |
Application |
getApplication()
Returns the application this component is a part of. |
int |
getComponentListenerCount()
Returns the number of ComponentListeners added to this component. |
java.util.Iterator |
getComponentListeners()
Returns an iteration of the ComponentListeners added to this component. |
Container |
getContainer()
|
Model |
getModel()
|
int |
getMouseListenerCount()
Returns the number of MouseListeners added to this component. |
java.util.Iterator |
getMouseListeners()
Returns an iteration of the MouseListeners added to this component. |
java.lang.String |
getName()
|
java.lang.String |
getPathName()
|
View |
getView()
|
void |
setModel(Model model)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final char NAME_DELIMITER
Constructor Detail |
public Component(Model model, View view)
public Component(java.lang.String name, Model model, View view)
Method Detail |
public Container getContainer()
public Application getApplication()
public View getView()
public Model getModel()
public void setModel(Model model)
public java.lang.String getName()
public java.lang.String getPathName()
public void addMouseListener(MouseListener listener)
public java.util.Iterator getMouseListeners()
public int getMouseListenerCount()
public void fireMouseClicked(MouseEvent event)
public void addComponentListener(ComponentListener listener)
public java.util.Iterator getComponentListeners()
public int getComponentListenerCount()
public void fireComponentSerialize(ComponentEvent event)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |