|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component echopoint.EmbeddedPane
The EmbeddedPane
class provides a Component
that can embedded a ContentPane
inside itself. It is similar
to ScrollablePanel but different in implementation (via an iframe).
The content of an EmbeddedPane
must be single a
ContentPane object.
Basic Usage:
ContentPane mycontent = new ContentPane();
mycontent.add(someComponents);
...
...
EmbeddedPane mypane = new EmbeddedPane(mycontent);
THE EMBEDDED PANE CLASS REQUIRES ECHO 1.1 IN ORDER TO WORK CORRECTLY.
Echo 1.1 adds IFRAME support that this component relies on.
Nested Class Summary | |
static class |
EmbeddedPane.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static java.lang.String |
CONTENT_CHANGED_PROPERTY
|
static java.lang.String |
INSETS_CHANGED_PROPERTY
|
static int |
PERCENT_UNITS
|
static int |
PIXEL_UNITS
|
static java.lang.String |
SCROLL_BAR_X_CHANGED_PROPERTY
|
static java.lang.String |
SCROLL_BAR_Y_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_HEIGHT_UNITS
A style constant for the Height Units property. |
static java.lang.String |
STYLE_INSETS
A style constant for the Insets property. |
static java.lang.String |
STYLE_WIDTH_UNITS
A style constant for the Width Units property. |
static java.lang.String |
UNITS_CHANGED_PROPERTY
|
Fields inherited from class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Fields inherited from interface echopoint.positionable.Scrollable |
HEIGHT_CHANGED_PROPERTY, SCROLLBAR_POLICY_CHANGED_PROPERTY, SCROLLBARS_ALWAYS, SCROLLBARS_AUTO, SCROLLBARS_CLIPHIDE, SCROLLBARS_NEVER, STYLE_HEIGHT, STYLE_SCROLL_BAR_POLICY, STYLE_WIDTH, UNDEFINED, undefinedSymbolic, WIDTH_CHANGED_PROPERTY |
Constructor Summary | |
EmbeddedPane()
Creates an EmbeddedPane with no content that is 100 by 100 pixels
in dimensions. |
|
EmbeddedPane(nextapp.echo.ContentPane content)
Creates an EmbeddedPane with the specified ContentPane as
content that is 100 by 100 pixels in dimensions. |
Method Summary | |
void |
add(nextapp.echo.Component c,
int n)
You cannot add arbitary Components to an EmbeddedPane. |
void |
add(nextapp.echo.ContentPane c)
This is the equivalent of setContent(c). |
void |
applyStyle(nextapp.echo.Style style)
Applies the provided style to the component. |
nextapp.echo.Color |
getBorderColor()
|
int |
getBorderSize()
|
int |
getBorderStyle()
Returns the border style of the Borderable. |
nextapp.echo.Color |
getBottomBorderColor()
|
int |
getBottomBorderSize()
|
int |
getBottomBorderStyle()
|
nextapp.echo.ContentPane |
getContent()
Returns the ContentPane content. |
int |
getHeight()
Returns the height. |
int |
getHeightUnits()
Returns the heightUnits. |
nextapp.echo.Insets |
getInsets()
Returns the insets. |
nextapp.echo.Color |
getLeftBorderColor()
|
int |
getLeftBorderSize()
|
int |
getLeftBorderStyle()
|
nextapp.echo.Color |
getRightBorderColor()
|
int |
getRightBorderSize()
|
int |
getRightBorderStyle()
|
int |
getScrollBarPolicy()
Returns the ScrollBarPolicy in place This can be one of : SCOLLBARS_NONE SCOLLBARS_ALWAYS SCOLLBARS_AUTO |
int |
getScrollBarX()
Returns the position of the horizontal scroll bar, in pixels offset from the left of the component. |
int |
getScrollBarY()
Returns the position of the vertical scroll bar, in pixels offset from the top the component. |
nextapp.echo.Color |
getTopBorderColor()
|
int |
getTopBorderSize()
|
int |
getTopBorderStyle()
|
int |
getWidth()
Returns the width. |
int |
getWidthUnits()
Returns the widthUnits. |
void |
remove(nextapp.echo.Component c)
This Component remove method is overridden and causes the content of the EmbeddedPane to be removed. |
void |
remove(int index)
The Component remove method is overridden and causes the content of the EmbeddedPane to be removed. |
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(nextapp.echo.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(nextapp.echo.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 |
setContent(nextapp.echo.ContentPane content)
Sets the content. |
void |
setHeight(int height)
Sets the height. |
void |
setHeightUnits(int heightUnits)
Sets the heightUnits. |
void |
setInsets(nextapp.echo.Insets insets)
Sets the insets. |
void |
setLeftBorderColor(nextapp.echo.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(nextapp.echo.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 |
setScrollBarPolicy(int policy)
Sets the scroll bar policy of the component This can be one of : SCOLLBARS_NONE SCOLLBARS_ALWAYS SCOLLBARS_AUTO |
void |
setScrollBarX(int newValue)
Sets the position of the horizontal scroll bar, in pixels offset from the left of the component. |
void |
setScrollBarY(int newValue)
Sets the position of the vertical scroll bar, in pixels offset from the top of the component. |
void |
setTopBorderColor(nextapp.echo.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. |
void |
setWidth(int width)
Sets the width. |
void |
setWidthUnits(int widthUnits)
Sets the widthUnits. |
Methods inherited from class nextapp.echo.Component |
add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, 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_HEIGHT_UNITS
int
public static final java.lang.String STYLE_INSETS
Insets
public static final java.lang.String STYLE_WIDTH_UNITS
int
public static final java.lang.String CONTENT_CHANGED_PROPERTY
public static final java.lang.String UNITS_CHANGED_PROPERTY
public static final java.lang.String INSETS_CHANGED_PROPERTY
public static final java.lang.String SCROLL_BAR_X_CHANGED_PROPERTY
public static final java.lang.String SCROLL_BAR_Y_CHANGED_PROPERTY
public static int PIXEL_UNITS
public static int PERCENT_UNITS
Constructor Detail |
public EmbeddedPane()
EmbeddedPane
with no content that is 100 by 100 pixels
in dimensions.
public EmbeddedPane(nextapp.echo.ContentPane content)
EmbeddedPane
with the specified ContentPane as
content that is 100 by 100 pixels in dimensions.
Method Detail |
public void add(nextapp.echo.Component c, int n)
Component.add(nextapp.echo.Component, int)
public void add(nextapp.echo.ContentPane c)
public void applyStyle(nextapp.echo.Style style)
nextapp.echo.Component
style names can be used as well.
applyStyle
in interface Scrollable
public nextapp.echo.ContentPane getContent()
public int getHeight()
getHeight
in interface Scrollable
public int getHeightUnits()
public nextapp.echo.Insets getInsets()
public int getScrollBarPolicy()
Scrollable
getScrollBarPolicy
in interface Scrollable
Scrollable.getScrollBarPolicy()
public int getScrollBarX()
getScrollBarX
in interface Scrollable
public int getScrollBarY()
getScrollBarY
in interface Scrollable
public int getWidth()
getWidth
in interface Scrollable
public int getWidthUnits()
public void remove(int index)
The index is not used.
public void remove(nextapp.echo.Component c)
public void setContent(nextapp.echo.ContentPane content)
content
- The content to setpublic void setHeight(int height)
setHeight
in interface Scrollable
height
- The height to setpublic void setHeightUnits(int heightUnits)
heightUnits
- The heightUnits to setpublic void setInsets(nextapp.echo.Insets insets)
insets
- The insets to setpublic void setScrollBarPolicy(int policy)
Scrollable
setScrollBarPolicy
in interface Scrollable
Scrollable.setScrollBarPolicy(int)
public void setScrollBarX(int newValue)
setScrollBarX
in interface Scrollable
newValue
- The new position of the horizontal scroll bar, in pixels.public void setScrollBarY(int newValue)
setScrollBarY
in interface Scrollable
newValue
- The new position of the vertical scroll bar, in pixels.public void setWidth(int width)
setWidth
in interface Scrollable
width
- The width to setpublic void setWidthUnits(int widthUnits)
widthUnits
- The widthUnits to setpublic nextapp.echo.Color getBorderColor()
getBorderColor
in interface Borderable
Color
of the Borderable's
border.Borderable.getBorderColor()
public int getBorderSize()
getBorderSize
in interface Borderable
Borderables's
border.Borderable.getBorderSize()
public int getBorderStyle()
Borderable
getBorderStyle
in interface Borderable
Borderable.getBorderStyle()
public void setBorderColor(nextapp.echo.Color newBorderColor)
Borderable
Color
of the Borderable's
border.
This will also set the left, top, right and bottom border color.
setBorderColor
in interface Borderable
Borderable.setBorderColor(nextapp.echo.Color)
public void setBorderSize(int newBorderSize)
Borderable
Borderables's
border.
This will also set the left, top, right and bottom border size.
setBorderSize
in interface Borderable
Borderable.setBorderSize(int)
public void setBorderStyle(int borderStyle)
Borderable
setBorderStyle
in interface Borderable
Borderable.setBorderStyle(int)
public nextapp.echo.Color getLeftBorderColor()
getLeftBorderColor
in interface Borderable
Color
of the Borderable's
left border.Borderable.getLeftBorderColor()
public int getLeftBorderSize()
getLeftBorderSize
in interface Borderable
Borderables's
left border.Borderable.getLeftBorderSize()
public int getLeftBorderStyle()
getLeftBorderStyle
in interface Borderable
Borderables's
left border.Borderable.getLeftBorderStyle()
public void setLeftBorderColor(nextapp.echo.Color borderColor)
Borderable
Color
of the Borderable's
left border.
setLeftBorderColor
in interface Borderable
Borderable.setLeftBorderColor(nextapp.echo.Color)
public void setLeftBorderSize(int borderSize)
Borderable
Borderables's
left border.
setLeftBorderSize
in interface Borderable
Borderable.setLeftBorderSize(int)
public void setLeftBorderStyle(int borderStyle)
Borderable
Borderables's
left border.
setLeftBorderStyle
in interface Borderable
Borderable.setLeftBorderStyle(int)
public nextapp.echo.Color getTopBorderColor()
getTopBorderColor
in interface Borderable
Color
of the Borderable's
top border.Borderable.getTopBorderColor()
public int getTopBorderSize()
getTopBorderSize
in interface Borderable
Borderables's
top border.Borderable.getTopBorderSize()
public int getTopBorderStyle()
getTopBorderStyle
in interface Borderable
Borderables's
top border.Borderable.getTopBorderStyle()
public void setTopBorderColor(nextapp.echo.Color borderColor)
Borderable
Color
of the Borderable's
top border.
setTopBorderColor
in interface Borderable
Borderable.setTopBorderColor(nextapp.echo.Color)
public void setTopBorderSize(int borderSize)
Borderable
Borderables's
top border.
setTopBorderSize
in interface Borderable
Borderable.setTopBorderSize(int)
public void setTopBorderStyle(int borderStyle)
Borderable
Borderables's
top border.
setTopBorderStyle
in interface Borderable
Borderable.setTopBorderStyle(int)
public nextapp.echo.Color getRightBorderColor()
getRightBorderColor
in interface Borderable
Color
of the Borderable's
right border.Borderable.getRightBorderColor()
public int getRightBorderSize()
getRightBorderSize
in interface Borderable
Borderables's
right border.Borderable.getRightBorderSize()
public int getRightBorderStyle()
getRightBorderStyle
in interface Borderable
Borderables's
right border.Borderable.getRightBorderStyle()
public void setRightBorderColor(nextapp.echo.Color borderColor)
Borderable
Color
of the Borderable's
right border.
setRightBorderColor
in interface Borderable
Borderable.setRightBorderColor(nextapp.echo.Color)
public void setRightBorderSize(int borderSize)
Borderable
Borderables's
right border.
setRightBorderSize
in interface Borderable
Borderable.setRightBorderSize(int)
public void setRightBorderStyle(int borderStyle)
Borderable
Borderables's
right border.
setRightBorderStyle
in interface Borderable
Borderable.setRightBorderStyle(int)
public nextapp.echo.Color getBottomBorderColor()
getBottomBorderColor
in interface Borderable
Color
of the Borderable's
bottom border.Borderable.getBottomBorderColor()
public int getBottomBorderSize()
getBottomBorderSize
in interface Borderable
Borderables's
bottom border.Borderable.getBottomBorderSize()
public int getBottomBorderStyle()
getBottomBorderStyle
in interface Borderable
Borderables's
bottom border.Borderable.getBottomBorderStyle()
public void setBottomBorderColor(nextapp.echo.Color borderColor)
Borderable
Color
of the Borderable's
bottom border.
setBottomBorderColor
in interface Borderable
Borderable.setBottomBorderColor(nextapp.echo.Color)
public void setBottomBorderSize(int borderSize)
Borderable
Borderables's
bottom border.
setBottomBorderSize
in interface Borderable
Borderable.setBottomBorderSize(int)
public void setBottomBorderStyle(int borderStyle)
Borderable
Borderables's
bottom border.
setBottomBorderStyle
in interface Borderable
Borderable.setBottomBorderStyle(int)
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 ReflectionSetter
field
- - the field to be setnewValue
- - the new value to be set
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |