public class DefaultJFeaturesForm extends java.lang.Object implements JFeaturesForm, Disposable
Modifier and Type | Class and Description |
---|---|
static class |
DefaultJFeaturesForm.MyFeaturesFormContext |
ACTION_CONTEXT_NAME, FINISHEDITING_ACTION, REFRESHFORM_ACTION, STARTEDITING_ACTION
Constructor and Description |
---|
DefaultJFeaturesForm() |
Modifier and Type | Method and Description |
---|---|
void |
addAction(javax.swing.Action action) |
void |
addActionListener(java.awt.event.ActionListener listener) |
javax.swing.JComponent |
asJComponent()
Returns this component as a swing
JComponent . |
void |
bind(FeatureStore store) |
void |
bind(FeatureStore store,
DynClass definition) |
void |
bind(FeatureStore store,
DynClass definition,
FeatureQuery query) |
protected void |
callUserEvent(java.lang.String name,
java.lang.Object... args) |
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
void |
fireActionEvent(java.awt.event.ActionEvent event) |
Feature |
get(long index) |
java.awt.event.ActionListener[] |
getActionListeners() |
Feature |
getCurrentFeature() |
long |
getCurrentIndex() |
long |
getDataSetSize() |
FeatureStore |
getFeatureStore() |
FeatureType |
getFeatureType() |
JDynFormSet |
getFormset() |
boolean |
hasActionListeners() |
void |
hideForm() |
boolean |
isTerminateEditingOnClose() |
void |
removeActionListener(java.awt.event.ActionListener listener) |
void |
removeAllActionListener() |
void |
saveChanges() |
static void |
selfRegister() |
void |
setPreferredSize(java.awt.Dimension dimension) |
void |
setQuery(FeatureQuery query) |
void |
setTerminateEditingOnClose(boolean b) |
void |
showForm(java.lang.String title,
WindowManager.MODE mode) |
void |
showForm(WindowManager.MODE mode) |
public static void selfRegister()
public void setPreferredSize(java.awt.Dimension dimension)
setPreferredSize
in interface JFeaturesForm
public javax.swing.JComponent asJComponent()
Component
JComponent
.asJComponent
in interface Component
JComponent
public void bind(FeatureStore store)
bind
in interface JFeaturesForm
public void bind(FeatureStore store, DynClass definition)
public void bind(FeatureStore store, DynClass definition, FeatureQuery query)
public void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public JDynFormSet getFormset()
getFormset
in interface JFeaturesForm
public void addAction(javax.swing.Action action)
addAction
in interface JFeaturesForm
public long getCurrentIndex()
getCurrentIndex
in interface JFeaturesForm
public Feature get(long index)
get
in interface JFeaturesForm
public void setQuery(FeatureQuery query)
setQuery
in interface JFeaturesForm
public void showForm(WindowManager.MODE mode)
showForm
in interface JFeaturesForm
public void showForm(java.lang.String title, WindowManager.MODE mode)
showForm
in interface JFeaturesForm
public void hideForm()
hideForm
in interface JFeaturesForm
public void saveChanges()
saveChanges
in interface JFeaturesForm
public long getDataSetSize()
getDataSetSize
in interface JFeaturesForm
public FeatureStore getFeatureStore()
getFeatureStore
in interface JFeaturesForm
public FeatureType getFeatureType()
public void addActionListener(java.awt.event.ActionListener listener)
addActionListener
in interface ActionListenerSupport
public java.awt.event.ActionListener[] getActionListeners()
getActionListeners
in interface ActionListenerSupport
public void removeActionListener(java.awt.event.ActionListener listener)
removeActionListener
in interface ActionListenerSupport
public void removeAllActionListener()
removeAllActionListener
in interface ActionListenerSupport
public void fireActionEvent(java.awt.event.ActionEvent event)
fireActionEvent
in interface ActionListenerSupport
public boolean hasActionListeners()
hasActionListeners
in interface ActionListenerSupport
public Feature getCurrentFeature()
getCurrentFeature
in interface JFeaturesForm
protected void callUserEvent(java.lang.String name, java.lang.Object... args)
public void setTerminateEditingOnClose(boolean b)
setTerminateEditingOnClose
in interface JFeaturesForm
public boolean isTerminateEditingOnClose()
isTerminateEditingOnClose
in interface JFeaturesForm