|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.MouseAdapter orbital.awt.CustomizerViewController
public class CustomizerViewController
This class is a CustomizerViewController that can be registered to a Bean and controls showing a Customizer on double-click.
A
default customizer
is used, if no
Bean-specific customizer has been registered in the BeanInfo class,
or no BeanInfo class is available at all. This default customizer
is a fully-automatic generic bean customizer and already possesses
most features of a good adjustment dialog for customization
by the user. While for complex dialogs, it can even be extended by
providing advanced information in a BeanInfo class, or by registering new PropertyEditors
to the system.
Constructor Summary | |
---|---|
CustomizerViewController(java.awt.Frame parent)
|
|
CustomizerViewController(java.awt.Frame parent,
java.lang.String title)
|
Method Summary | |
---|---|
static java.beans.Customizer |
customizerFor(java.lang.Class beanClass)
Get the Customizer for a specific bean class. |
java.awt.Frame |
getParent()
|
java.lang.String |
getTitle()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
static void |
setDefaultCustomizerFactory(Function newDefaultCustomizerFactory)
Set the factory for default customizers. |
void |
setParent(java.awt.Frame p)
|
void |
setTitle(java.lang.String title)
|
void |
showCustomizer(java.awt.Component custom,
java.lang.String displayName)
Called to show a customization dialog containing the specified component with the specified display name. |
void |
showCustomizer(java.lang.Object bean)
|
void |
showCustomizer(java.lang.Object bean,
java.lang.String displayName)
Call to show a dialog containing the customizer for a specific bean. |
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.MouseListener |
---|
mouseEntered, mouseExited, mousePressed, mouseReleased |
Constructor Detail |
---|
public CustomizerViewController(java.awt.Frame parent, java.lang.String title)
public CustomizerViewController(java.awt.Frame parent)
Method Detail |
---|
public java.awt.Frame getParent()
public void setParent(java.awt.Frame p)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public static final void setDefaultCustomizerFactory(Function newDefaultCustomizerFactory)
Class
) for which it
should instantiate a new default customizer
. That customizer
is used for beans that do not have a specified bean-specific customizer.
public void showCustomizer(java.lang.Object bean, java.lang.String displayName)
Will check to see if bean has a customizer specified
in its BeanInfo.
Otherwise, will use a default customizer
.
bean
- the bean to show a customizer for. Can also be a (short) array of beans.displayName
- the name to display for the bean, or null
for autodetect.showCustomizer(Component, String)
,
customizerFor(Class)
public void showCustomizer(java.lang.Object bean)
public void showCustomizer(java.awt.Component custom, java.lang.String displayName)
public static final java.beans.Customizer customizerFor(java.lang.Class beanClass) throws java.beans.IntrospectionException
Will check to see if bean has a customizer specified
in its BeanInfo.
Otherwise, will use a default customizer
.
java.beans.IntrospectionException
BeanDescriptor.getCustomizerClass()
,
DefaultCustomizer
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class java.awt.event.MouseAdapter
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |