|
|||||||||
| 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.GroupBox
public class GroupBox
The GroupBox class provides a Container
that can contain other Components or objects with a border and
a title.
A GroupBox is as wide as its container, regardless of how big
its contents are.
| Nested Class Summary | |
|---|---|
static class |
GroupBox.NestedStyleInfo
Nested public static StyleInfo class. |
| Field Summary | |
|---|---|
static Insets |
DEFAULT_INSETS
|
static java.lang.String |
INSETS_CHANGED_PROPERTY
Property Change Names |
static java.lang.String |
LAYOUT_MANAGED_CHANGED_PROPERTY
|
static java.lang.String |
RENDERING_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_INSETS
A style constant for the Insets property. |
static java.lang.String |
STYLE_TITLE
A style constant for the Title property. |
static java.lang.String |
STYLE_TITLE_COLOR
A style constant for the TitleColor property. |
static java.lang.String |
TITLE_CHANGED_PROPERTY
|
static java.lang.String |
TITLE_COLOR_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 | |
|---|---|
GroupBox()
Constructs a GroupBox with nothing in it |
|
GroupBox(LayoutManager layoutManager)
Constructs a GroupBox with a LayoutManager |
|
GroupBox(java.lang.String title)
Constructs a GroupBox with nothing in it
and the designated title |
|
| Method Summary | |
|---|---|
void |
add(Component c)
Adds a Component to the GroupBox |
void |
add(Component c,
int index)
Adds a Component to the GroupBox at
the specified index |
void |
add(Component comp,
java.lang.Object constraints)
Adds a Component to the GroupBox at
the end of the list. |
void |
add(Component comp,
java.lang.Object constraints,
int index)
Adds a Component to the GroupBox at
the specified index. |
protected void |
addImpl(Component comp,
java.lang.Object contraints,
int index)
The common implementation of add that notifies thge LayoutAManager if necessary |
void |
applyStyle(Style style)
Applies the provided style to the component. |
Color |
getBorderColor()
|
int |
getBorderSize()
|
int |
getBorderStyle()
Returns the border style of the Borderable. |
Color |
getBottomBorderColor()
|
int |
getBottomBorderSize()
|
int |
getBottomBorderStyle()
|
Insets |
getInsets()
|
LayoutManager |
getLayoutManager()
Returns the LayoutManager of the LayoutManageable container, or null if one is not present. |
Color |
getLeftBorderColor()
|
int |
getLeftBorderSize()
|
int |
getLeftBorderStyle()
|
Color |
getRightBorderColor()
|
int |
getRightBorderSize()
|
int |
getRightBorderStyle()
|
java.lang.String |
getTitle()
|
Color |
getTitleColor()
|
Color |
getTopBorderColor()
|
int |
getTopBorderSize()
|
int |
getTopBorderStyle()
|
boolean |
isComplexRendering()
|
void |
remove(Component c)
Removes a component from the GroupBox. |
void |
remove(int index)
Removes a component from the GroupBox at the given index. |
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 |
setBorderColor(Color newBorderColor)
Sets the Color of the Borderable's border. |
void |
setBorderSize(int newBorderSize)
Sets the size of the Borderables's border. |
void |
setBorderStyle(int borderStyle)
Sets the border style of the Borderable. |
void |
setBottomBorderColor(Color borderColor)
Sets the Color of the Borderable's bottom border. |
void |
setBottomBorderSize(int borderSize)
Sets the size of the Borderables's bottom border. |
void |
setBottomBorderStyle(int borderStyle)
Sets the border style of the Borderables's bottom border. |
void |
setComplexRendering(boolean newRendering)
Sets whether complex rendering is used by the GroupBox. |
void |
setInsets(Insets newValue)
Sets the Insets used by the GroupBox
This methods fires a PropertyChangeEvent with a
getPropertyName() value of
GroupBox.INSETS_CHANGED_PROPERTY |
void |
setLayoutManager(LayoutManager newLayoutManager)
Sets a new LayoutManager into the LayoutManageable container. |
void |
setLeftBorderColor(Color borderColor)
Sets the Color of the Borderable's left border. |
void |
setLeftBorderSize(int borderSize)
Sets the size of the Borderables's left border. |
void |
setLeftBorderStyle(int borderStyle)
Sets the border style of the Borderables's left border. |
void |
setRightBorderColor(Color borderColor)
Sets the Color of the Borderable's right border. |
void |
setRightBorderSize(int borderSize)
Sets the size of the Borderables's right border. |
void |
setRightBorderStyle(int borderStyle)
Sets the border style of the Borderables's right border. |
void |
setTitle(java.lang.String newValue)
Sets the title of the GroupBox. |
void |
setTitleColor(Color newValue)
Sets the titleColor of the GroupBox. |
void |
setTopBorderColor(Color borderColor)
Sets the Color of the Borderable's top border. |
void |
setTopBorderSize(int borderSize)
Sets the size of the Borderables's top border. |
void |
setTopBorderStyle(int borderStyle)
Sets the border style of the Borderables's top border. |
| 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_INSETS
nextapp.echo.Insets.
public static final java.lang.String STYLE_TITLE
String
public static final java.lang.String STYLE_TITLE_COLOR
nextapp.echo.Color
public static final java.lang.String INSETS_CHANGED_PROPERTY
public static final java.lang.String RENDERING_CHANGED_PROPERTY
public static final java.lang.String TITLE_CHANGED_PROPERTY
public static final java.lang.String TITLE_COLOR_CHANGED_PROPERTY
public static final java.lang.String LAYOUT_MANAGED_CHANGED_PROPERTY
public static final Insets DEFAULT_INSETS
| Constructor Detail |
|---|
public GroupBox()
GroupBox with nothing in it
public GroupBox(LayoutManager layoutManager)
GroupBox with a LayoutManager
public GroupBox(java.lang.String title)
GroupBox with nothing in it
and the designated title
| Method Detail |
|---|
public void add(Component c)
Component to the GroupBox
add in interface LayoutManageableadd in interface Componentadd in class AbstractComponentc - The child component to add.
public void add(Component c,
int index)
Component to the GroupBox at
the specified index
add in interface LayoutManageableadd in interface Componentadd in class AbstractComponentc - The child component to add.index - The index at which to add the child component, or -1 to add
the component at the end.
public void add(Component comp,
java.lang.Object constraints)
Component to the GroupBox at
the end of the list.
This method then informs any LayoutManager that is present.
add in interface LayoutManageable
public void add(Component comp,
java.lang.Object constraints,
int index)
Component to the GroupBox at
the specified index.
This method then informs any LayoutManager that is present.
add in interface LayoutManageable
protected void addImpl(Component comp,
java.lang.Object contraints,
int index)
public void applyStyle(Style style)
nextapp.echo.Component
style names can be used as well.
applyStyle in interface BorderableapplyStyle in interface MouseCursorableapplyStyle in interface ComponentapplyStyle in class EchoPointComponentstyle - The style object from which to retrieve properties for this
Component.Component.applyStyle(nextapp.echo.Style)public Insets getInsets()
Insets (margins) of the GroupBox.public LayoutManager getLayoutManager()
getLayoutManager in interface LayoutManageablepublic java.lang.String getTitle()
GroupBox's title.public Color getTitleColor()
GroupBox's title.public boolean isComplexRendering()
public void remove(int index)
GroupBox at the given index.
This method then informs any LayoutManager that is removed.
remove in interface LayoutManageableremove in interface Componentremove in class AbstractComponentindex - The index of the child component to remove.public void remove(Component c)
GroupBox.
This method then informs any LayoutManager that is removed.
remove in interface LayoutManageableremove in interface Componentremove in class AbstractComponentc - The child component to remove.public Color getBorderColor()
getBorderColor in interface BorderableColor of the Borderable's border.Borderable.getBorderColor()public int getBorderSize()
getBorderSize in interface BorderableBorderables's border.Borderable.getBorderSize()public int getBorderStyle()
Borderable
getBorderStyle in interface BorderableBorderable.getBorderStyle()public void setBorderColor(Color newBorderColor)
BorderableColor of the Borderable's border.
This will also set the left, top, right and bottom border color.
setBorderColor in interface BorderableBorderable.setBorderColor(nextapp.echo.Color)public void setBorderSize(int newBorderSize)
BorderableBorderables's border.
This will also set the left, top, right and bottom border size.
setBorderSize in interface BorderableBorderable.setBorderSize(int)public void setBorderStyle(int borderStyle)
Borderable
setBorderStyle in interface BorderableBorderable.setBorderStyle(int)public Color getLeftBorderColor()
getLeftBorderColor in interface BorderableColor of the Borderable's left border.Borderable.getLeftBorderColor()public int getLeftBorderSize()
getLeftBorderSize in interface BorderableBorderables's left border.Borderable.getLeftBorderSize()public int getLeftBorderStyle()
getLeftBorderStyle in interface BorderableBorderables's left border.Borderable.getLeftBorderStyle()public void setLeftBorderColor(Color borderColor)
BorderableColor of the Borderable's left border.
setLeftBorderColor in interface BorderableBorderable.setLeftBorderColor(nextapp.echo.Color)public void setLeftBorderSize(int borderSize)
BorderableBorderables's left border.
setLeftBorderSize in interface BorderableBorderable.setLeftBorderSize(int)public void setLeftBorderStyle(int borderStyle)
BorderableBorderables's left border.
setLeftBorderStyle in interface BorderableBorderable.setLeftBorderStyle(int)public Color getTopBorderColor()
getTopBorderColor in interface BorderableColor of the Borderable's top border.Borderable.getTopBorderColor()public int getTopBorderSize()
getTopBorderSize in interface BorderableBorderables's top border.Borderable.getTopBorderSize()public int getTopBorderStyle()
getTopBorderStyle in interface BorderableBorderables's top border.Borderable.getTopBorderStyle()public void setTopBorderColor(Color borderColor)
BorderableColor of the Borderable's top border.
setTopBorderColor in interface BorderableBorderable.setTopBorderColor(nextapp.echo.Color)public void setTopBorderSize(int borderSize)
BorderableBorderables's top border.
setTopBorderSize in interface BorderableBorderable.setTopBorderSize(int)public void setTopBorderStyle(int borderStyle)
BorderableBorderables's top border.
setTopBorderStyle in interface BorderableBorderable.setTopBorderStyle(int)public Color getRightBorderColor()
getRightBorderColor in interface BorderableColor of the Borderable's right border.Borderable.getRightBorderColor()public int getRightBorderSize()
getRightBorderSize in interface BorderableBorderables's right border.Borderable.getRightBorderSize()public int getRightBorderStyle()
getRightBorderStyle in interface BorderableBorderables's right border.Borderable.getRightBorderStyle()public void setRightBorderColor(Color borderColor)
BorderableColor of the Borderable's right border.
setRightBorderColor in interface BorderableBorderable.setRightBorderColor(nextapp.echo.Color)public void setRightBorderSize(int borderSize)
BorderableBorderables's right border.
setRightBorderSize in interface BorderableBorderable.setRightBorderSize(int)public void setRightBorderStyle(int borderStyle)
BorderableBorderables's right border.
setRightBorderStyle in interface BorderableBorderable.setRightBorderStyle(int)public Color getBottomBorderColor()
getBottomBorderColor in interface BorderableColor of the Borderable's bottom border.Borderable.getBottomBorderColor()public int getBottomBorderSize()
getBottomBorderSize in interface BorderableBorderables's bottom border.Borderable.getBottomBorderSize()public int getBottomBorderStyle()
getBottomBorderStyle in interface BorderableBorderables's bottom border.Borderable.getBottomBorderStyle()public void setBottomBorderColor(Color borderColor)
BorderableColor of the Borderable's bottom border.
setBottomBorderColor in interface BorderableBorderable.setBottomBorderColor(nextapp.echo.Color)public void setBottomBorderSize(int borderSize)
BorderableBorderables's bottom border.
setBottomBorderSize in interface BorderableBorderable.setBottomBorderSize(int)public void setBottomBorderStyle(int borderStyle)
BorderableBorderables's bottom border.
setBottomBorderStyle in interface BorderableBorderable.setBottomBorderStyle(int)public void setComplexRendering(boolean newRendering)
GroupBox.
GroupBox will be rendered using a simple
style if the client cannot support complex rendering. This will occur
regardless of the value of this property.
PropertyChangeEvent with a
getPropertyName() value of
GroupBox.RENDERING_CHANGED_PROPERTY
public void setInsets(Insets newValue)
Insets used by the GroupBox
PropertyChangeEvent with a
getPropertyName() value of
GroupBox.INSETS_CHANGED_PROPERTY
public void setLayoutManager(LayoutManager newLayoutManager)
setLayoutManager in interface LayoutManageablepublic void setTitle(java.lang.String newValue)
GroupBox.
PropertyChangeEvent with a
getPropertyName() value of
GroupBox.TITLE_CHANGED_PROPERTY
public void setTitleColor(Color newValue)
GroupBox.
PropertyChangeEvent with a
getPropertyName() value of
GroupBox.TITLE_COLOR_CHANGED_PROPERTY
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;
}
set in interface ReflectionSetterfield - - the field to be setnewValue - - the new value to be set
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.ExceptionReflectionSetter.set(Field, Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||