public class BaseJDynFormSet extends AbstractJDynFormSet implements FormSetButtonBar.FormSetListener, JDynForm.JDynFormListener
JDynFormSet.JDynFormSetListeneractionsBuffer, autosave, contents, formHeight, formWidth, layoutMode, listeners, LOGGER, readOnly, valuesACTION_CANCEL_NEW, ACTION_CLOSE, ACTION_DELETE, ACTION_FIRST, ACTION_LAST, ACTION_NAVIGATION, ACTION_NEW, ACTION_NEXT, ACTION_PREVIOUS, ACTION_SAVE, ACTION_SEARCH, ACTION_SET_CURRENT_RECORD| Constructor and Description |
|---|
BaseJDynFormSet(DynFormSPIManager manager,
JDynFormSetFactory factory,
JDynForm.DynFormContext context,
DynFormDefinition definition,
Tags contextTags) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(javax.swing.Action action) |
javax.swing.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.
|
void |
fireEvent(java.lang.String action,
java.lang.Object value) |
DynObject |
get(int position) |
javax.swing.Action |
getAction(java.lang.String actionId) |
javax.swing.JComponent |
getActionButton(java.lang.String action) |
java.util.List<javax.swing.Action> |
getActions() |
int |
getCurrentIndex() |
JDynForm |
getForm() |
javax.swing.JPopupMenu |
getFormsetPopupMenu() |
void |
getFormValues(DynObject values) |
javax.swing.JLabel |
getMessagesJLabel() |
java.util.List |
getValues() |
boolean |
hasValidValues() |
boolean |
hasValidValues(java.util.List<java.lang.String> fieldsName) |
boolean |
isActionEnabled(java.lang.String action) |
boolean |
isActionVisible(java.lang.String action) |
protected void |
leaveTheNewState() |
void |
message() |
void |
message(java.lang.String msg) |
void |
setActionEnabled(java.lang.String action,
boolean enabled) |
void |
setActionVisible(java.lang.String action,
boolean visible) |
void |
setAllowClose(boolean allowClose) |
void |
setAllowDelete(boolean allowDelete) |
void |
setAllowNew(boolean allowNew) |
void |
setAllowSearch(boolean allowSearch) |
void |
setAllowUpdate(boolean allowUpdate) |
void |
setCurrentIndex(int index)
Set the current element of form.
|
void |
setFormSize(int width,
int height) |
void |
setReadOnly(boolean readOnly) |
void |
setValues(DynObjectSet values) |
void |
setValues(java.util.List values) |
addActionToPopupMenu, addListener, addSeparatorToPopupMenu, allowClose, allowDelete, allowNew, allowSearch, allowUpdate, callUserEvent, confirmDialog, countValues, fireCloseEvent, fireFormMovedToEvent, fireMessageEvent, getContext, getDefinition, getFactory, getLayoutMode, getManager, getServiceManager, getTagValueAsBoolean, getTagValueAsInt, getUseScrollBars, isAutosave, isInNewState, isReadOnly, loadDefaultValueFromTags, removeListener, setAutosave, setLayoutMode, setUseScrollBarspublic BaseJDynFormSet(DynFormSPIManager manager, JDynFormSetFactory factory, JDynForm.DynFormContext context, DynFormDefinition definition, Tags contextTags)
public javax.swing.JComponent asJComponent()
ComponentJComponent.asJComponent in interface ComponentJComponentpublic JDynForm getForm()
getForm in interface JDynFormSetgetForm in class AbstractJDynFormSetpublic javax.swing.JLabel getMessagesJLabel()
public void message()
message in interface JDynFormSetmessage in class AbstractJDynFormSetpublic void message(java.lang.String msg)
message in interface JDynForm.JDynFormListenermessage in interface JDynFormSetmessage in class AbstractJDynFormSetpublic void setAllowDelete(boolean allowDelete)
setAllowDelete in interface JDynFormSetsetAllowDelete in class AbstractJDynFormSetpublic void setAllowNew(boolean allowNew)
setAllowNew in interface JDynFormSetsetAllowNew in class AbstractJDynFormSetpublic void setAllowSearch(boolean allowSearch)
setAllowSearch in interface JDynFormSetsetAllowSearch in class AbstractJDynFormSetpublic void setAllowUpdate(boolean allowUpdate)
setAllowUpdate in interface JDynFormSetsetAllowUpdate in class AbstractJDynFormSetpublic void setAllowClose(boolean allowClose)
setAllowClose in interface JDynFormSetsetAllowClose in class AbstractJDynFormSetpublic void setValues(java.util.List values)
setValues in interface JDynFormSetsetValues in class AbstractJDynFormSetpublic void setValues(DynObjectSet values)
setValues in interface JDynFormSetsetValues in class AbstractJDynFormSetpublic void setReadOnly(boolean readOnly)
setReadOnly in interface JDynFormSetsetReadOnly in class AbstractJDynFormSetpublic boolean doActionFirst()
doActionFirst in interface FormSetButtonBar.FormSetListenerpublic boolean doActionPrevious()
doActionPrevious in interface FormSetButtonBar.FormSetListenerpublic boolean doActionNext()
doActionNext in interface FormSetButtonBar.FormSetListenerpublic boolean doActionLast()
doActionLast in interface FormSetButtonBar.FormSetListenerpublic boolean doActionSave()
doActionSave in interface FormSetButtonBar.FormSetListenerpublic boolean doActionNew()
doActionNew in interface FormSetButtonBar.FormSetListenerpublic boolean doActionCancelNew()
doActionCancelNew in interface FormSetButtonBar.FormSetListenerprotected void enterStateNew()
enterStateNew in class AbstractJDynFormSetprotected void leaveTheNewState()
leaveTheNewState in class AbstractJDynFormSetpublic boolean doActionDelete()
doActionDelete in interface FormSetButtonBar.FormSetListenerpublic boolean doActionSearch()
doActionSearch in interface FormSetButtonBar.FormSetListenerpublic boolean doActionClose()
doActionClose in interface FormSetButtonBar.FormSetListenerpublic void doSetCurrentRecord(int index)
doSetCurrentRecord in interface FormSetButtonBar.FormSetListenerpublic javax.swing.JPopupMenu getFormsetPopupMenu()
public void setFormSize(int width,
int height)
setFormSize in interface JDynFormSetsetFormSize in class AbstractJDynFormSetpublic int getCurrentIndex()
getCurrentIndex in interface JDynFormSetpublic void setCurrentIndex(int index)
JDynFormSetsetCurrentIndex in interface JDynFormSetpublic void fieldChanged(JDynFormField field)
JDynForm.JDynFormListenerfieldChanged in interface JDynForm.JDynFormListenerpublic DynObject get(int position)
get in interface JDynFormSetget in class AbstractJDynFormSetpublic java.util.List getValues()
getValues in interface JDynFormSetpublic boolean hasValidValues()
hasValidValues in interface JDynFormSetpublic boolean hasValidValues(java.util.List<java.lang.String> fieldsName)
hasValidValues in interface JDynFormSetpublic void clear()
public void getFormValues(DynObject values)
getFormValues in interface JDynFormSetgetFormValues in class AbstractJDynFormSetpublic void addAction(javax.swing.Action action)
addAction in interface JDynFormSetpublic javax.swing.Action getAction(java.lang.String actionId)
getAction in interface JDynFormSetpublic java.util.List<javax.swing.Action> getActions()
getActions in interface JDynFormSetpublic void setActionVisible(java.lang.String action,
boolean visible)
setActionVisible in interface JDynFormSetpublic void setActionEnabled(java.lang.String action,
boolean enabled)
setActionEnabled in interface JDynFormSetpublic boolean isActionEnabled(java.lang.String action)
isActionEnabled in interface JDynFormSetpublic boolean isActionVisible(java.lang.String action)
isActionVisible in interface JDynFormSetpublic javax.swing.JComponent getActionButton(java.lang.String action)
getActionButton in interface JDynFormSetpublic void fireEvent(java.lang.String action,
java.lang.Object value)
fireEvent in interface JDynFormSetfireEvent in class AbstractJDynFormSet