|
|||||||||
| 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.databinding.DynaColorChooser
public class DynaColorChooser
This component allows you to choose a color from a palette of possible colors. Bind this component to a property of type Color.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DynaColorChooser()
|
|
DynaColorChooser(java.lang.Class beanClass,
java.lang.String propertyPath,
java.lang.String constructionHints)
|
|
| Method Summary | |
|---|---|
void |
applyContext()
|
Color |
getBorderColor()
|
int |
getBorderSize()
|
int |
getCellHeight()
|
int |
getCellSpacing()
|
Color |
getCellSpacingColor()
|
int |
getCellsPerRow()
|
int |
getCellWidth()
|
Color[] |
getColorArray()
|
java.lang.String |
getErrorMessage()
|
Insets |
getInsets()
|
boolean |
isReadOnly()
|
void |
rebind()
This operation causes the component to reset it's content to that of the domain model. |
void |
setBorderColor(Color c)
Sets the border Color of the DynaColorChooser. |
void |
setBorderSize(int i)
Sets the size of the border of the DynaColorChooser. |
void |
setCellHeight(int i)
Sets the height of the cells in the color chooser. |
void |
setCellSpacing(int i)
Sets the spacing between the cells of the palette. |
void |
setCellSpacingColor(Color c)
Sets the color of the spacing between the cells of the palette. |
void |
setCellsPerRow(int i)
Sets the number of cell per row in the palette. |
void |
setCellWidth(int i)
Sets the height of the cells in the color chooser. |
void |
setColorArray(Color[] colors)
Sets the color that are to be selected from. |
void |
setErrorMessage(java.lang.String errorMessage)
|
void |
setInsets(Insets i)
Sets the Insets used by the ColorChooser |
void |
setReadOnly(boolean readOnly)
Mark this component as read-only. |
void |
stateChanged(ChangeEvent e)
Invoked when a state change occurs. |
| 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, isRequired, isValid, markInvalid, markValid, preRender, removeValidator, setActionCommand, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setRequired, setValue, traceValue, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynaColorChooser()
public DynaColorChooser(java.lang.Class beanClass,
java.lang.String propertyPath,
java.lang.String constructionHints)
| Method Detail |
|---|
public void rebind()
RebindableComponentThis operation causes the component to reset it's content to that of the domain model.
rebind in interface RebindableComponentrebind in class CustomComponentpublic void stateChanged(ChangeEvent e)
ChangeListener
stateChanged in interface ChangeListenere - The event describing the state change.public boolean isReadOnly()
isReadOnly in interface PropertyComponentisReadOnly in class CustomComponentpublic void setReadOnly(boolean readOnly)
PropertyComponentMark this component as read-only.
setReadOnly in interface PropertyComponentsetReadOnly in class CustomComponentpublic java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
public void setBorderColor(Color c)
Color of the DynaColorChooser.
public Color getBorderColor()
public void setBorderSize(int i)
DynaColorChooser.
public int getBorderSize()
public void setCellHeight(int i)
Sets the height of the cells in the color chooser.
public int getCellHeight()
public void setCellWidth(int i)
Sets the height of the cells in the color chooser.
public int getCellWidth()
public void setCellSpacing(int i)
Sets the spacing between the cells of the palette.
public int getCellSpacing()
public void setCellSpacingColor(Color c)
Sets the color of the spacing between the cells of the palette.
public Color getCellSpacingColor()
public void setCellsPerRow(int i)
Sets the number of cell per row in the palette.
public int getCellsPerRow()
public void setColorArray(Color[] colors)
Sets the color that are to be selected from.
public Color[] getColorArray()
public void setInsets(Insets i)
Insets used by the ColorChooser
public Insets getInsets()
public void applyContext()
applyContext in interface Precreation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||