public abstract class AbstractJDynFormSet extends Object implements JDynFormSet, Service
JDynFormSet.JDynFormSetListener| Modifier and Type | Field and Description |
|---|---|
protected List<ActionStore> |
actionsBuffer |
protected boolean |
autosave |
protected JComponent |
contents |
protected DynFormDefinition |
definition |
protected int |
formHeight |
protected int |
formWidth |
protected int |
layoutMode |
protected VisitableSet |
listeners |
protected DynFormSPIManager |
manager |
protected boolean |
readOnly |
protected List<DynObject> |
values |
USE_PLAIN, USE_SEPARATORS, USE_TABS| Constructor and Description |
|---|
AbstractJDynFormSet(ServiceManager manager,
DynFormDefinition definition) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionToPopupMenu(DataType tipo,
String name,
Action action) |
void |
addListener(JDynFormSet.JDynFormSetListener listener) |
void |
addSeparatorToPopupMenu(DataType tipo) |
boolean |
allowClose() |
boolean |
allowDelete() |
boolean |
allowNew() |
boolean |
allowSearch() |
boolean |
allowUpdate() |
protected int |
confirmDialog(String message,
String title,
int optionType,
int messageType) |
int |
countValues() |
protected void |
enterStateNew() |
protected void |
fireCloseEvent() |
protected void |
fireFormMovedToEvent(int position) |
protected void |
fireMessageEvent(String message) |
DynObject |
get(int position) |
void |
getFormValues(DynObject values) |
int |
getLayoutMode() |
Manager |
getManager()
Returns a reference to the
Manager which manages this server. |
DynFormSPIManager |
getServiceManager() |
protected boolean |
getTagValueAsBoolean(String tagname,
boolean defaultVaue) |
protected int |
getTagValueAsInt(String tagname,
int defaultVaue) |
boolean |
getUseScrollBars() |
boolean |
isAutosave() |
boolean |
isInNewState() |
boolean |
isReadOnly() |
protected void |
leaveTheNewState() |
void |
loadDefaultValueFromTags(Tags tags) |
void |
message() |
void |
message(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(List values) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAction, getCurrentIndex, getValues, hasValidValues, hasValidValues, setCurrentIndexasJComponentprotected DynFormSPIManager manager
protected DynFormDefinition definition
protected JComponent contents
protected VisitableSet listeners
protected boolean readOnly
protected boolean autosave
protected int layoutMode
protected int formWidth
protected int formHeight
protected List<ActionStore> actionsBuffer
public AbstractJDynFormSet(ServiceManager manager, DynFormDefinition definition) throws ServiceException
ServiceExceptionpublic 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(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(String message, 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) throws ServiceException
setValues in interface JDynFormSetServiceExceptionpublic void setValues(List values) throws ServiceException
setValues in interface JDynFormSetServiceExceptionpublic DynObject get(int position)
get in interface JDynFormSetpublic void addActionToPopupMenu(DataType tipo, String name, 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 Manager getManager()
ServiceManager which manages this server.getManager in interface ServiceManagerpublic DynFormSPIManager getServiceManager()
public void message()
message in interface JDynFormSetpublic void message(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(String tagname, int defaultVaue)
protected boolean getTagValueAsBoolean(String tagname, boolean defaultVaue)