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, wait
addAction, getCurrentIndex, getValues, hasValidValues, hasValidValues, setCurrentIndex
asJComponent
protected 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
ServiceException
public void loadDefaultValueFromTags(Tags tags)
public boolean isInNewState()
isInNewState
in interface JDynFormSet
protected void enterStateNew()
protected void leaveTheNewState()
public void addListener(JDynFormSet.JDynFormSetListener listener)
addListener
in interface JDynFormSet
public void removeListener(JDynFormSet.JDynFormSetListener listener)
removeListener
in interface JDynFormSet
protected void fireMessageEvent(String message)
protected void fireCloseEvent()
protected void fireFormMovedToEvent(int position)
public int getLayoutMode()
getLayoutMode
in interface JDynFormSet
public void setLayoutMode(int layoutMode)
setLayoutMode
in interface JDynFormSet
public boolean isReadOnly()
isReadOnly
in interface JDynFormSet
public void setReadOnly(boolean readOnly)
setReadOnly
in interface JDynFormSet
public boolean isAutosave()
isAutosave
in interface JDynFormSet
public void setAutosave(boolean autosave)
setAutosave
in interface JDynFormSet
protected int confirmDialog(String message, String title, int optionType, int messageType)
public void setFormSize(int width, int height)
setFormSize
in interface JDynFormSet
public int countValues()
countValues
in interface JDynFormSet
public void setValues(DynObjectSet values) throws ServiceException
setValues
in interface JDynFormSet
ServiceException
public void setValues(List values) throws ServiceException
setValues
in interface JDynFormSet
ServiceException
public DynObject get(int position)
get
in interface JDynFormSet
public void addActionToPopupMenu(DataType tipo, String name, Action action)
addActionToPopupMenu
in interface JDynFormSet
public void addSeparatorToPopupMenu(DataType tipo)
addSeparatorToPopupMenu
in interface JDynFormSet
public void setUseScrollBars(boolean usesScrolls)
setUseScrollBars
in interface JDynFormSet
public boolean getUseScrollBars()
getUseScrollBars
in interface JDynFormSet
public Manager getManager()
Service
Manager
which manages this server.getManager
in interface Service
Manager
public DynFormSPIManager getServiceManager()
public void message()
message
in interface JDynFormSet
public void message(String msg)
message
in interface JDynFormSet
public boolean allowUpdate()
allowUpdate
in interface JDynFormSet
public boolean allowClose()
allowClose
in interface JDynFormSet
public boolean allowDelete()
allowDelete
in interface JDynFormSet
public boolean allowNew()
allowNew
in interface JDynFormSet
public boolean allowSearch()
allowSearch
in interface JDynFormSet
public void setAllowUpdate(boolean allowUpdate)
setAllowUpdate
in interface JDynFormSet
public void setAllowDelete(boolean allowDelete)
setAllowDelete
in interface JDynFormSet
public void setAllowNew(boolean allowNew)
setAllowNew
in interface JDynFormSet
public void setAllowSearch(boolean allowSearch)
setAllowSearch
in interface JDynFormSet
public void setAllowClose(boolean allowClose)
setAllowClose
in interface JDynFormSet
public void getFormValues(DynObject values)
getFormValues
in interface JDynFormSet
protected int getTagValueAsInt(String tagname, int defaultVaue)
protected boolean getTagValueAsBoolean(String tagname, boolean defaultVaue)