|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.millstone.base.ui.AbstractComponent | +--org.millstone.base.ui.Embedded
Component for embedding external objects.
Nested Class Summary |
Nested classes inherited from class org.millstone.base.ui.Component |
Component.Event, Component.Listener |
Nested classes inherited from class org.millstone.base.terminal.Paintable |
Paintable.RepaintRequestEvent, Paintable.RepaintRequestListener |
Field Summary | |
static int |
TYPE_IMAGE
Image types |
static int |
TYPE_OBJECT
General object type |
Fields inherited from interface org.millstone.base.terminal.Sizeable |
UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
Constructor Summary | |
Embedded()
Creates a new empty Embedded object. |
|
Embedded(java.lang.String caption)
Creates a new empty Embedded object with caption. |
|
Embedded(java.lang.String caption,
Resource source)
Creates a new Embedded object whose contents is loaded from given resource. |
Method Summary | |
java.lang.String |
getArchive()
Returns the archive attribute. |
java.lang.String |
getClassId()
Returns the classId attribute. |
java.lang.String |
getCodebase()
Returns the codebase, the root-path used to access resources with relative paths. |
java.lang.String |
getCodetype()
Returns the MIME-Type of the code. |
int |
getHeight()
Returns the visual height of the object. |
int |
getHeightUnits()
Get height property units. |
java.lang.String |
getMimeType()
Returns the MIME-Type of the object |
java.lang.String |
getParameter(java.lang.String name)
Get the value of an object parameter. |
java.util.Iterator |
getParameterNames()
Get embedded object parameter names. |
Resource |
getSource()
Get the resource contained in the embedded object. |
java.lang.String |
getStandby()
Returns the standby text displayed when the object is loading. |
java.lang.String |
getTag()
Get component UIDL tag. |
int |
getType()
Get the type of the embedded object. |
int |
getWidth()
Returns the visual width of the object. |
int |
getWidthUnits()
Get width property units. |
void |
paintContent(PaintTarget target)
Invoked when the component state should be painted |
void |
removeParameter(java.lang.String name)
Remove an object parameter from the list. |
void |
setArchive(java.lang.String archive)
Sets the archive attribute. |
void |
setClassId(java.lang.String classId)
Sets the classId attribute. |
void |
setCodebase(java.lang.String codebase)
Sets the codebase, the root-path used to access resources with relative paths. |
void |
setCodetype(java.lang.String codetype)
Sets the codetype, the MIME-Type of the code. |
void |
setHeight(int height)
Sets the visual height of the object. |
void |
setHeightUnits(int units)
Set height property units. |
void |
setMimeType(java.lang.String mimeType)
Sets the mimeType, the MIME-Type of the object. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Set an object parameter. |
void |
setSource(Resource source)
Set the object source resource. |
void |
setStandby(java.lang.String standby)
Sets the standby, the text to display while loading the object. |
void |
setType(int type)
Sets the object type. |
void |
setWidth(int width)
Sets the visual width of the object. |
void |
setWidthUnits(int units)
Set width property units. |
Methods inherited from class org.millstone.base.ui.AbstractComponent |
addListener, addListener, addListener, addListener, attach, changeVariables, childRequestedRepaint, dependsOn, detach, fireComponentEvent, fireEvent, getApplication, getCaption, getComponentError, getDescription, getDirectDependencies, getErrorMessage, getIcon, getLocale, getParent, getStyle, getWindow, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeDirectDependency, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setDescription, setEnabled, setIcon, setImmediate, setLocale, setParent, setReadOnly, setStyle, setVisible |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_OBJECT
public static final int TYPE_IMAGE
Constructor Detail |
public Embedded()
public Embedded(java.lang.String caption)
public Embedded(java.lang.String caption, Resource source)
Method Detail |
public java.lang.String getTag()
getTag
in class AbstractComponent
public void paintContent(PaintTarget target) throws PaintException
paintContent
in class AbstractComponent
target
- target UIDL stream where the component should paint
itself to
PaintException
- if the operation failedpublic void setParameter(java.lang.String name, java.lang.String value)
name
- - The name of the parameter.value
- - The value of the parameter.public java.lang.String getParameter(java.lang.String name)
public void removeParameter(java.lang.String name)
name
- - The name of the parameter to remove.public java.util.Iterator getParameterNames()
public java.lang.String getCodebase()
public java.lang.String getCodetype()
public java.lang.String getMimeType()
public java.lang.String getStandby()
public void setCodebase(java.lang.String codebase)
codebase
- The codebase to setpublic void setCodetype(java.lang.String codetype)
codetype
- The codetype to setpublic void setMimeType(java.lang.String mimeType)
mimeType
- The mimeType to setpublic void setStandby(java.lang.String standby)
standby
- The standby to setpublic int getHeight()
getHeight
in interface Sizeable
public int getWidth()
getWidth
in interface Sizeable
public void setHeight(int height)
setHeight
in interface Sizeable
height
- The height in units specified by heightUnits property.public void setWidth(int width)
setWidth
in interface Sizeable
width
- The width in units specified by widthUnits property.public java.lang.String getClassId()
public void setClassId(java.lang.String classId)
classId
- The classId to setpublic Resource getSource()
public int getType()
This can be one of the following:
public void setSource(Resource source)
source
- The source to setpublic void setType(int type)
This can be one of the following:
type
- The type to setpublic java.lang.String getArchive()
public void setArchive(java.lang.String archive)
archive
- The archive string to setpublic int getHeightUnits()
Sizeable.UNITS_PIXELS
.
getHeightUnits
in interface Sizeable
Sizeable.getHeightUnits()
public int getWidthUnits()
Sizeable.UNITS_PIXELS
.
getWidthUnits
in interface Sizeable
Sizeable.getWidthUnits()
public void setHeightUnits(int units)
setHeightUnits
in interface Sizeable
units
- units used in height property.Sizeable.setHeightUnits(int)
public void setWidthUnits(int units)
setWidthUnits
in interface Sizeable
units
- units used in width property.Sizeable.setWidthUnits(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |