|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.document.interval.IDSelectionAction
public final class IDSelectionAction
Action that contains information on ID-level node selection/deselection. Immutable. Ordered by properties in the following order:
id (ids are compared as normal strings, not by the position in
the document)fromIndextoIndexselect
| Field Summary | |
|---|---|
int |
fromIndex
If a textual node is selected then this property is an index of first selected character. |
String |
id
The node id. |
boolean |
select
If true then we should take a selecting action, otherwise
we should deselect. |
int |
toIndex
If a textual node is selected then this property is an index of first unselected character after the last selected character. |
| Constructor Summary | |
|---|---|
IDSelectionAction(String id,
int fromIndex,
int toIndex,
boolean select)
Constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(IDSelectionAction o)
|
boolean |
equals(Object obj)
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final String id
public final boolean select
true then we should take a selecting action, otherwise
we should deselect.
public final int fromIndex
-1.
public final int toIndex
-1.
| Constructor Detail |
|---|
public IDSelectionAction(String id,
int fromIndex,
int toIndex,
boolean select)
id - The node id.fromIndex - If a textual node is selected then this property is an
index of first selected character. If non-textual node is selected, this
is -1.toIndex - If a textual node is selected then this property is an
index of first unselected character after the last selected character. If
non-textual node is selected, this is -1.select - If true then we should take a selecting
action, otherwise we should deselect.| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic int compareTo(IDSelectionAction o)
compareTo in interface Comparable<IDSelectionAction>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||