public class ElementDescription extends DescriptionBase
Modifier and Type | Class and Description |
---|---|
static class |
ElementDescription.Builder
This class can be used to construct an instance of the ElementDescription class using the builder pattern.
|
protected static class |
ElementDescription.Init<T extends ElementDescription.Init<T>>
Helper class for ElementDescription.Builder.
|
Modifier | Constructor and Description |
---|---|
|
ElementDescription()
Initializes a new instance of the ElementDescription class.
|
protected |
ElementDescription(ElementDescription.Init<?> init)
Initializes a new instance of the ElementDescription class using the Builder pattern.
|
Modifier and Type | Method and Description |
---|---|
LocationProperty |
getAbsoluteLocation()
Returns the element's coordinates relative to the screen in pixels.
|
StringProperty |
getId()
Returns the element's unique identifier.
|
LocationProperty |
getLocation()
Returns the element's coordinates relative to the parent window in pixels.
|
StringProperty |
getName()
Returns the name of the element.
|
SizeProperty |
getSize()
Returns the element's size in pixels.
|
ComponentType |
getType()
Returns the GUI component type.
|
void |
setAbsoluteLocation(java.lang.Integer absX,
java.lang.Integer absY)
Sets the element's coordinates relative to the screen, in pixels.
|
void |
setAbsoluteLocation(LocationProperty absLocation)
Sets the element's coordinates relative to the screen, in pixels.
|
void |
setAbsoluteLocation(java.awt.Point absLocation)
Sets the element's coordinates relative to the screen, in pixels.
|
void |
setId(java.lang.String id)
Sets the element's unique identifier.
|
void |
setId(StringProperty id)
Sets the element's unique identifier.
|
void |
setLocation(java.lang.Integer x,
java.lang.Integer y)
Sets the element's coordinates relative to the parent window.
|
void |
setLocation(LocationProperty location)
Sets the element's coordinates relative to the parent window.
|
void |
setLocation(java.awt.Point location)
Sets the element's coordinates relative to the parent window.
|
void |
setName(java.lang.String name)
Sets the name of the element.
|
void |
setName(StringProperty name)
Sets the name of the element.
|
void |
setSize(java.awt.Dimension size)
Sets the element's size in pixels.
|
void |
setSize(java.lang.Integer width,
java.lang.Integer height)
Sets the element's size in pixels.
|
void |
setSize(SizeProperty size)
Sets the element's size in pixels.
|
void |
setType(ComponentType type)
Sets the GUI component type.
|
cloneTo, getIndex, getIndexType, getVRI, setIndex, setIndexType, setVRI, setVRI
clone
getValueAs, getValueAsStringProperty, insertValue
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public ElementDescription()
protected ElementDescription(ElementDescription.Init<?> init)
init
- the Builder pattern.public void setType(ComponentType type)
type
- the GUI component type.public ComponentType getType()
public void setId(StringProperty id)
id
- a StringProperty
or RegExpProperty
.public void setId(java.lang.String id)
id
- the element's unique identifier in text format.public StringProperty getId()
public void setName(StringProperty name)
name
- a StringProperty
or RegExpProperty
.public void setName(java.lang.String name)
name
- the name of the element.public StringProperty getName()
public void setLocation(LocationProperty location)
location
- the coordinates in pixels.public void setLocation(java.lang.Integer x, java.lang.Integer y)
x
- in pixels.y
- in pixels.public void setLocation(java.awt.Point location)
location
- the coordinates in pixels.public LocationProperty getLocation()
public void setAbsoluteLocation(LocationProperty absLocation)
absLocation
- the element's absolute coordinates.public void setAbsoluteLocation(java.lang.Integer absX, java.lang.Integer absY)
absX
- the absolute X.absY
- the absolute Y.public void setAbsoluteLocation(java.awt.Point absLocation)
absLocation
- the element's absolute coordinates.public LocationProperty getAbsoluteLocation()
public void setSize(SizeProperty size)
size
- the size.public void setSize(java.awt.Dimension size)
size
- the size.public void setSize(java.lang.Integer width, java.lang.Integer height)
width
- the width.height
- the height.public SizeProperty getSize()