|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class is used to provide all neccessary changes and validations in model. Generally two strategies for ViewEditorHelper 1) really update the view and model 2) update the model and recreate the view according to model
| Method Summary | |
View |
add(java.lang.Object obj,
java.awt.Point location)
Should provides necessary changes in view and model if the view can be resized. |
boolean |
canAccept(CompositeView composite,
View view)
|
java.lang.Object |
createObject(java.lang.Class clazz,
java.awt.Point pt)
|
javax.swing.Action[] |
getActions()
we can use different selections for different viewes |
boolean |
isResizable(View view)
|
java.awt.Dimension |
moveView(View view,
java.awt.Dimension offset)
Should provides necessary changes in view and model if the view can be moved on the specified offset. |
void |
register(ViewEditorPane viewEditor)
register this ViewEditorHelper for the specified ViewEditorPane. |
boolean |
removeView(View view)
Should provides necessary changes in view and model if the view can removed. |
java.awt.Dimension |
resizeView(View view,
java.awt.Dimension size)
Should provides necessary changes in view and model if the view can be resized. |
| Method Detail |
public void register(ViewEditorPane viewEditor)
public java.awt.Dimension moveView(View view,
java.awt.Dimension offset)
public java.awt.Dimension resizeView(View view,
java.awt.Dimension size)
public View add(java.lang.Object obj,
java.awt.Point location)
public boolean removeView(View view)
public boolean canAccept(CompositeView composite,
View view)
public boolean isResizable(View view)
public java.lang.Object createObject(java.lang.Class clazz,
java.awt.Point pt)
public javax.swing.Action[] getActions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||