|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
net.sf.jzeno.echo.components.CustomComponent
net.sf.jzeno.echo.editor.ClassNameEditor
public class ClassNameEditor
An editor that allows you to enter a fully qualified class name. It is validates that the entered class exists on the classpath. Furthermore it can validate that the entered class is actually a subclass of a given base class or implements a given interface.
| Nested Class Summary | |
|---|---|
class |
ClassNameEditor.DefaultValidator
|
| Field Summary | |
|---|---|
static int |
CHARACTER_UNITS
|
static int |
PERCENT_UNITS
|
static int |
PIXEL_UNITS
|
| Constructor Summary | |
|---|---|
ClassNameEditor()
|
|
ClassNameEditor(java.lang.Class beanClass,
java.lang.String propertyPath,
java.lang.String constructionHints)
|
|
| Method Summary | |
|---|---|
void |
applyContext()
|
void |
close()
|
void |
focusList()
|
Color |
getBackground()
Returns the background color of the component. |
java.lang.String |
getClassName()
|
Color |
getForeground()
Returns the foreground of the component. |
ImageReference |
getIcon()
|
java.lang.String |
getIconName()
|
java.lang.String |
getInvalidMessage()
|
int |
getMinimumCharactersForSearch()
|
java.lang.Class |
getRequiredBaseClass()
|
java.lang.Class |
getRequiredInterface()
|
CodeCompletionEntry |
getSelectedEntry()
|
java.lang.String |
getToolTipText()
|
int |
getWidth()
Gets the width of the text field. |
int |
getWidthUnits()
Gets the units in which width is specified. |
boolean |
isAllowInterface()
|
boolean |
isRequired()
Query if the editor is required to be filled in. |
void |
open()
|
void |
selectEntry()
|
void |
setAllowInterface(boolean allowInterface)
Allow users to enter the name of an interface ? |
void |
setBackground(Color color)
Sets the background color of the component. |
void |
setClassName(java.lang.String className)
|
void |
setForeground(Color color)
Sets the foreground color of the component. |
void |
setIcon(ImageReference imageRef)
|
void |
setIconName(java.lang.String iconName)
|
void |
setInvalidMessage(java.lang.String invalidMessage)
|
void |
setMinimumCharactersForSearch(int minimumCharactersForSearch)
A minimum of the speficied number of characters must be entered before a search is performed. |
void |
setReadOnly(boolean readOnly)
Mark this component as read-only. |
void |
setRequired(boolean required)
Determine if the editor is required to be filled in. |
void |
setRequiredBaseClass(java.lang.Class requiredBaseClass)
|
void |
setRequiredInterface(java.lang.Class requiredInterface)
|
void |
setSelectedEntry(CodeCompletionEntry selectedEntry)
|
void |
setToolTipText(java.lang.String toolTipText)
|
void |
setWidth(int width)
Sets the width of the text field. |
void |
setWidthUnits(int units)
Sets the units in which width is specified. |
void |
showEntries()
|
void |
showEntries(boolean closeIfOpen)
|
| Methods inherited from class net.sf.jzeno.echo.components.CustomComponent |
|---|
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getActionCommand, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isValid, markInvalid, markValid, preRender, rebind, removeValidator, setActionCommand, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setValue, traceValue, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PERCENT_UNITS
public static final int PIXEL_UNITS
public static final int CHARACTER_UNITS
| Constructor Detail |
|---|
public ClassNameEditor()
public ClassNameEditor(java.lang.Class beanClass,
java.lang.String propertyPath,
java.lang.String constructionHints)
| Method Detail |
|---|
public void focusList()
public void open()
public void close()
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
public java.lang.Class getRequiredInterface()
public void setRequiredInterface(java.lang.Class requiredInterface)
public java.lang.Class getRequiredBaseClass()
public void setRequiredBaseClass(java.lang.Class requiredBaseClass)
public java.lang.String getInvalidMessage()
public void setInvalidMessage(java.lang.String invalidMessage)
public void setRequired(boolean required)
PropertyComponentDetermine if the editor is required to be filled in.
setRequired in interface PropertyComponentsetRequired in class CustomComponentpublic boolean isRequired()
PropertyComponentQuery if the editor is required to be filled in.
isRequired in interface PropertyComponentisRequired in class CustomComponentpublic void showEntries()
public void showEntries(boolean closeIfOpen)
public void selectEntry()
public CodeCompletionEntry getSelectedEntry()
public void setSelectedEntry(CodeCompletionEntry selectedEntry)
public void setToolTipText(java.lang.String toolTipText)
public java.lang.String getToolTipText()
public boolean isAllowInterface()
public void setAllowInterface(boolean allowInterface)
Allow users to enter the name of an interface ? Normally this editor is used for entering concrete classes only.
public void setIcon(ImageReference imageRef)
public ImageReference getIcon()
public void setIconName(java.lang.String iconName)
public java.lang.String getIconName()
public void setBackground(Color color)
Component
setBackground in interface ComponentsetBackground in class AbstractComponentcolor - The new background color of the component.public Color getBackground()
Component
getBackground in interface ComponentgetBackground in class AbstractComponentpublic void setForeground(Color color)
Component
setForeground in interface ComponentsetForeground in class AbstractComponentcolor - The new foreground color of the component.public Color getForeground()
Component
getForeground in interface ComponentgetForeground in class AbstractComponentpublic void setWidth(int width)
Sets the width of the text field.
public int getWidth()
Gets the width of the text field.
public void setWidthUnits(int units)
Sets the units in which width is specified.
public int getWidthUnits()
Gets the units in which width is specified.
public void setReadOnly(boolean readOnly)
PropertyComponentMark this component as read-only.
setReadOnly in interface PropertyComponentsetReadOnly in class CustomComponentpublic int getMinimumCharactersForSearch()
public void setMinimumCharactersForSearch(int minimumCharactersForSearch)
A minimum of the speficied number of characters must be entered before a search is performed. This is basically used to avoid gigantic lists of available classes.
public void applyContext()
applyContext in interface Precreation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||