@Tag(value="object") public class HtmlObject extends HtmlContainer implements ClickNotifier<HtmlObject>, HasOrderedComponents, Focusable<HtmlObject>
<object>
element.BlurNotifier.BlurEvent<C extends Component>
FocusNotifier.FocusEvent<C extends Component>
HasText.WhiteSpace
Constructor and Description |
---|
HtmlObject()
Creates a new
<object> component. |
HtmlObject(AbstractStreamResource data)
Creates a new
<object> component with given data
resource value. |
HtmlObject(AbstractStreamResource data,
Param... params)
Creates a new
<object> component with given data
resource value and "param" components. |
HtmlObject(AbstractStreamResource data,
String type)
Creates a new
<object> component with given data
resource and type value. |
HtmlObject(AbstractStreamResource data,
String type,
Param... params)
Creates a new
<object> component with given data
resource, type value and "param" components. |
HtmlObject(String data,
Param... params)
Creates a new
<object> component with given data and
"param" components. |
HtmlObject(String data,
String type)
Creates a new
<object> component with given data and
type attribute values. |
HtmlObject(String data,
String type,
Param... params)
Creates a new
<object> component with given data, type
attribute values and and "param" components. |
Modifier and Type | Method and Description |
---|---|
String |
getData()
Gets the "data" attribute value.
|
Optional<String> |
getType()
Gets the "type" attribute value.
|
void |
setData(AbstractStreamResource data)
Sets the
StreamResource URL as "data" attribute value . |
void |
setData(String data)
Sets the "data" attribute value.
|
void |
setType(String type)
Sets the "type" attribute value.
|
getTitle, setTitle
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClickListener, addClickShortcut
getChildren, getComponentAt, getComponentCount, indexOf, replace
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
isEnabled, setEnabled
getElement
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
addBlurListener
addFocusListener
getText, getWhiteSpace, setText, setWhiteSpace
getCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
addAttachListener
addDetachListener
public HtmlObject()
<object>
component.public HtmlObject(String data, String type)
<object>
component with given data and
type attribute values.data
- a data attribute valuetype
- a type attribute valuesetData(String)
,
setType(String)
public HtmlObject(String data, String type, Param... params)
<object>
component with given data, type
attribute values and and "param" components.data
- a data attribute valuetype
- a type attribute valueparams
- parameter componentssetData(String)
,
setType(String)
,
HasComponents.add(Component...)
public HtmlObject(AbstractStreamResource data, String type)
<object>
component with given data
resource and type value.data
- the resource value, not nulltype
- a type attribute valuesetData(AbstractStreamResource)
,
setType(String)
public HtmlObject(AbstractStreamResource data, String type, Param... params)
<object>
component with given data
resource, type value and "param" components.data
- a data attribute valuetype
- a type attribute valueparams
- parameter componentssetData(String)
,
setType(String)
,
HasComponents.add(Component...)
public HtmlObject(String data, Param... params)
<object>
component with given data and
"param" components.data
- a data attribute valueparams
- parameter componentssetData(String)
,
HasComponents.add(Component...)
public HtmlObject(AbstractStreamResource data)
<object>
component with given data
resource value.data
- the resource value, not null
setData(AbstractStreamResource)
public HtmlObject(AbstractStreamResource data, Param... params)
<object>
component with given data
resource value and "param" components.data
- the resource value, not null
params
- parameter componentssetData(AbstractStreamResource)
,
HasComponents.add(Component...)
public void setData(String data)
data
- a "data" attribute valuepublic void setData(AbstractStreamResource data)
StreamResource
URL as "data" attribute value .data
- a "data" attribute value,, not null
public String getData()
setData(String)
,
setData(AbstractStreamResource)
public void setType(String type)
type
- a "type" attribute valuepublic Optional<String> getType()
setType(String)
Copyright © 2024. All rights reserved.