public abstract class AbstractJDynFormSet extends java.lang.Object implements JDynFormSet
JDynFormSet.JDynFormSetListener| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<ActionStore> |
actionsBuffer |
protected boolean |
autosave |
protected javax.swing.JComponent |
contents |
protected int |
formHeight |
protected int |
formWidth |
protected int |
layoutMode |
protected VisitableSet |
listeners |
protected static Logger |
LOGGER |
protected boolean |
readOnly |
protected java.util.List<DynObject> |
values |
ACTION_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 |
|---|
AbstractJDynFormSet(DynFormSPIManager manager,
JDynFormSetFactory factory,
JDynForm.DynFormContext context,
DynFormDefinition definition,
Tags contextTags) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionToPopupMenu(DataType tipo,
java.lang.String name,
javax.swing.Action action) |
void |
addListener(JDynFormSet.JDynFormSetListener listener) |
void |
addSeparatorToPopupMenu(DataType tipo) |
boolean |
allowClose() |
boolean |
allowDelete() |
boolean |
allowNew() |
boolean |
allowSearch() |
boolean |
allowUpdate() |
protected void |
callUserEvent(java.lang.String name,
java.lang.Object... args) |
protected int |
confirmDialog(java.lang.String message,
java.lang.String title,
int optionType,
int messageType) |
int |
countValues() |
protected void |
enterStateNew() |
protected void |
fireCloseEvent() |
void |
fireEvent(java.lang.String action,
java.lang.Object value) |
protected void |
fireFormMovedToEvent(int position) |
protected void |
fireMessageEvent(java.lang.String message) |
DynObject |
get(int position) |
protected JDynForm.DynFormContext |
getContext() |
protected DynFormDefinition |
getDefinition() |
protected JDynFormSetFactory |
getFactory() |
JDynForm |
getForm() |
void |
getFormValues(DynObject values) |
int |
getLayoutMode() |
DynFormSPIManager |
getManager() |
DynFormSPIManager |
getServiceManager() |
protected boolean |
getTagValueAsBoolean(java.lang.String tagname,
boolean defaultVaue) |
protected int |
getTagValueAsInt(java.lang.String tagname,
int defaultVaue) |
boolean |
getUseScrollBars() |
boolean |
isAutosave() |
boolean |
isInNewState() |
boolean |
isReadOnly() |
protected void |
leaveTheNewState() |
void |
loadDefaultValueFromTags(Tags tags) |
void |
message() |
void |
message(java.lang.String msg) |
void |
removeListener(JDynFormSet.JDynFormSetListener listener) |
void |
setAllowClose(boolean allowClose) |
void |
setAllowDelete(boolean allowDelete) |
void |
setAllowNew(boolean allowNew) |
void |
setAllowSearch(boolean allowSearch) |
void |
setAllowUpdate(boolean allowUpdate) |
void |
setAutosave(boolean autosave) |
void |
setFormSize(int width,
int height) |
void |
setLayoutMode(int layoutMode) |
void |
setReadOnly(boolean readOnly) |
void |
setUseScrollBars(boolean usesScrolls) |
void |
setValues(DynObjectSet values) |
void |
setValues(java.util.List values) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAction, getAction, getActionButton, getActions, getCurrentIndex, getValues, hasValidValues, hasValidValues, isActionEnabled, isActionVisible, setActionEnabled, setActionVisible, setCurrentIndexasJComponentprotected static final Logger LOGGER
protected javax.swing.JComponent contents
protected java.util.List<DynObject> values
protected VisitableSet listeners
protected boolean readOnly
protected boolean autosave
protected int layoutMode
protected int formWidth
protected int formHeight
protected java.util.List<ActionStore> actionsBuffer
public AbstractJDynFormSet(DynFormSPIManager manager, JDynFormSetFactory factory, JDynForm.DynFormContext context, DynFormDefinition definition, Tags contextTags)
public JDynForm getForm()
getForm in interface JDynFormSetpublic void fireEvent(java.lang.String action,
java.lang.Object value)
fireEvent in interface JDynFormSetprotected JDynFormSetFactory getFactory()
protected DynFormDefinition getDefinition()
protected JDynForm.DynFormContext getContext()
public DynFormSPIManager getManager()
public void loadDefaultValueFromTags(Tags tags)
public boolean isInNewState()
isInNewState in interface JDynFormSetprotected void enterStateNew()
protected void leaveTheNewState()
public void addListener(JDynFormSet.JDynFormSetListener listener)
addListener in interface JDynFormSetpublic void removeListener(JDynFormSet.JDynFormSetListener listener)
removeListener in interface JDynFormSetprotected void fireMessageEvent(java.lang.String message)
protected void fireCloseEvent()
protected void fireFormMovedToEvent(int position)
public int getLayoutMode()
getLayoutMode in interface JDynFormSetpublic void setLayoutMode(int layoutMode)
setLayoutMode in interface JDynFormSetpublic boolean isReadOnly()
isReadOnly in interface JDynFormSetpublic void setReadOnly(boolean readOnly)
setReadOnly in interface JDynFormSetpublic boolean isAutosave()
isAutosave in interface JDynFormSetpublic void setAutosave(boolean autosave)
setAutosave in interface JDynFormSetprotected int confirmDialog(java.lang.String message,
java.lang.String title,
int optionType,
int messageType)
public void setFormSize(int width,
int height)
setFormSize in interface JDynFormSetpublic int countValues()
countValues in interface JDynFormSetpublic void setValues(DynObjectSet values)
setValues in interface JDynFormSetpublic void setValues(java.util.List values)
setValues in interface JDynFormSetpublic DynObject get(int position)
get in interface JDynFormSetpublic void addActionToPopupMenu(DataType tipo, java.lang.String name, javax.swing.Action action)
addActionToPopupMenu in interface JDynFormSetpublic void addSeparatorToPopupMenu(DataType tipo)
addSeparatorToPopupMenu in interface JDynFormSetpublic void setUseScrollBars(boolean usesScrolls)
setUseScrollBars in interface JDynFormSetpublic boolean getUseScrollBars()
getUseScrollBars in interface JDynFormSetpublic DynFormSPIManager getServiceManager()
public void message()
message in interface JDynFormSetpublic void message(java.lang.String msg)
message in interface JDynFormSetpublic boolean allowUpdate()
allowUpdate in interface JDynFormSetpublic boolean allowClose()
allowClose in interface JDynFormSetpublic boolean allowDelete()
allowDelete in interface JDynFormSetpublic boolean allowNew()
allowNew in interface JDynFormSetpublic boolean allowSearch()
allowSearch in interface JDynFormSetpublic void setAllowUpdate(boolean allowUpdate)
setAllowUpdate in interface JDynFormSetpublic void setAllowDelete(boolean allowDelete)
setAllowDelete in interface JDynFormSetpublic void setAllowNew(boolean allowNew)
setAllowNew in interface JDynFormSetpublic void setAllowSearch(boolean allowSearch)
setAllowSearch in interface JDynFormSetpublic void setAllowClose(boolean allowClose)
setAllowClose in interface JDynFormSetpublic void getFormValues(DynObject values)
getFormValues in interface JDynFormSetprotected int getTagValueAsInt(java.lang.String tagname,
int defaultVaue)
protected boolean getTagValueAsBoolean(java.lang.String tagname,
boolean defaultVaue)
protected void callUserEvent(java.lang.String name,
java.lang.Object... args)