|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
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.AbstractFieldEditor
Field Summary | |
protected FieldItem |
field
|
protected boolean |
isEmbedded
|
protected MethodItem |
setter
|
protected Object |
substance
|
protected Object |
value
|
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
column, context, description, height, isCellViewer, label, parentView, row, table, width |
Constructor Summary | |
AbstractFieldEditor(Object substance,
FieldItem field)
|
Method Summary | |
void |
close()
Close this view. |
void |
commit()
Commit editing by calling the setter method. |
protected abstract boolean |
doReadValue(Object parameter)
|
void |
fieldUpdated(Object substance,
FieldItem field,
Object value,
Object param)
Upcalled when a field was modified. |
FieldItem |
getField()
|
Object |
getValue()
Gets the value of the edited object. |
boolean |
isEnabled()
|
void |
onSetFocus(Object param)
Called when the focus is given to the editor |
boolean |
readValue(Object parameter)
|
void |
setAutoUpdate(boolean autoUpdate)
Sets the auto-update property of the view. |
void |
setEmbedded(boolean isEmbedded)
Sets wether the editor is embedded in a view. |
void |
setEnabled(boolean enabled)
|
void |
setField(FieldItem field)
Sets the field being displayed |
void |
setSubstance(Object substance)
Sets the substance object holding the field |
void |
setValue(Object value)
Sets the value to display |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
equals, eventURL, eventURL, genBody, genPage, genStyleSheets, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, hashCode, iconElement, iconElement, isClosed, isDescendantOf, isInForm, printAttributes, setAttribute, setColumn, setContext, setDescription, setFactory, setFocus, setHeight, setLabel, setMessage, setParameters, setParentView, setRow, setStyle, setStyleSheet, setTable, setType, setViewBorder, setWidth, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, 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, setHeight, setLabel, setMessage, setParentView, setStyle, setViewBorder, setWidth, validate |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
getParameters, getType, setParameters, setType |
Field Detail |
protected Object substance
protected FieldItem field
protected MethodItem setter
protected Object value
protected boolean isEmbedded
Constructor Detail |
public AbstractFieldEditor(Object substance, FieldItem field)
Method Detail |
public Object getValue()
FieldEditor
getValue
in interface FieldEditor
public void setValue(Object value)
FieldView
setValue
in interface FieldView
value
- the valuepublic void setSubstance(Object substance)
FieldView
setSubstance
in interface FieldView
substance
- the substancepublic 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 setEmbedded(boolean isEmbedded)
FieldEditor
setEmbedded
in interface FieldEditor
public void close()
View
close
in interface View
close
in class AbstractView
public void onSetFocus(Object param)
FieldEditor
onSetFocus
in interface FieldEditor
param
- an optional parameterpublic boolean readValue(Object parameter)
protected abstract boolean doReadValue(Object parameter)
public void commit()
commit
in interface FieldEditor
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)
public boolean isEnabled()
isEnabled
in interface FieldEditor
public void setEnabled(boolean enabled)
setEnabled
in interface FieldEditor
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |