public class SubformJDynFormSet extends AbstractJDynFormSet implements FormSetButtonBar.FormSetListener, JDynForm.JDynFormListener
JDynFormSet.JDynFormSetListener
actionsBuffer, autosave, contents, definition, formHeight, formWidth, layoutMode, listeners, manager, readOnly, values
USE_PLAIN, USE_SEPARATORS, USE_TABS
Constructor and Description |
---|
SubformJDynFormSet(ServiceManager manager,
DynFormDefinition definition) |
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action action) |
JComponent |
asJComponent()
Returns this component as a swing
JComponent . |
void |
clear() |
boolean |
doActionCancelNew() |
boolean |
doActionClose() |
boolean |
doActionDelete() |
boolean |
doActionFirst() |
boolean |
doActionLast() |
boolean |
doActionNew() |
boolean |
doActionNext() |
boolean |
doActionPrevious() |
boolean |
doActionSave() |
boolean |
doActionSearch() |
void |
doSetCurrentRecord(int index) |
protected void |
enterStateNew() |
void |
fieldChanged(JDynFormField field)
This event is fired when a field of the form is changed by the user.
|
DynObject |
get(int position) |
int |
getCurrentIndex() |
void |
getFormValues(DynObject values) |
JLabel |
getMessagesJLabel() |
List |
getValues() |
boolean |
hasValidValues() |
boolean |
hasValidValues(List<String> fieldsName) |
protected void |
leaveTheNewState() |
void |
message() |
void |
message(String msg) |
void |
setAllowDelete(boolean allowDelete) |
void |
setAllowNew(boolean allowNew) |
void |
setCurrentIndex(int index) |
void |
setFormSize(int width,
int height) |
void |
setReadOnly(boolean readOnly) |
void |
setValues(DynObjectSet values) |
void |
setValues(List values) |
addActionToPopupMenu, addListener, addSeparatorToPopupMenu, allowClose, allowDelete, allowNew, allowSearch, allowUpdate, confirmDialog, countValues, fireCloseEvent, fireFormMovedToEvent, fireMessageEvent, getLayoutMode, getManager, getServiceManager, getTagValueAsBoolean, getTagValueAsInt, getUseScrollBars, isAutosave, isInNewState, isReadOnly, loadDefaultValueFromTags, removeListener, setAllowClose, setAllowSearch, setAllowUpdate, setAutosave, setLayoutMode, setUseScrollBars
public SubformJDynFormSet(ServiceManager manager, DynFormDefinition definition) throws ServiceException
ServiceException
public JComponent asJComponent()
Component
JComponent
.asJComponent
in interface Component
JComponent
public JLabel getMessagesJLabel()
public void message()
message
in interface JDynFormSet
message
in class AbstractJDynFormSet
public void message(String msg)
message
in interface JDynForm.JDynFormListener
message
in interface JDynFormSet
message
in class AbstractJDynFormSet
public void setAllowDelete(boolean allowDelete)
setAllowDelete
in interface JDynFormSet
setAllowDelete
in class AbstractJDynFormSet
public void setAllowNew(boolean allowNew)
setAllowNew
in interface JDynFormSet
setAllowNew
in class AbstractJDynFormSet
public void setValues(List values) throws ServiceException
setValues
in interface JDynFormSet
setValues
in class AbstractJDynFormSet
ServiceException
public void setValues(DynObjectSet values) throws ServiceException
setValues
in interface JDynFormSet
setValues
in class AbstractJDynFormSet
ServiceException
public void setReadOnly(boolean readOnly)
setReadOnly
in interface JDynFormSet
setReadOnly
in class AbstractJDynFormSet
public boolean doActionFirst()
doActionFirst
in interface FormSetButtonBar.FormSetListener
public boolean doActionPrevious()
doActionPrevious
in interface FormSetButtonBar.FormSetListener
public boolean doActionNext()
doActionNext
in interface FormSetButtonBar.FormSetListener
public boolean doActionLast()
doActionLast
in interface FormSetButtonBar.FormSetListener
public boolean doActionSave()
doActionSave
in interface FormSetButtonBar.FormSetListener
public boolean doActionNew()
doActionNew
in interface FormSetButtonBar.FormSetListener
public boolean doActionCancelNew()
doActionCancelNew
in interface FormSetButtonBar.FormSetListener
protected void enterStateNew()
enterStateNew
in class AbstractJDynFormSet
protected void leaveTheNewState()
leaveTheNewState
in class AbstractJDynFormSet
public boolean doActionDelete()
doActionDelete
in interface FormSetButtonBar.FormSetListener
public boolean doActionSearch()
doActionSearch
in interface FormSetButtonBar.FormSetListener
public boolean doActionClose()
doActionClose
in interface FormSetButtonBar.FormSetListener
public void doSetCurrentRecord(int index)
doSetCurrentRecord
in interface FormSetButtonBar.FormSetListener
public void setFormSize(int width, int height)
setFormSize
in interface JDynFormSet
setFormSize
in class AbstractJDynFormSet
public int getCurrentIndex()
getCurrentIndex
in interface JDynFormSet
public void setCurrentIndex(int index)
setCurrentIndex
in interface JDynFormSet
public void fieldChanged(JDynFormField field)
JDynForm.JDynFormListener
fieldChanged
in interface JDynForm.JDynFormListener
public DynObject get(int position)
get
in interface JDynFormSet
get
in class AbstractJDynFormSet
public List getValues()
getValues
in interface JDynFormSet
public boolean hasValidValues()
hasValidValues
in interface JDynFormSet
public boolean hasValidValues(List<String> fieldsName)
hasValidValues
in interface JDynFormSet
public void clear()
public void getFormValues(DynObject values)
getFormValues
in interface JDynFormSet
getFormValues
in class AbstractJDynFormSet
public void addAction(Action action)
addAction
in interface JDynFormSet