|
|||||||||
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.viewer.AbstractNumberViewer
public class AbstractNumberViewer
Base class for number-based viewers.
Field Summary | |
---|---|
static int |
PERCENT_UNITS
|
static int |
PIXEL_UNITS
|
Constructor Summary | |
---|---|
AbstractNumberViewer()
|
|
AbstractNumberViewer(java.lang.Class beanClass,
java.lang.String property,
java.lang.String constructionHints)
|
Method Summary | |
---|---|
void |
applyContext()
|
Color |
getBackground()
Gets the background color. |
Font |
getFont()
Returns the font. |
Color |
getForeground()
Gets the text color. |
int |
getHorizontalAlignment()
Gets the horizontal alignment of the label. |
java.lang.String |
getNullLabel()
Gets the label that is shown if the bound property is null . |
java.lang.String |
getText()
|
java.lang.String |
getToolTipText()
Sets the tooltip that is shown when the user hoovers over this label. |
int |
getVerticalAlignment()
Gets the vertical alignment of the label. |
int |
getWidth()
|
int |
getWidthUnits()
|
void |
setBackground(Color color)
Sets the background color. |
void |
setFont(Font font)
Sets the font of the component. |
void |
setForeground(Color color)
Sets the text color. |
void |
setHorizontalAlignment(int alignment)
Sets the horizonal alignment of the label. |
void |
setNullLabel(java.lang.String nullLabel)
Sets the label that is shown if the bound property is null
|
void |
setToolTipText(java.lang.String toolTipText)
Gets the tooltip that is shown when the user hoovers over this label. |
void |
setVerticalAlignment(int alignment)
Sets the vertical alignment of the label. |
void |
setWidth(int i)
|
void |
setWidthUnits(int i)
|
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, isRequired, isValid, markInvalid, markValid, preRender, rebind, removeValidator, setActionCommand, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, 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 int PIXEL_UNITS
public static int PERCENT_UNITS
Constructor Detail |
---|
public AbstractNumberViewer()
public AbstractNumberViewer(java.lang.Class beanClass, java.lang.String property, java.lang.String constructionHints)
Method Detail |
---|
public java.lang.String getText()
public java.lang.String getNullLabel()
Gets the label that is shown if the bound property is null
. This
allows you to show a sensible message for null values.
public void setNullLabel(java.lang.String nullLabel)
Sets the label that is shown if the bound property is null
public java.lang.String getToolTipText()
Sets the tooltip that is shown when the user hoovers over this label.
public void setToolTipText(java.lang.String toolTipText)
Gets the tooltip that is shown when the user hoovers over this label.
public void setHorizontalAlignment(int alignment)
Sets the horizonal alignment of the label. Use the constants in nextapp.echo.EchoConstants .
public int getHorizontalAlignment()
Gets the horizontal alignment of the label.
public void setVerticalAlignment(int alignment)
Sets the vertical alignment of the label. Use the constants in nextapp.echo.EchoConstants .
public int getVerticalAlignment()
Gets the vertical alignment of the label.
public void setBackground(Color color)
Sets the background color.
setBackground
in interface Component
setBackground
in class AbstractComponent
color
- The new background color of the component.public Color getBackground()
Gets the background color.
getBackground
in interface Component
getBackground
in class AbstractComponent
public void setForeground(Color color)
Sets the text color.
setForeground
in interface Component
setForeground
in class AbstractComponent
color
- The new foreground color of the component.public Color getForeground()
Gets the text color.
getForeground
in interface Component
getForeground
in class AbstractComponent
public void setWidth(int i)
public int getWidth()
public void setWidthUnits(int i)
public int getWidthUnits()
public void setFont(Font font)
Component
setFont
in interface Component
setFont
in class AbstractComponent
font
- The new font of the component.public Font getFont()
Component
getFont
in interface Component
getFont
in class AbstractComponent
public void applyContext()
applyContext
in interface Precreation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |