@Deprecated public class TLcdBeanEditAction extends ALcdAction implements ILcdAction
ILcdAction
will attempt to open a Dialog
for editing
a given bean set using the setObject method. If a Customizer
has been defined
for the bean, this one will be instantiated, put in a Dialog, which will
be set visible when the ILcdAction
will be triggered (actionPerformed()).
If no Customizer
has been defined, this ILcdAction
will
create a TLcdPropertySheet
for editing the bean properties that it was able
to find through introspection. For both, this ILcdAction
makes use of a
TLcdBeanGUIFactory
instance.changeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdBeanEditAction()
Deprecated.
Default constructor.
|
TLcdBeanEditAction(Object aBean)
Deprecated.
Constructor with the bean to edit.
|
TLcdBeanEditAction(Object aBean,
Frame aParentFrame)
Deprecated.
|
TLcdBeanEditAction(PropertyEditor aPropertyEditor)
Deprecated.
Constructor with the bean to edit and a
Frame to be used as parent Frame
by the Dialog. |
TLcdBeanEditAction(PropertyEditor aPropertyEditor,
Frame aParentFrame)
Deprecated.
Constructor with a
PropertyEditor that support custom editor. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Deprecated.
|
void |
actionPerformed(EventObject e)
Deprecated.
|
protected void |
actionPerformedWithPropertyEditor(EventObject e)
Deprecated.
|
String |
getDialogTitle()
Deprecated.
|
Object |
getObject()
Deprecated.
Get the
Object to be edited each time this ILcdAction is triggered. |
Frame |
getParentFrame()
Deprecated.
|
PropertyEditor |
getPropertyEditor()
Deprecated.
|
boolean |
isDialogModal()
Deprecated.
|
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setDialogModal(boolean aDialogModal)
Deprecated.
|
void |
setDialogTitle(String aDialogTitle)
Deprecated.
|
void |
setObject(Object aObject)
Deprecated.
Sets the
Object to edit each time this ILcdAction will be triggered. |
void |
setParentFrame(Frame aParentFrame)
Deprecated.
Sets a parent
Frame to be used by the Dialog that will be created
when calling actionPerformed(ActionEvent) . |
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, registerInstance, removePropertyChangeListener, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValue, isEnabled, putValue, setEnabled
addPropertyChangeListener, removePropertyChangeListener
public TLcdBeanEditAction()
public TLcdBeanEditAction(Object aBean)
public TLcdBeanEditAction(PropertyEditor aPropertyEditor)
Frame
to be used as parent Frame
by the Dialog.public TLcdBeanEditAction(PropertyEditor aPropertyEditor, Frame aParentFrame)
PropertyEditor
that support custom editor.aPropertyEditor
- a PropertyEditor
that must support custom editor.public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.setTraceOn
in class ALcdAction
aTraceOn
- if true then all log messages are recorded for this
instance. If false, then only the informative, warning and
error log messages are recorded.public boolean isTraceOn()
true
if tracing is enabled for this class.isTraceOn
in class ALcdAction
public PropertyEditor getPropertyEditor()
public void setDialogTitle(String aDialogTitle)
public String getDialogTitle()
public void setParentFrame(Frame aParentFrame)
Frame
to be used by the Dialog
that will be created
when calling actionPerformed(ActionEvent)
.public Frame getParentFrame()
public void setObject(Object aObject)
Object
to edit each time this ILcdAction
will be triggered.public Object getObject()
Object
to be edited each time this ILcdAction
is triggered.public void setDialogModal(boolean aDialogModal)
public boolean isDialogModal()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void actionPerformed(EventObject e)
protected void actionPerformedWithPropertyEditor(EventObject e)