|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.Container
echopoint.EchoPointComponent
echopoint.Separator
public class Separator
The Separator
class is a Component
that provides a simple separator within menus or between
other Components
It consists of a top line and bottom line, that can have width and color values. It also has an Inset value around it.
Nested Class Summary | |
---|---|
static class |
Separator.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
---|---|
static java.lang.String |
BOTTOM_COLOR_CHANGED_PROPERTY
|
static java.lang.String |
BOTTOM_SIZE_CHANGED_PROPERTY
|
static Color |
DEFAULT_BOTTOM_COLOR
the default bottom color |
static int |
DEFAULT_BOTTOM_SIZE
the default bottom size is 1 |
static Insets |
DEFAULT_INSETS
the default insets are {4,2} |
static Color |
DEFAULT_TOP_COLOR
the default top color |
static int |
DEFAULT_TOP_SIZE
the default top size is 1 |
static java.lang.String |
INSETS_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_BOTTOM_COLOR
A style constant for the BottomColor property. |
static java.lang.String |
STYLE_BOTTOM_SIZE
A style constant for the BottomSize property. |
static java.lang.String |
STYLE_INSETS
A style constant for the Insets property. |
static java.lang.String |
STYLE_TOP_COLOR
A style constant for the TopColor property. |
static java.lang.String |
STYLE_TOP_SIZE
A style constant for the TopSize property. |
static java.lang.String |
TOP_COLOR_CHANGED_PROPERTY
|
static java.lang.String |
TOP_SIZE_CHANGED_PROPERTY
|
Fields inherited from class echopoint.EchoPointComponent |
---|
STYLE_TOOL_TIP_TEXT, TOOL_TIP_TEXT_CHANGED_PROPERTY, toolTipPopUp |
Fields inherited from interface echopoint.positionable.MouseCursorable |
---|
borderStyleSymbolics, CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, STYLE_MOUSE_CURSOR, STYLE_MOUSE_CURSOR_URI |
Constructor Summary | |
---|---|
Separator()
Constructs a Separator . |
Method Summary | |
---|---|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
Color |
getBottomColor()
The color of the bottom separator line |
int |
getBottomSize()
The size of the bottom separator line |
Insets |
getInsets()
The insets of the separator, spaced as margins around the separator line. |
Color |
getTopColor()
The color of the top separator line |
int |
getTopSize()
The size of the top separator line |
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
Called to save the old value of a field, set in a new value and return the old value of a field. |
void |
setBottomColor(Color color)
|
void |
setBottomSize(int i)
|
void |
setInsets(Insets newValue)
|
void |
setTopColor(Color color)
|
void |
setTopSize(int i)
|
Methods inherited from class echopoint.EchoPointComponent |
---|
getMouseCursor, getMouseCursorURI, getToolTipPopUp, getToolTipText, set, set, set, set, set, set, set, set, set, setEnabledAllChildren, setMouseCursor, setMouseCursorURI, setToolTipText, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STYLE_BOTTOM_SIZE
int
public static final java.lang.String STYLE_BOTTOM_COLOR
nextapp.echo.Color
public static final java.lang.String STYLE_TOP_SIZE
int
public static final java.lang.String STYLE_TOP_COLOR
nextapp.echo.Color
public static final java.lang.String STYLE_INSETS
nextapp.echo.Insets
public static final Color DEFAULT_BOTTOM_COLOR
public static final Insets DEFAULT_INSETS
public static final Color DEFAULT_TOP_COLOR
public static final int DEFAULT_TOP_SIZE
public static final int DEFAULT_BOTTOM_SIZE
public static final java.lang.String INSETS_CHANGED_PROPERTY
public static final java.lang.String BOTTOM_COLOR_CHANGED_PROPERTY
public static final java.lang.String BOTTOM_SIZE_CHANGED_PROPERTY
public static final java.lang.String TOP_COLOR_CHANGED_PROPERTY
public static final java.lang.String TOP_SIZE_CHANGED_PROPERTY
Constructor Detail |
---|
public Separator()
Separator
.
Method Detail |
---|
public Color getBottomColor()
public int getBottomSize()
public Color getTopColor()
public int getTopSize()
public void setBottomColor(Color color)
color
- public void setBottomSize(int i)
i
- public void setTopColor(Color color)
color
- public void setTopSize(int i)
i
- public Insets getInsets()
public void setInsets(Insets newValue)
newValue
- public void applyStyle(Style style)
Component
Style
object. The version of this method in Component
will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
applyStyle
in interface MouseCursorable
applyStyle
in interface Component
applyStyle
in class EchoPointComponent
style
- The style object from which to retrieve properties for this
Component
.Component.applyStyle(nextapp.echo.Style)
public java.lang.Object set(java.lang.reflect.Field field, java.lang.Object newValue) throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception { Object oldValue = f.get(this); f.set(this,newValue); return oldValue; }
field
- - the field to be setnewValue
- - the new value to be set
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |