Skip to content

Commit

Permalink
Method fo setting auto toggling of name on click off.
Browse files Browse the repository at this point in the history
  • Loading branch information
caalador committed May 12, 2017
1 parent 672538c commit 9038711
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ public void itemClick(String roomId, String tableId) {
!clickedTable.getNameVisibility());
}

MapSelectionEvent event = new MapSelectionEvent(clickedRoom, clickedTable);
selectionEvents.forEach(selectionListener -> selectionListener.clickSelectionEvent(event));
MapSelectionEvent event = new MapSelectionEvent(clickedRoom,
clickedTable);
selectionEvents.forEach(selectionListener -> selectionListener
.clickSelectionEvent(event));
}
});
}
Expand All @@ -88,6 +90,17 @@ public RemoveHandler addSelectionListener(SelectionListener listener) {
return () -> selectionEvents.remove(listener);
}

/**
* Set if the table name visibility should be auto toggled on click. Default
* is toggle on click.
*
* @param autoToggleName
* auto toggle table name visibility
*/
public void setAutoToggleTableName(boolean autoToggleName) {
this.autoToggleName = autoToggleName;
}

/**
* Returns first match for name
*
Expand Down

0 comments on commit 9038711

Please sign in to comment.