|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.shared.ui.grid.DetailsConnectorChange
public class DetailsConnectorChange
A description of an indexing modification for a connector. This is used by Grid for internal bookkeeping updates.
| Field Summary | |
|---|---|
static java.util.Comparator<DetailsConnectorChange> |
REMOVED_FIRST_COMPARATOR
|
| Constructor Summary | |
|---|---|
DetailsConnectorChange()
Create a new connector index change |
|
DetailsConnectorChange(Connector connector,
java.lang.Integer oldIndex,
java.lang.Integer newIndex,
boolean shouldStillBeVisible)
Convenience constructor for setting all the fields in one line. |
|
| Method Summary | |
|---|---|
Connector |
getConnector()
Gets the changed connector. |
java.lang.Integer |
getNewIndex()
Gets the new index for the connector. |
java.lang.Integer |
getOldIndex()
Gets the old index for the connector. |
boolean |
isShouldStillBeVisible()
Checks whether whether the details should remain open, even if connector might be null. |
void |
setConnector(Connector connector)
Sets the changed connector. |
void |
setNewIndex(java.lang.Integer newIndex)
Sets the new index |
void |
setOldIndex(java.lang.Integer oldIndex)
Sets the old index |
void |
setShouldStillBeVisible(boolean shouldStillBeVisible)
Sets whether the details should remain open, even if connector might be null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Comparator<DetailsConnectorChange> REMOVED_FIRST_COMPARATOR
| Constructor Detail |
|---|
public DetailsConnectorChange()
public DetailsConnectorChange(Connector connector,
java.lang.Integer oldIndex,
java.lang.Integer newIndex,
boolean shouldStillBeVisible)
Calling this constructor will also assert that the state of the pojo is consistent by internal assumptions.
connector - the changed connectoroldIndex - the old indexnewIndex - the new indexshouldStillBeVisible - details should be visible regardless of connector| Method Detail |
|---|
public java.lang.Integer getOldIndex()
If null, the connector is recently added. This means that
getConnector() is expected not to return null.
public java.lang.Integer getNewIndex()
If null, the connector should be removed. This means that
getConnector() is expected to return null as well.
public Connector getConnector()
nullpublic void setConnector(Connector connector)
connector - the changed connector. May be nullpublic void setOldIndex(java.lang.Integer oldIndex)
oldIndex - the old index. May be null if a new connector is
being insertedpublic void setNewIndex(java.lang.Integer newIndex)
newIndex - the new index. May be null if a connector is
being removedpublic boolean isShouldStillBeVisible()
null.
true iff the details should remain open, even if
connector might be nullpublic void setShouldStillBeVisible(boolean shouldStillBeVisible)
null.
shouldStillBeVisible - true iff the details should remain open, even if
connector might be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||