public class WidgetDownId extends WidgetId
Modifier and Type | Field and Description |
---|---|
private int |
downIdx
The location of the widget associated with this ID in the frame's down body.
|
_DEFAULT_WINDOW_ID, DEFAULT_WINDOW_ID, INPUT_FRAME_ID, WIDGET_ID_RANGE_BEGIN
Constructor and Description |
---|
WidgetDownId()
Default c'tor.
|
WidgetDownId(int id,
int downIdx)
Create a new widget ID which is linked to a widget located on the given row, in the
frame's down body.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(WidgetId wid)
Compare this instance with the given object.
|
WidgetId |
createId(int widgetId)
Create a new
WidgetDownId instance which is assigned the given widgetId
and inherits this id's downIdx . |
boolean |
equals(java.lang.Object obj)
Check if the given object is the same as this one.
|
int |
getDownIdx()
Get the position in the frame's down body of this widget.
|
int |
hashCode()
Compute a hash code for this widget ID.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
java.lang.String |
toString()
Get a string representation of this ID.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
asInt, createId, equals, nextID, virtualWidget, virtualWidget
private int downIdx
public WidgetDownId()
public WidgetDownId(int id, int downIdx)
id
- The widget ID.downIdx
- The index in the frame's down body of the widget associated with this ID.public WidgetId createId(int widgetId)
WidgetDownId
instance which is assigned the given widgetId
and inherits this id's downIdx
.public int getDownIdx()
downIdx
value.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class WidgetId
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class WidgetId
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
public int compareTo(WidgetId wid)
Comparable.compareTo(T)
.