|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.Identifiable
com.itmill.toolkit.ui.AbstractComponent
com.itmill.toolkit.ui.Embedded
public class Embedded
Component for embedding external objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.itmill.toolkit.ui.Component |
|---|
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener |
| Nested classes/interfaces inherited from interface com.itmill.toolkit.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 com.itmill.toolkit.terminal.Sizeable |
|---|
UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS, UNITS_ROWS |
| Constructor Summary | |
|---|---|
Embedded()
Creates a new empty Embedded object. |
|
Embedded(String caption)
Creates a new empty Embedded object with caption. |
|
Embedded(String caption,
Resource source)
Creates a new Embedded object whose contents is loaded from given resource. |
|
| Method Summary | |
|---|---|
String |
getArchive()
Gets the archive attribute. |
String |
getClassId()
Gets the classId attribute. |
String |
getCodebase()
Gets the codebase, the root-path used to access resources with relative paths. |
String |
getCodetype()
Gets the MIME-Type of the code. |
int |
getHeight()
Returns the visual height of the object. |
int |
getHeightUnits()
Gets the height property units. |
String |
getMimeType()
Gets the MIME-Type of the object. |
String |
getParameter(String name)
Gets the value of an object parameter. |
Iterator |
getParameterNames()
Gets the embedded object parameter names. |
Resource |
getSource()
Gets the resource contained in the embedded object. |
String |
getStandby()
Gets the standby text displayed when the object is loading. |
String |
getTag()
Gets the component UIDL tag. |
int |
getType()
Gets the type of the embedded object. |
int |
getWidth()
Returns the visual width of the object. |
int |
getWidthUnits()
Gets the width property units. |
void |
paintContent(PaintTarget target)
Invoked when the component state should be painted. |
void |
removeParameter(String name)
Removes an object parameter from the list. |
void |
setArchive(String archive)
Sets the archive attribute. |
void |
setClassId(String classId)
Sets the classId attribute. |
void |
setCodebase(String codebase)
Sets the codebase, the root-path used to access resources with relative paths. |
void |
setCodetype(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)
Sets the height property units. |
void |
setMimeType(String mimeType)
Sets the mimeType, the MIME-Type of the object. |
void |
setParameter(String name,
String value)
Sets an object parameter. |
void |
setSource(Resource source)
Sets the object source resource. |
void |
setStandby(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)
Sets the width property units. |
| Methods inherited from class com.itmill.toolkit.terminal.Identifiable |
|---|
getDebugId, getUIID, setDebugId, setUIID |
| 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(String caption)
caption -
public Embedded(String caption,
Resource source)
caption - source - the Source of the embedded object.| Method Detail |
|---|
public String getTag()
getTag in class AbstractComponent
public void paintContent(PaintTarget target)
throws PaintException
paintContent in class AbstractComponenttarget - the target UIDL stream where the component should paint itself
to
PaintException - if the paint operation failed.
public void setParameter(String name,
String value)
name - the name of the parameter.value - the value of the parameter.public String getParameter(String name)
public void removeParameter(String name)
name - the name of the parameter to remove.public Iterator getParameterNames()
public String getCodebase()
public String getCodetype()
public String getMimeType()
public String getStandby()
public void setCodebase(String codebase)
codebase - the codebase to set.public void setCodetype(String codetype)
codetype - the codetype to set.public void setMimeType(String mimeType)
mimeType - the mimeType to set.public void setStandby(String standby)
standby - the standby to set.public int getHeight()
getHeight in interface Sizeablepublic int getWidth()
getWidth in interface Sizeablepublic void setHeight(int height)
setHeight in interface Sizeableheight - the height in units specified by heightUnits property.public void setWidth(int width)
setWidth in interface Sizeablewidth - the width in units specified by widthUnits property.public String getClassId()
public void setClassId(String classId)
classId - the classId to set.public Resource getSource()
public int getType()
This can be one of the following:
public void setSource(Resource source)
source - the source to set.public void setType(int type)
This can be one of the following:
type - the type to set.public String getArchive()
public void setArchive(String archive)
archive - the archive string to set.public int getHeightUnits()
Sizeable.UNITS_PIXELS.
getHeightUnits in interface SizeableSizeable.getHeightUnits()public int getWidthUnits()
Sizeable.UNITS_PIXELS.
getWidthUnits in interface SizeableSizeable.getWidthUnits()public void setHeightUnits(int units)
setHeightUnits in interface Sizeableunits - the units used in height property.Sizeable.setHeightUnits(int)public void setWidthUnits(int units)
setWidthUnits in interface Sizeableunits - the units used in width property.Sizeable.setWidthUnits(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||