|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.web.AbstractView | +--org.objectweb.jac.aspects.gui.web.AbstractFieldView
Base class for field views
Field Summary | |
protected boolean |
autoUpdate
|
protected FieldItem |
field
|
protected Object |
substance
|
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
column, context, description, height, isCellViewer, label, parentView, row, table, width |
Constructor Summary | |
AbstractFieldView()
|
|
AbstractFieldView(Object substance,
FieldItem field)
|
Method Summary | |
void |
close(boolean validate)
Close this view. |
void |
fieldUpdated(Object substance,
FieldItem field,
Object value,
Object param)
Upcalled when a field was modified. |
FieldItem |
getField()
|
Object |
getSubstance()
Gets the substance object holding the field |
void |
setAutoUpdate(boolean autoUpdate)
Sets the auto-update property of the view. |
void |
setField(FieldItem field)
Sets the field being displayed |
void |
setSubstance(Object substance)
Sets the substance object holding the field |
abstract void |
setValue(Object value)
Sets the value to display |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
closeForm, equalsView, equalsView, eventURL, eventURL, genBody, genEventAndActionButton, genPage, genStyleSheets, getBaseURL, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, iconElement, iconElement, isClosed, isDescendantOf, isInForm, openForm, printAttributes, setAttribute, setColumn, setContext, setDescription, setFactory, setFocus, setLabel, setMessage, setParameters, setParentView, setRow, setSize, setStyle, setStyleSheet, setTable, setType, setViewBorder, showButton, showFormButtons, showFormButtons |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jac.aspects.gui.View |
getContext, getDescription, getFactory, getLabel, getMessage, getParentView, getRootView, getStyle, getViewBorder, isClosed, isDescendantOf, setContext, setDescription, setFactory, setFocus, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
equalsView, equalsView, getParameters, getType, setParameters, setType |
Field Detail |
protected Object substance
protected FieldItem field
protected boolean autoUpdate
Constructor Detail |
public AbstractFieldView(Object substance, FieldItem field)
public AbstractFieldView()
Method Detail |
public abstract void setValue(Object value)
FieldView
setValue
in interface FieldView
value
- the valuepublic void setSubstance(Object substance)
FieldView
setSubstance
in interface FieldView
substance
- the substanceFieldView.getSubstance()
public Object getSubstance()
FieldView
getSubstance
in interface FieldView
FieldView.setSubstance(Object)
public void setField(FieldItem field)
FieldView
setField
in interface FieldView
field
- the fieldpublic FieldItem getField()
getField
in interface FieldView
public void setAutoUpdate(boolean autoUpdate)
FieldView
setAutoUpdate
in interface FieldView
public void close(boolean validate)
View
close
in interface View
close
in class AbstractView
validate
- wether to validate any value contained in editors.public void fieldUpdated(Object substance, FieldItem field, Object value, Object param)
FieldUpdate
fieldUpdated
in interface FieldUpdate
substance
- the object of which a field was updatedfield
- the updated fieldvalue
- new value of the vieldparam
- extra infos (unused)ViewControlWrapper.registerField(Wrappee,FieldItem,FieldUpdate,Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |