@Deprecated public class TLcdMultiBeanEditorPanel extends Object implements ItemSelectable
Panel
allows to select one among several registered beans from a Choice,
and edit its properties in a sub-Panel, either using the bean Customizer
if
it has one, or a TLcdPropertySheet
.
The method register(String,Object)
allows to register a bean in the Choice
list
using the given String. The method register(Object)
registers the given
bean using the displayName property of its property descriptor.
TLcdBeanGUIFactory
,
Customizer
Constructor and Description |
---|
TLcdMultiBeanEditorPanel()
Deprecated.
Default constructor.
|
TLcdMultiBeanEditorPanel(String aLabel)
Deprecated.
Constructor with a
String to display next to the bean choice. |
Modifier and Type | Method and Description |
---|---|
void |
addItemListener(ItemListener aListener)
Deprecated.
Adds a listener to receive item events when the state of
an item changes.
|
void |
addObject(Object aObject)
Deprecated.
Add a bean in the Choice.
|
void |
addObject(String aLabel,
Object aObject)
Deprecated.
Add a bean in the
Choice using the given String. |
void |
addPropertyChangeListener(PropertyChangeListener aListener)
Deprecated.
Registers a listener for the PropertyChange event.
|
void |
editSelectedBean()
Deprecated.
Defines how to edit the bean which name is currently selected in the Choice.
|
protected void |
fireItemSelectedEvents()
Deprecated.
Fires an ItemEvent to all registered
ItemListener with the current selected
bean. |
Component |
getComponent()
Deprecated.
|
Object |
getCurrentEditedObject()
Deprecated.
|
Object[] |
getSelectedObjects()
Deprecated.
Returns the selected items or
null if no items are selected. |
Window |
getWindowToPack()
Deprecated.
Gets the
Window to be packed each time a new bean has been selected in the
Choice, or null if none has been set. |
boolean |
isAutoUpdateFromPropertyEditors()
Deprecated.
Tests if the AutoUpdateFromPropertyEditors property is
true or not. |
boolean |
isButtonPanelVisible()
Deprecated.
Tests if the OK, Apply, Cancel
Button Panel is currently visible. |
boolean |
isTopContainerVisible()
Deprecated.
|
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
boolean |
isVisible()
Deprecated.
|
void |
removeItemListener(ItemListener aListener)
Deprecated.
Removes an item listener.
|
void |
removePropertyChangeListener(PropertyChangeListener aListener)
Deprecated.
Removes a listener for the PropertyChange event.
|
void |
replaceObjectByClass(Object aObject)
Deprecated.
This method will replace by aObject, all the registered instances which
Class is the same as
aObject.getClass() (using =). |
void |
setAutoUpdateFromPropertyEditors(boolean aBoolean)
Deprecated.
Only valid when the selected bean has no
Customizer and is therefore
edited with an instance of ILcdPropertySheet . |
void |
setButtonPanelVisible(boolean aButtonPanelVisible)
Deprecated.
Asks the OK, Apply, Cancel
Button Panel to be visible or not. |
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setTopContainerVisible(boolean aTopContainerVisible)
Deprecated.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setVisible(boolean aVisible)
Deprecated.
|
void |
setWindowToPack(Window aWindowToPack)
Deprecated.
Sets a
Window to be packed each time a new bean has been selected in the
Choice. |
protected void |
updateChoice()
Deprecated.
Defines how to update the Choice.
|
public TLcdMultiBeanEditorPanel()
public TLcdMultiBeanEditorPanel(String aLabel)
String
to display next to the bean choice.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.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.public Component getComponent()
public boolean isTopContainerVisible()
public void setTopContainerVisible(boolean aTopContainerVisible)
public boolean isVisible()
public void setVisible(boolean aVisible)
public void addObject(Object aObject)
String
used will be the displayName property
of its property descriptor.public void addObject(String aLabel, Object aObject)
Choice
using the given String.public Object getCurrentEditedObject()
public void replaceObjectByClass(Object aObject)
aObject.getClass()
(using =).protected void updateChoice()
public void setWindowToPack(Window aWindowToPack)
Window
to be packed each time a new bean has been selected in the
Choice.public Window getWindowToPack()
Window
to be packed each time a new bean has been selected in the
Choice, or null
if none has been set.public boolean isAutoUpdateFromPropertyEditors()
true
or not.public void setAutoUpdateFromPropertyEditors(boolean aBoolean)
Customizer
and is therefore
edited with an instance of ILcdPropertySheet
.
If true
, the property values will be automatically set to the selected bean
each time one of its property value (copy) has been changed by the
corresponding PropertyEditor
(the PropertyEditor
fires then a
PropertyChangeEvent).
protected void fireItemSelectedEvents()
ItemListener
with the current selected
bean.public void editSelectedBean()
Customizer
is used, if the bean has defined one, or a
ILcdPropertySheet
.BeanInfo
,
ILcdPropertySheet
public boolean isButtonPanelVisible()
Button
Panel
is currently visible.public void setButtonPanelVisible(boolean aButtonPanelVisible)
Button
Panel
to be visible or not.public Object[] getSelectedObjects()
null
if no items are selected.getSelectedObjects
in interface ItemSelectable
public void addItemListener(ItemListener aListener)
addItemListener
in interface ItemSelectable
aListener
- the listener to receive events.public void removeItemListener(ItemListener aListener)
removeItemListener
in interface ItemSelectable
aListener
- the listener being removed.public void addPropertyChangeListener(PropertyChangeListener aListener)
aListener
- an object to be invoked when a PropertyChange event is fired.public void removePropertyChangeListener(PropertyChangeListener aListener)
aListener
- the PropertyChange listener to be removed.