コード例 #1
0
 @Override
 protected void onLoad() {
   handler = StarredChanges.addHandler(changeId, this);
 }
コード例 #2
0
 /**
  * Toggles the state of the star, as if the user clicked on the image. This will broadcast the
  * new star status to all interested UI widgets, and RPC to the server to store the changed
  * value.
  */
 public void toggleStar() {
   StarredChanges.toggleStar(changeId, !starred);
 }