Package org.apache.wicket.version.undo

Examples of org.apache.wicket.version.undo.Change


   *
   * @param selected
   */
  public void setSelected(Contact selected)
  {
    addStateChange(new Change()
    {
      private final Contact old = BasePage.this.selected;

      @Override
      public void undo()
View Full Code Here


      @Override
      public void onClick()
      {
        final int count = count1.clicks;
        count2.clicks++;
        addStateChange(new Change()
        {
          @Override
          public void undo()
          {
            // revert
View Full Code Here

   */
  public final void removeAll()
  {
    if (children != null)
    {
      addStateChange(new Change()
      {
        private static final long serialVersionUID = 1L;

        final Object removedChildren = children;

View Full Code Here

   * sets selected contact
   * @param selected
   */
  public void setSelected(Contact selected)
  {
    addStateChange(new Change()
    {
      private final Contact old = BasePage.this.selected;

      public void undo()
      {
View Full Code Here

      public void onClick()
      {
        final int index = item.getIndex();
        if (index != -1)
        {
          addStateChange(new Change()
          {
            private static final long serialVersionUID = 1L;

            final int oldIndex = index;
View Full Code Here

      {
        final int index = item.getIndex();
        if (index != -1)
        {

          addStateChange(new Change()
          {
            private static final long serialVersionUID = 1L;

            final int oldIndex = index;
View Full Code Here

      @Override
      public void onClick()
      {
        final int oldIndex = item.getIndex();

        addStateChange(new Change()
        {
          private static final long serialVersionUID = 1L;

          final T removedObject = item.getModelObject();
View Full Code Here

    if (itemsPerPage != items)
    {
      if (isVersioned())
      {
        addStateChange(new Change()
        {
          private static final long serialVersionUID = 1L;

          final int old = itemsPerPage;
View Full Code Here

  {
    if (currentPage != page)
    {
      if (isVersioned())
      {
        addStateChange(new Change()
        {
          private static final long serialVersionUID = 1L;

          private final int old = currentPage;
View Full Code Here

   */
  public final void removeAll()
  {
    if (children != null)
    {
      addStateChange(new Change()
      {
        private static final long serialVersionUID = 1L;

        final Object removedChildren = children;

View Full Code Here

TOP

Related Classes of org.apache.wicket.version.undo.Change

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.